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

# Register an agent version

> Register a release prompt and context before calls arrive. Requires a key belonging to an organization owner or admin. Repeating the same values returns the existing ID; changes require a new label. Send that label as version on every call for the same agent. Does not deploy the agent or route traffic. See /docs/agent-versions.



## OpenAPI

````yaml /docs-openapi.json post /v1/agents/{id}/versions
openapi: 3.1.0
info:
  title: Zelto REST API
  version: v1
  description: >-
    Programmatic access to your Zelto organization. Every endpoint is scoped to
    the organization the API key belongs to. Mint a key at Settings →
    Integrations → API Call Upload.
servers:
  - url: https://api.zelto.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Agents
    description: Voice and chat bots normalised through Zelto's ingestion pipeline.
  - name: Conversations
    description: Calls, chats, and voicemails — plus their transcripts and recordings.
  - name: Customer Metrics
    description: >-
      Customer-provided evaluations attached to a call (requires metrics
      enabled).
  - name: Reviews
    description: Human review state for conversations.
  - name: Buckets
    description: Reviewer routing — group conversations for batched review.
  - name: Companies
    description: Clients or brands your agents work for, and their logos.
  - name: Findings
    description: >-
      Structured issues discovered during analysis, with optional conversation
      attachments and comments.
  - name: Experiments
    description: >-
      Prospective measurement of two externally routed prompt versions across
      independent monitor outcomes.
  - name: Organizations
    description: >-
      Headless org provisioning. Requires an admin/service API key (not a
      read-only org-scoped customer key).
paths:
  /v1/agents/{id}/versions:
    post:
      tags:
        - Agents
      summary: Register an agent version
      description: >-
        Register a release prompt and context before calls arrive. Requires a
        key belonging to an organization owner or admin. Repeating the same
        values returns the existing ID; changes require a new label. Send that
        label as version on every call for the same agent. Does not deploy the
        agent or route traffic. See /docs/agent-versions.
      operationId: registerAgentVersion
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterAgentVersion'
      responses:
        '200':
          description: Identical version already registered.
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - created
                properties:
                  id:
                    type: string
                    format: uuid
                  created:
                    type: boolean
        '201':
          description: Version registered.
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - created
                properties:
                  id:
                    type: string
                    format: uuid
                  created:
                    type: boolean
        '400':
          description: Invalid input or human agent.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Requires an organization owner or admin.
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The label already exists with a different prompt or configuration.
            Use a new label.
        '500':
          description: Could not register the version.
components:
  schemas:
    RegisterAgentVersion:
      type: object
      required:
        - version
      properties:
        version:
          type: string
          minLength: 1
          maxLength: 255
          description: >-
            Case-sensitive release label after trimming whitespace. The draft:
            and generated: prefixes are reserved.
        systemPrompt:
          type: string
          maxLength: 200000
        config:
          $ref: '#/components/schemas/AgentVersionConfig'
    AgentVersionConfig:
      type: object
      additionalProperties: true
      description: >-
        Complete version context as a JSON object, up to 64 KiB serialized as
        UTF-8. Can include llm, stt, tts, tools, workflows, retrieval, and
        custom settings. Records context only; does not deploy or execute this
        configuration. Do not include secrets.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            Human-readable error message, e.g. Unauthorized or Validation
            failed.
        message:
          type: string
        details:
          type: object
          additionalProperties: true
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found in your organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer YOUR_API_KEY`. The key resolves to a single
        organization.

````