> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add sender filter entries to an inbox

> Adds entries to either the allowlist or blocklist. The operation is an
idempotent set union: entries already present remain unchanged.




## OpenAPI

````yaml /openapi/generated/email/inboxes.yml post /email_inboxes/{inbox_id}/filters
openapi: 3.1.0
info:
  contact:
    email: support@telnyx.com
  description: API for managing email inboxes, drafts, messages, filters, and threads.
  title: Telnyx Email Inboxes API
  version: 2.0.0
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
paths:
  /email_inboxes/{inbox_id}/filters:
    parameters:
      - $ref: '#/components/parameters/InboxIdPathParam'
    post:
      tags:
        - Email Inboxes
      summary: Add sender filter entries to an inbox
      description: |
        Adds entries to either the allowlist or blocklist. The operation is an
        idempotent set union: entries already present remain unchanged.
      operationId: AddEmailInboxFilterEntries
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MutateInboxFiltersRequest'
            example:
              type: blocklist
              entries:
                - '@spam.example'
      responses:
        '200':
          $ref: '#/components/responses/InboxFiltersResponse'
        '401':
          $ref: '#/components/responses/email_UnauthorizedResponse'
        '404':
          $ref: '#/components/responses/email_NotFoundResponse'
        '422':
          $ref: '#/components/responses/ValidationErrorResponse'
        '503':
          $ref: '#/components/responses/email_ServiceUnavailableResponse'
components:
  parameters:
    InboxIdPathParam:
      name: inbox_id
      in: path
      required: true
      description: Email inbox UUID.
      schema:
        type: string
        format: uuid
  schemas:
    MutateInboxFiltersRequest:
      type: object
      properties:
        type:
          type: string
          enum:
            - allowlist
            - blocklist
          description: The list to change.
        entries:
          $ref: '#/components/schemas/InboxFilterEntryList'
      required:
        - type
        - entries
    InboxFilterEntryList:
      type: array
      maxItems: 500
      items:
        $ref: '#/components/schemas/InboxFilterEntry'
    InboxFiltersResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/InboxFilters'
      required:
        - data
    email_ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorObject'
        suppressed:
          type: array
          description: >-
            Present when every recipient is suppressed, so the request is
            rejected and no message is created.
          items:
            $ref: '#/components/schemas/SuppressedRecipient'
      required:
        - errors
    InboxFilterEntry:
      type: string
      description: |
        An exact sender address (`user@example.com`) or domain wildcard
        (`@example.com`). Values are trimmed and normalized to lowercase.
      example: '@example.com'
    InboxFilters:
      type: object
      properties:
        record_type:
          type: string
          enum:
            - email_inbox_filters
        allowlist:
          $ref: '#/components/schemas/InboxFilterEntryList'
        blocklist:
          $ref: '#/components/schemas/InboxFilterEntryList'
      required:
        - record_type
        - allowlist
        - blocklist
    ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: >-
            Telnyx error code. Edge idempotency errors use 10027 or 10036.
            Fallback 404/500 responses from the framework may use string status
            codes ('404', '500') instead.
          enum:
            - '10001'
            - '10006'
            - '10007'
            - '10015'
            - '10016'
            - '10019'
            - recipient_suppressed
            - reputation_suspended
            - '404'
            - '500'
            - '10027'
            - '10036'
        title:
          type: string
        detail:
          description: >-
            Human-readable error detail. Changeset responses may return a
            structured object.
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
        source:
          type:
            - object
            - 'null'
          additionalProperties: true
        meta:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: Additional metadata. Present on 401 errors with a documentation URL.
      required:
        - code
        - title
        - detail
    SuppressedRecipient:
      type: object
      properties:
        to:
          type: string
          format: email
          description: Suppressed recipient email address.
        reason:
          type: string
          description: Suppression reason returned by the recipient suppression service.
        scope:
          type: string
          description: Scope at which the suppression applies.
        override_allowed:
          type: boolean
          description: Whether an authorized send may override this suppression.
      required:
        - to
        - reason
        - scope
        - override_allowed
  responses:
    InboxFiltersResponse:
      description: The inbox's current sender allowlist and blocklist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InboxFiltersResponse'
          example:
            data:
              record_type: email_inbox_filters
              allowlist:
                - trusted@example.com
                - '@partner.example'
              blocklist:
                - '@spam.example'
    email_UnauthorizedResponse:
      description: Not authorized (10006).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10006'
                title: Not authorized
                detail: Invalid API key
                meta:
                  url: https://developers.telnyx.com/docs/overview/errors/10006
    email_NotFoundResponse:
      description: Resource not found (10001).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10001'
                title: Not Found
                detail: The requested resource was not found
    ValidationErrorResponse:
      description: Validation Failed (10015) or changeset validation error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10015'
                title: Validation Failed
                detail: subject can't be blank
                source:
                  pointer: /data/attributes/subject
    email_ServiceUnavailableResponse:
      description: >-
        Service unavailable (10016), including an unavailable upstream
        dependency or unavailable Edge idempotency protection for a keyed
        request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10016'
                title: Service Unavailable
                detail: >-
                  The email domain service is temporarily unavailable. Please
                  try again later.
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````