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

# Create inbox

> Creates an inbox with its filters, visibility, automatic distribution and the operators granted access (one call
instead of the core-api create + one access call per operator). Managers and owners.



## OpenAPI

````yaml /api/services-api.yaml post /v1/tenants/{tenantID}/inboxes
openapi: 3.0.3
info:
  description: >-
    Talqui is an omnichannel customer service platform that unifies
    conversations from WhatsApp, Instagram, Telegram, and many other channels
    into a single attendant panel, alongside a broader ecosystem of plugins and
    integrations. This API gives developers programmatic access to Talqui's
    services layer, exposing the operations needed to read and manage tenants,
    conversations, plugins, and related resources that power that platform.


    Authentication is available on behalf of an Operator (the default for this
    API), a Plugin Connection, or a Plugin — see the [Talqui authentication
    guide](https://docs.talqui.chat/guides/introduction/authentication/) for how
    each token is obtained and when to use it.


    Need help or have questions not covered here? Reach out to
    support@talqui.com.
  license:
    name: ISC
    url: https://opensource.org/license/isc-license-txt
  title: Talqui - Services API
  version: 0.123.0
servers:
  - description: Production
    url: https://services-api.talqui.chat
security: []
tags:
  - name: Tenants
  - name: Settings
  - name: Analytics/Reports
  - name: Analytics
  - name: Campaigns
  - name: Campaigns/Models
  - name: Contacts
  - name: Contacts/Imports
  - name: Handoff links
  - name: Inboxes
  - name: Messages
  - name: Notifications
  - name: Sessions
  - name: Operators/Shortcuts
  - name: Operators
  - name: Plugins
  - name: Milestones
  - name: Invites
  - name: Organizations
paths:
  /v1/tenants/{tenantID}/inboxes:
    post:
      tags:
        - Inboxes
      summary: Create inbox
      description: >-
        Creates an inbox with its filters, visibility, automatic distribution
        and the operators granted access (one call

        instead of the core-api create + one access call per operator). Managers
        and owners.
      operationId: CreateInboxController
      parameters:
        - in: path
          name: tenantID
          required: true
          schema:
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                inboxAutoRouting:
                  description: >-
                    Distribute its conversations automatically among the granted
                    operators (locked or hidden inboxes only).
                  type: boolean
                inboxFilters:
                  description: Which conversations the inbox gathers (all must match).
                  items:
                    additionalProperties: false
                    properties:
                      criterion:
                        description: >-
                          The field compared, e.g. sessionTags (tag ids) or
                          pluginConnectionID (channel).
                        enum:
                          - sessionType
                          - sessionKind
                          - operatorID
                          - sessionStatus
                          - sessionActive
                          - sessionTags
                          - pluginConnectionID
                          - createdAt
                          - contactPhone
                          - contactName
                        type: string
                      enforced:
                        type: boolean
                      id:
                        type: string
                      operator:
                        description: >-
                          eq/neq equal, ha/nh has / has not, gt/lt after /
                          before, sw/ew starts / ends with.
                        enum:
                          - eq
                          - neq
                          - ha
                          - nh
                          - gt
                          - lt
                          - sw
                          - ew
                        type: string
                      query:
                        items:
                          anyOf:
                            - type: string
                            - type: boolean
                            - type: number
                        minItems: 1
                        type: array
                      schema:
                        description: >-
                          What the criterion reads: the conversation or the
                          contact.
                        enum:
                          - session
                          - contact
                        type: string
                    required:
                      - schema
                      - criterion
                      - operator
                      - query
                    type: object
                  maxItems: 20
                  type: array
                inboxName:
                  description: Name shown in the conversation sidebar.
                  maxLength: 100
                  minLength: 1
                  type: string
                inboxVisibility:
                  description: >-
                    visible: everyone sees it; locked: everyone sees it, only
                    granted operators open it; hidden: only granted operators
                    see it.
                  enum:
                    - visible
                    - locked
                    - hidden
                  type: string
                operatorIDs:
                  description: >-
                    The full list of operators granted access (managers and
                    owners always have it). Omit to keep it.
                  items:
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    type: string
                  maxItems: 500
                  type: array
              required:
                - inboxName
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    additionalProperties: false
                    properties:
                      inbox:
                        additionalProperties: false
                        description: The inbox as saved.
                        example:
                          inboxAutoRouting: true
                          inboxFilters:
                            - criterion: sessionTags
                              operator: ha
                              query:
                                - 0193b0a2-1111-7d21-9a52-6f1c2d3e4b5a
                              schema: session
                          inboxID: 0193b0a2-7c4e-7d21-9a52-6f1c2d3e4b5a
                          inboxName: Sales
                          inboxVisibility: hidden
                          operatorIDs:
                            - 3f2b8c1e-4d5a-4b6c-8e7f-9a0b1c2d3e4f
                        properties:
                          inboxAutoRouting:
                            description: >-
                              Talqui distributes its conversations among who has
                              access (never on a visible inbox).
                            type: boolean
                          inboxFilters:
                            description: >-
                              Which conversations the inbox gathers, one filter
                              per criterion ({ schema, criterion, operator,
                              query }).
                            items: {}
                            type: array
                          inboxID:
                            description: The inbox id.
                            type: string
                          inboxName:
                            description: Name shown in the conversation sidebar.
                            type: string
                          inboxVisibility:
                            description: >-
                              visible, locked or hidden. visible: everyone sees
                              and handles it; locked: everyone sees it, only who
                              has access handles it; hidden: only who has access
                              sees it.
                            type: string
                          operatorIDs:
                            description: >-
                              Operators granted access; managers and owners
                              always have it.
                            items:
                              type: string
                            type: array
                        required:
                          - inboxID
                          - inboxName
                          - inboxFilters
                          - inboxVisibility
                          - inboxAutoRouting
                          - operatorIDs
                        type: object
                    required:
                      - inbox
                    type: object
                required:
                  - data
                type: object
          description: Response for status 201.
        '400':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/RequestValidationError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            RequestValidationError (error_code 1002): unknown field, bad filter,
            or an operator outside the tenant.
        '403':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/ForbiddenError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            ForbiddenError (error_code 1004): operator is not a manager, owner
            or superuser of this tenant.
        '500':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/UnknownError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            UnknownError (error_code 5999): Unexpected internal error not
            otherwise documented for this endpoint.
      security:
        - operatorAuth: []
components:
  schemas:
    RequestValidationError:
      additionalProperties: false
      properties:
        error:
          enum:
            - RequestValidationError
          type: string
        error_code:
          enum:
            - 1002
          type: number
        fields:
          items:
            additionalProperties: false
            properties:
              allowed:
                type: string
              field:
                type: string
              received:
                type: string
            required:
              - field
              - received
              - allowed
            type: object
          type: array
        message:
          example: Invalid request data.
          type: string
        statusCode:
          enum:
            - 400
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
        - fields
      type: object
    ForbiddenError:
      additionalProperties: false
      properties:
        error:
          enum:
            - ForbiddenError
          type: string
        error_code:
          enum:
            - 1004
          type: number
        message:
          example: You do not have access to this resource.
          type: string
        statusCode:
          enum:
            - 403
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
    UnknownError:
      additionalProperties: false
      properties:
        error:
          enum:
            - UnknownError
          type: string
        error_code:
          enum:
            - 5999
          type: number
        message:
          example: For some unknown reason your request has not succeeded.
          type: string
        statusCode:
          enum:
            - 500
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
  securitySchemes:
    operatorAuth:
      bearerFormat: JWT
      description: >-
        Behalf of an Operator (default). A JWT issued by Talqui Core when an
        operator signs in, scoped to every tenant that operator belongs to. Send
        as `Authorization: Bearer <jwt-token>`.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.