ReplyLayer Recipient Allowlist API

The recipient-allowlist API from ReplyLayer — 4 operation(s) for recipient-allowlist.

GitHub OpenAPI

Operations 5

GET /v1/mailboxes/{mailboxId}/allowlist List a mailbox's recipient allowlist #
POST /v1/mailboxes/{mailboxId}/allowlist Add a recipient-allowlist entry #
GET /v1/mailboxes/{mailboxId}/allowlist/blocked-attempts List recipient-allowlist blocked send attempts #
POST /v1/mailboxes/{mailboxId}/allowlist/bulk Bulk-add recipient-allowlist entries #
DELETE /v1/mailboxes/{mailboxId}/allowlist/{email} Remove a recipient-allowlist entry #

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-recipient-allowlist-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-recipient-allowlist-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 Recipient Allowlist API
  version: 1.0.0
servers:
- description: Production
  url: https://api.replylayer.ai
security:
- BearerApiKey: []
tags:
- name: recipient-allowlist
paths:
  /v1/mailboxes/{mailboxId}/allowlist:
    get:
      operationId: getV1MailboxesByMailboxIdAllowlist
      parameters:
      - in: path
        name: mailboxId
        required: true
        schema:
          maxLength: 64
          minLength: 1
          type: string
      - in: query
        name: all
        required: false
        schema:
          type: boolean
      - in: query
        name: cursor
        required: false
        schema:
          type: string
      - in: query
        name: limit
        required: false
        schema:
          maximum: 500
          minimum: 1
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  allowlist:
                    items:
                      properties:
                        added_by_actor_id:
                          type:
                          - string
                          - 'null'
                        added_by_actor_type:
                          type:
                          - string
                          - 'null'
                        created_at:
                          type: string
                        email:
                          type: string
                        mailbox_id:
                          type: string
                        pattern_type:
                          enum:
                          - email
                          - domain
                          type: string
                      required:
                      - email
                      - mailbox_id
                      - created_at
                      type: object
                    type: array
                  always_allowed:
                    items:
                      type: string
                    type: array
                  next_cursor:
                    type:
                    - string
                    - 'null'
                required:
                - allowlist
                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
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '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: List a mailbox's recipient allowlist
      tags:
      - recipient-allowlist
    post:
      operationId: postV1MailboxesByMailboxIdAllowlist
      parameters:
      - in: path
        name: mailboxId
        required: true
        schema:
          maxLength: 64
          minLength: 1
          type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                email:
                  minLength: 1
                  type: string
              required:
              - email
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  added_by_actor_id:
                    type:
                    - string
                    - 'null'
                  added_by_actor_type:
                    type:
                    - string
                    - 'null'
                  already_existed:
                    type: boolean
                  created_at:
                    type:
                    - string
                    - 'null'
                  email:
                    type: string
                  mailbox_id:
                    type: string
                  pattern_type:
                    enum:
                    - email
                    - domain
                    type: string
                required:
                - email
                - mailbox_id
                - created_at
                - already_existed
                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
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '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: Add a recipient-allowlist entry
      tags:
      - recipient-allowlist
  /v1/mailboxes/{mailboxId}/allowlist/blocked-attempts:
    get:
      operationId: getV1MailboxesByMailboxIdAllowlistBlockedAttempts
      parameters:
      - in: path
        name: mailboxId
        required: true
        schema:
          maxLength: 64
          minLength: 1
          type: string
      - in: query
        name: aggregate
        required: false
        schema:
          type: boolean
      - in: query
        name: all
        required: false
        schema:
          type: boolean
      - in: query
        name: cursor
        required: false
        schema:
          type: string
      - in: query
        name: limit
        required: false
        schema:
          maximum: 500
          minimum: 1
          type: integer
      - in: query
        name: within_days
        required: false
        schema:
          maximum: 365
          minimum: 1
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                anyOf:
                - properties:
                    attempts:
                      items:
                        properties:
                          actor_id:
                            type: string
                          actor_type:
                            type: string
                          count:
                            type: integer
                          first_attempted_at:
                            type: string
                          last_attempted_at:
                            type: string
                          origins:
                            items:
                              type: string
                            type: array
                          recipient:
                            type: string
                        required:
                        - recipient
                        - actor_type
                        - actor_id
                        - count
                        - first_attempted_at
                        - last_attempted_at
                        - origins
                        type: object
                      type: array
                    next_cursor:
                      type:
                      - string
                      - 'null'
                  required:
                  - attempts
                  - next_cursor
                  type: object
                - properties:
                    attempts:
                      items:
                        properties:
                          actor_id:
                            type: string
                          actor_type:
                            type: string
                          attempted_at:
                            type: string
                          draft_id:
                            type:
                            - string
                            - 'null'
                          origin:
                            type: string
                          recipient:
                            type: string
                        required:
                        - attempted_at
                        - recipient
                        - actor_type
                        - actor_id
                        - origin
                        - draft_id
                        type: object
                      type: array
                    next_cursor:
                      type:
                      - string
                      - 'null'
                  required:
                  - attempts
                  - next_cursor
                  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
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '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: List recipient-allowlist blocked send attempts
      tags:
      - recipient-allowlist
  /v1/mailboxes/{mailboxId}/allowlist/bulk:
    post:
      operationId: postV1MailboxesByMailboxIdAllowlistBulk
      parameters:
      - in: path
        name: mailboxId
        required: true
        schema:
          maxLength: 64
          minLength: 1
          type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                emails:
                  items:
                    maxLength: 254
                    minLength: 1
                    type: string
                  maxItems: 1000
                  minItems: 1
                  type: array
              required:
              - emails
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  added:
                    items:
                      properties:
                        created_at:
                          type: string
                        email:
                          type: string
                        pattern_type:
                          enum:
                          - email
                          - domain
                          type: string
                      required:
                      - email
                      - created_at
                      type: object
                    type: array
                  already_existed:
                    items:
                      type: string
                    type: array
                  counts:
                    properties:
                      added:
                        type: integer
                      already_existed:
                        type: integer
                      invalid:
                        type: integer
                      total:
                        type: integer
                    required:
                    - added
                    - already_existed
                    - invalid
                    - total
                    type: object
                  invalid:
                    items:
                      properties:
                        email:
                          type: string
                        reason:
                          type: string
                      required:
                      - email
                      - reason
                      type: object
                    type: array
                required:
                - added
                - already_existed
                - invalid
                - counts
                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
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '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: Bulk-add recipient-allowlist entries
      tags:
      - recipient-allowlist
  /v1/mailboxes/{mailboxId}/allowlist/{email}:
    delete:
      operationId: deleteV1MailboxesByMailboxIdAllowlistByEmail
      parameters:
      - in: path
        name: mailboxId
        required: true
        schema:
          maxLength: 64
          minLength: 1
          type: string
      - in: path
        name: email
        required: true
        schema:
          type: string
      - in: query
        name: force_empty
        required: false
        schema:
          type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  created_at:
                    type: string
                  email:
                    type: string
                  mailbox_id:
                    type: string
                  pattern_type:
                    enum:
                    - email
                    - domain
                    type: string
                  status:
                    type: string
                required:
                - status
                - email
                - mailbox_id
                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
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          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: Remove a recipient-allowlist entry
      tags:
      - recipient-allowlist
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