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

# Create or update contacts

> Upsert by phone (existing contacts are updated, not duplicated). Send one contact, an array, or `{ contacts: [...] }`. Optional `list` (name, found-or-created) or `list_id`.



## OpenAPI

````yaml /openapi.json post /api/public/contacts
openapi: 3.1.0
info:
  title: Verbose API
  version: 1.0.0
  description: >-
    Programmatic access to the Verbose platform — contacts, lists, segments, SMS
    & voice campaigns, AI agents, messages and calls, numbers, registration,
    flows, analytics, and webhooks. All endpoints live under `/api/public` and
    authenticate with a workspace API key.
servers:
  - url: https://astrasend-mocha.vercel.app
    description: Production
security:
  - bearerAuth: []
tags:
  - name: General
    description: Key + workspace.
  - name: Contacts
    description: The people you reach.
  - name: Lists
    description: Static groups of contacts.
  - name: Segments
    description: Live, rule-based audiences.
  - name: Suppression
    description: Numbers to keep off your sends.
  - name: Campaigns
    description: SMS & voice campaigns.
  - name: Messages
    description: One-off SMS.
  - name: Calls
    description: One-off outbound voice calls.
  - name: Agents
    description: AI SMS & voice agents.
  - name: Conversations
    description: Inbox threads.
  - name: Numbers
    description: Phone numbers & pools.
  - name: Offers
    description: Destinations + conversion attribution.
  - name: Analytics
    description: Metrics & custom reports.
  - name: 10DLC
    description: US A2P brand + campaign registration.
  - name: Shortcode
    description: Short-code requests.
  - name: Flows
    description: Multi-step automations.
  - name: Webhooks
    description: Event subscriptions.
paths:
  /api/public/contacts:
    post:
      tags:
        - Contacts
      summary: Create or update contacts
      description: >-
        Upsert by phone (existing contacts are updated, not duplicated). Send
        one contact, an array, or `{ contacts: [...] }`. Optional `list` (name,
        found-or-created) or `list_id`.
      operationId: createContacts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contacts:
                  type: array
                  items:
                    $ref: '#/components/schemas/ContactInput'
                list:
                  type: string
                list_id:
                  type: string
            example:
              contacts:
                - phone: '+15551234567'
                  first_name: Jo
                  source: acme.com
              list: API leads
      responses:
        '200':
          $ref: '#/components/responses/Ok'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ContactInput:
      type: object
      required:
        - phone
      properties:
        phone:
          type: string
          description: E.164 or US 10/11-digit
          example: '+15551234567'
        first_name:
          type: string
        last_name:
          type: string
        source:
          type: string
    Error:
      type: object
      properties:
        ok:
          type: boolean
          example: false
        error:
          type: string
  responses:
    Ok:
      description: Success
      content:
        application/json:
          schema:
            type: object
            properties:
              ok:
                type: boolean
                example: true
            additionalProperties: true
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            ok: false
            error: list_id is required
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            ok: false
            error: Invalid or missing API key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key (`as_live_…`), created under Settings → API keys.

````