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

# Filter customer contacts by IDs



## OpenAPI

````yaml post /v1/accounts/contacts/filter/ids
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/accounts/contacts/filter/ids:
    post:
      tags:
        - Accounts
      summary: Filter customer contacts by IDs
      parameters: []
      requestBody:
        required: true
        description: Contact IDs to filter
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FilterCustomerContactsByIdsDto'
      responses:
        '200':
          description: Customer contacts filtered successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CustomerContactResponseDto'
        '201':
          description: Operation successful
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CustomerContactResponseDto'
        '400':
          description: Bad request - validation errors
          content:
            application/json:
              example:
                statusCode: 400
                message: Invalid contact IDs provided
                error: Bad Request
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                statusCode: 500
                message: Internal server error
                error: Internal Server Error
components:
  schemas:
    FilterCustomerContactsByIdsDto:
      type: object
      properties:
        ids:
          description: The IDs of the customer contacts to filter
          example:
            - C123
            - C456
          type: array
          items:
            type: string
      required:
        - ids
    CustomerContactResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the customer contact
        firstName:
          type: string
          description: The first name of the customer contact
        lastName:
          type: string
          description: The last name of the customer contact
        email:
          type: string
          description: The email of the customer contact
        phoneNumber:
          type: string
          description: The phone number of the customer contact
        avatarUrl:
          type: string
          description: The avatar URL of the customer contact
        accounts:
          description: The name of the account
          type: array
          items:
            type: string
        contactTypeId:
          type: string
          description: The identifier of the contact type
        contactType:
          type: string
          description: The name of the contact type
        customFieldValues:
          description: The custom field values
          type: array
          items:
            type: string
        metadata:
          type: object
          description: The metadata of the contact
        createdAt:
          type: string
          description: The creation date of the contact
        updatedAt:
          type: string
          description: The last update date of the contact
      required:
        - id
        - firstName
        - lastName
        - email
        - phoneNumber
        - avatarUrl
        - accounts
        - contactTypeId
        - contactType
        - customFieldValues
        - metadata
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````