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

# Upload vocabulary entries

> Adds or updates STT vocabulary entries for the campaign. Entries are merged by content — new entries with the same content overwrite existing ones.



## OpenAPI

````yaml https://api.callers.ai/openapi-json post /campaigns/{campaignId}/vocabulary
openapi: 3.0.0
info:
  title: Callers API
  description: API documentation for Callers, providing endpoints for seamless integration.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.callers.ai
security: []
tags: []
paths:
  /campaigns/{campaignId}/vocabulary:
    post:
      tags:
        - Campaigns
        - Vocabulary
      summary: Upload vocabulary entries
      description: >-
        Adds or updates STT vocabulary entries for the campaign. Entries are
        merged by content — new entries with the same content overwrite existing
        ones.
      operationId: CampaignPublicController_uploadVocabulary
      parameters:
        - name: campaignId
          required: true
          in: path
          description: ID of the campaign
          schema:
            type: string
        - name: x-sub-organization-id
          in: header
          schema:
            type: string
          description: >-
            Optional sub organization ID. Must belong to your main organization
            API key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadVocabularyPublicDto'
      responses:
        '200':
          description: Vocabulary entries uploaded successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  totalCount:
                    type: number
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
      security:
        - Authorization: []
components:
  schemas:
    UploadVocabularyPublicDto:
      type: object
      properties:
        vocabulary:
          type: array
          minItems: 1
          maxItems: 1000
          items:
            type: object
            properties:
              content:
                type: string
                minLength: 1
              sounds_like:
                type: array
                maxItems: 50
                items:
                  type: string
                  minLength: 1
            required:
              - content
      required:
        - vocabulary
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: Authorization

````