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

# Create or add contacts to list

> Create or reuse contacts by phone number and add them to a list. The singular route `/add-contact-to-list/{list_id}` is also accepted.



## OpenAPI

````yaml /openapi.yaml post /api/v1/add-contacts-to-list/{list_id}
openapi: 3.1.0
info:
  title: Voxworks API
  version: 1.0.0
  description: >-
    Public REST API for creating contacts, scheduling calls, retrieving call
    results, managing lists and objects, and receiving automation webhooks.
servers:
  - url: https://api.voxworks.ai
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Health
  - name: Contacts
  - name: Calls
  - name: Lists
  - name: Objects
  - name: Webhooks
paths:
  /api/v1/add-contacts-to-list/{list_id}:
    post:
      tags:
        - Lists
      summary: Create or add contacts to list
      description: >-
        Create or reuse contacts by phone number and add them to a list. The
        singular route `/add-contact-to-list/{list_id}` is also accepted.
      operationId: addContactsToList
      parameters:
        - $ref: '#/components/parameters/ListId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contacts:
                  type: array
                  items:
                    $ref: '#/components/schemas/ListContactInput'
                contact:
                  $ref: '#/components/schemas/ListContactInput'
            examples:
              multiple:
                value:
                  contacts:
                    - phone_number: '0429069971'
                      first_name: John
                      last_name: Smith
      responses:
        '200':
          description: Contacts added.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    ListId:
      name: list_id
      in: path
      required: true
      schema:
        type: string
      description: Unique list ID.
  schemas:
    ListContactInput:
      allOf:
        - $ref: '#/components/schemas/CreateContactRequest'
        - type: object
          properties:
            status:
              type: string
    CreateContactRequest:
      type: object
      required:
        - phone_number
        - first_name
      properties:
        phone_number:
          type: string
          description: >-
            Contact phone number. Common local formats are accepted and
            normalized to E.164.
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
          format: email
        address:
          type: string
        location:
          type: string
        gender:
          type: string
        age:
          type: integer
        title:
          type: string
    ErrorResponse:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
  responses:
    BadRequest:
      description: Missing or invalid request data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, malformed, or invalid authorization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalid:
              value:
                success: false
                message: Invalid API key
    NotFound:
      description: The requested resource was not found or does not belong to your team.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: string
        X-RateLimit-Limit:
          schema:
            type: string
        X-RateLimit-Remaining:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Rate limit exceeded
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            message: Internal server error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'API key from Voxworks, sent as `Authorization: Bearer YOUR_API_KEY`.'

````