ReplyLayer Domains API

The domains API from ReplyLayer — 3 operation(s) for domains.

GitHub OpenAPI

Operations 3

POST /v1/domains Register a custom domain #
PATCH /v1/domains/{id}/self-hosted-config Update self-hosted transport config (admin) #
POST /v1/domains/{id}/self-hosted-recheck Re-probe self-hosted transport health (admin) #

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/replylayer-ai:replylayer-ai-domains-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

replylayer-ai-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'The ReplyLayer REST API for AI agents — send, receive, read, and reply to email with built-in security scanning. Authenticate with an API key (`Authorization: Bearer rly_live_.`). This is the customer contract only; operator/admin endpoints and the session-cookie dashboard surface are not part of this spec.'
  title: ReplyLayer Domains API
  version: 1.0.0
servers:
- description: Production
  url: https://api.replylayer.ai
security:
- BearerApiKey: []
tags:
- name: Domains
paths:
  /v1/domains:
    post:
      operationId: postV1Domains
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                domain:
                  maxLength: 253
                  minLength: 4
                  type: string
                self_hosted_config:
                  additionalProperties: false
                  properties:
                    imap:
                      additionalProperties: false
                      properties:
                        host:
                          minLength: 1
                          type: string
                        password:
                          minLength: 1
                          type: string
                        port:
                          maximum: 65535
                          minimum: 1
                          type: integer
                        security:
                          enum:
                          - starttls
                          - tls
                          type: string
                        username:
                          minLength: 1
                          type: string
                      required:
                      - host
                      - port
                      - security
                      - username
                      - password
                      type: object
                    network_mode:
                      enum:
                      - public
                      - tailnet
                      type: string
                    smtp:
                      additionalProperties: false
                      properties:
                        host:
                          minLength: 1
                          type: string
                        password:
                          minLength: 1
                          type: string
                        port:
                          maximum: 65535
                          minimum: 1
                          type: integer
                        security:
                          enum:
                          - starttls
                          - tls
                          type: string
                        username:
                          minLength: 1
                          type: string
                      required:
                      - host
                      - port
                      - security
                      - username
                      - password
                      type: object
                  required:
                  - smtp
                  - imap
                  - network_mode
                  type: object
                transport_mode:
                  enum:
                  - mailgun
                  - ses
                  - self_hosted
                  type: string
              required:
              - domain
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '409':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    type: string
                  error:
                    type: string
                  expires_at:
                    type:
                    - string
                    - 'null'
                required:
                - error
                - code
                type: object
          description: Conflict
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Register a custom domain
      tags:
      - Domains
  /v1/domains/{id}/self-hosted-config:
    patch:
      operationId: patchV1DomainsByIdSelfHostedConfig
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                imap:
                  additionalProperties: false
                  properties:
                    host:
                      minLength: 1
                      type: string
                    password:
                      minLength: 1
                      type: string
                    port:
                      maximum: 65535
                      minimum: 1
                      type: integer
                    security:
                      enum:
                      - starttls
                      - tls
                      type: string
                    username:
                      minLength: 1
                      type: string
                  type: object
                network_mode:
                  enum:
                  - public
                  - tailnet
                  type: string
                smtp:
                  additionalProperties: false
                  properties:
                    host:
                      minLength: 1
                      type: string
                    password:
                      minLength: 1
                      type: string
                    port:
                      maximum: 65535
                      minimum: 1
                      type: integer
                    security:
                      enum:
                      - starttls
                      - tls
                      type: string
                    username:
                      minLength: 1
                      type: string
                  type: object
                tailnet_auth_key:
                  minLength: 1
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Forbidden (code: INSUFFICIENT_SCOPE)'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Update self-hosted transport config (admin)
      tags:
      - Domains
  /v1/domains/{id}/self-hosted-recheck:
    post:
      operationId: postV1DomainsByIdSelfHostedRecheck
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties: {}
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Missing or invalid API key (code: UNAUTHORIZED)'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Forbidden (code: INSUFFICIENT_SCOPE)'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Rate limited
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Re-probe self-hosted transport health (admin)
      tags:
      - Domains
components:
  schemas:
    Error:
      description: Standard error envelope. `code` is a stable machine-readable string.
      properties:
        code:
          type: string
        details:
          additionalProperties: true
          type: object
        error:
          type: string
      required:
      - error
      - code
      type: object
  securitySchemes:
    BearerApiKey:
      description: 'ReplyLayer API key: `Authorization: Bearer rly_live_<public_id>.<secret>`.'
      scheme: bearer
      type: http