CustomerOS Mailboxes API

The Mailboxes API from CustomerOS — 1 operation(s) for mailboxes.

Operations 2

GET /domains/{domain}/mailboxes List mailboxes
POST /domains/{domain}/mailboxes Create mailbox

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/customeros-mailboxes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

customeros-mailboxes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CustomerOS Mailboxes API
  description: CustomerOS API for multiple services (Verify, Enrich, Orgs)
  contact: {}
  version: '1.0'
servers:
- url: https://api.customeros.ai/
tags:
- name: Mailboxes
paths:
  /domains/{domain}/mailboxes:
    get:
      tags:
      - Mailboxes
      summary: List mailboxes
      description: Retrieves all mailboxes configured for the specified domain
      parameters:
      - name: domain
        in: path
        description: Domain name
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved mailboxes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/restmailstack.MailboxesResponse'
        '400':
          description: Missing domain parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '401':
          description: Unauthorized - Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '404':
          description: Domain not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
      security:
      - ApiKeyAuth: []
    post:
      tags:
      - Mailboxes
      summary: Create mailbox
      description: Creates a new mailbox for the specified domain with optional forwarding and webmail access
      parameters:
      - name: domain
        in: path
        description: Domain name
        required: true
        schema:
          type: string
      requestBody:
        description: Mailbox configuration
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/restmailstack.MailboxRequest'
        required: true
      responses:
        '200':
          description: Mailbox created successfully with generated password
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/restmailstack.MailboxResponse'
        '400':
          description: Invalid request - Missing or invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '401':
          description: Unauthorized - Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '404':
          description: Domain not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '409':
          description: Mailbox already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rest.ErrorResponse'
      security:
      - ApiKeyAuth: []
      x-codegen-request-body-name: body
components:
  schemas:
    restmailstack.MailboxRequest:
      type: object
      properties:
        forwardingTo:
          type: array
          description: 'List of email addresses to forward to

            required: false

            maxItems: 10

            example: ["user1@example.com","user2@example.com"]'
          items:
            type: string
        linkedUser:
          type: string
          description: 'Associated user''s email address

            required: false

            format: email

            example: john.doe@mycompany.com'
        password:
          type: string
          description: 'Password for mailbox access

            required: false

            minLength: 8

            maxLength: 64

            example: SecurePassword123!'
        username:
          type: string
          description: 'Username for the mailbox

            required: true

            pattern: ^[a-zA-Z0-9._%+-]+$

            minLength: 3

            maxLength: 64

            example: john.doe'
        webmailEnabled:
          type: boolean
          description: 'Enable webmail access

            required: false

            default: false'
      description: Request payload for creating and configuring a new mailbox
    rest.ErrorResponse:
      type: object
      properties:
        message:
          type: string
        requestId:
          type: string
          example: 1234567890abcdef
        status:
          type: string
          description: Status indicates the result of the operation ("success" or "error")
          example: success
    restmailstack.MailboxRecord:
      type: object
      properties:
        email:
          type: string
          description: 'Email address for the mailbox

            required: true

            format: email

            example: user@example.com'
        forwardingEnabled:
          type: boolean
          description: 'Email forwarding status

            required: true

            default: false'
        forwardingTo:
          type: array
          description: 'List of forwarding email addresses

            required: false

            maxItems: 10'
          items:
            type: string
        password:
          type: string
          description: 'Mailbox password (only included in specific responses)

            required: false

            minLength: 8

            maxLength: 64'
        webmailEnabled:
          type: boolean
          description: 'Webmail access status

            required: true

            default: false'
      description: Comprehensive mailbox configuration and status
    restmailstack.MailboxResponse:
      type: object
      properties:
        mailbox:
          type: object
          description: 'Mailbox information

            required: false'
          allOf:
          - $ref: '#/components/schemas/restmailstack.MailboxRecord'
        requestId:
          type: string
          example: 1234567890abcdef
        status:
          type: string
          description: Status indicates the result of the operation ("success" or "error")
          example: success
      description: Response containing mailbox details and status
    restmailstack.MailboxesResponse:
      type: object
      properties:
        mailboxes:
          type: array
          description: 'List of mailboxes

            required: false'
          items:
            $ref: '#/components/schemas/restmailstack.MailboxRecord'
        requestId:
          type: string
          example: 1234567890abcdef
        status:
          type: string
          description: Status indicates the result of the operation ("success" or "error")
          example: success
      description: Response containing list of mailboxes and status
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: X-CUSTOMER-OS-API-KEY
      in: header
x-original-swagger-version: '2.0'