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

# Get bulk contact associations

> Get client associations for multiple contacts in a single request



## OpenAPI

````yaml /api-reference/cx/swagger.json post /contacts/_bulk-associations
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /contacts/_bulk-associations:
    post:
      tags:
        - contacts
      summary: Get bulk contact associations
      description: Get client associations for multiple contacts in a single request
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_contacts.BulkAssociationsRequest'
        description: Array of contact IDs
        required: true
      responses:
        '200':
          description: Contact associations grouped by contact ID
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_contacts.BulkAssociationsResponse
        '400':
          description: Bad request - invalid contact IDs or empty array
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_contacts.BulkAssociationsRequest:
      type: object
      properties:
        contactIds:
          type: array
          items:
            type: string
    pkg_routes_contacts.BulkAssociationsResponse:
      type: object
      properties:
        associations:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/pkg_routes_contacts.ContactAssociations'
    pkg_routes_contacts.ContactAssociations:
      type: object
      properties:
        clients:
          type: array
          items:
            $ref: '#/components/schemas/pkg_routes_contacts.ClientInfo'
    pkg_routes_contacts.ClientInfo:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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