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

# Import contacts

> Creates up to 2000 contacts. Numbers already on the account are skipped. Duplicate numbers in the same request keep the last row. The created contactId values can be passed to a campaign as contactIds.



## OpenAPI

````yaml /openapi.json post /public/v1/contacts/import
openapi: 3.0.3
info:
  title: Callin Public API
  version: 1.0.0
  description: >-
    The Callin public API lets you programmatically build and manage AI voice
    agents, control their knowledge bases, and retrieve call logs and
    transcripts. All endpoints are versioned under /public/v1.
servers:
  - url: https://api.callin.io/api
    description: API Endpoint
security: []
tags:
  - name: Health
    description: Service availability check. No authentication required.
  - name: Identity
    description: Verify which account is associated with the current API key.
  - name: Agents
    description: Create, retrieve, and update AI voice agents.
  - name: Conversations
    description: List and inspect call logs, transcripts, and conversation details.
  - name: Knowledge Base
    description: Manage documents and groups that agents use during calls.
  - name: Campaigns
    description: ...
  - name: Contacts
    description: ...
paths:
  /public/v1/contacts/import:
    post:
      tags:
        - Contacts
      summary: Import contacts
      description: >-
        Creates up to 2000 contacts. Numbers already on the account are skipped.
        Duplicate numbers in the same request keep the last row. The created
        contactId values can be passed to a campaign as contactIds.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportContactsRequest'
      responses:
        '200':
          description: Import result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessContactImportResponse'
      security:
        - ApiKeyHeader: []
        - BearerAuth: []
        - ApiKeyQuery: []
components:
  schemas:
    ImportContactsRequest:
      type: object
      required:
        - contacts
      properties:
        contacts:
          type: array
          items:
            $ref: '#/components/schemas/ContactWrite'
    SuccessContactImportResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            created:
              type: array
              items:
                $ref: '#/components/schemas/Contact'
            skipped:
              type: array
              items:
                type: object
                properties:
                  phoneNumber:
                    type: string
                  reason:
                    type: string
            createdCount:
              type: integer
            skippedCount:
              type: integer
        requestId:
          type: string
          nullable: true
    ContactWrite:
      type: object
      properties:
        phoneNumber:
          type: string
        name:
          type: string
        email:
          type: string
      additionalProperties: true
    Contact:
      type: object
      properties:
        contactId:
          type: string
        phoneNumber:
          type: string
        name:
          type: string
        email:
          type: string
        metadata:
          type: object
          properties:
            createdAt:
              type: string
              nullable: true
      additionalProperties: true
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: Send your Callin API key in the `x-api-key` header.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Same API key as a Bearer token: `Authorization: Bearer <your-api-key>`.'

````

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