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

# List agents

> Discover your workspace's agents and their ids.

<Note>
  Returns a **minimal** shape — just `id` and `name`, enough to find the `agent_id` you pass to
  [Place a call](/developers/calls/create). An agent's prompt, voice, and tools are managed in the
  dashboard and aren't part of the API contract.
</Note>


## OpenAPI

````yaml developers/openapi.json GET /v1/agents
openapi: 3.1.0
info:
  title: Vocily API
  description: >-
    Public REST API for placing outbound voice calls and reading their results.
    Authenticate with a workspace API key as a Bearer token.
  version: v1
servers:
  - url: https://api.vocily.com
    description: Production
security: []
paths:
  /v1/agents:
    get:
      tags:
        - agents
      summary: List agents
      description: >-
        List your workspace's agents (`id` and `name`) so you can pick an
        `agent_id` for `POST /v1/calls`.
      operationId: list_agents_v1_agents_get
      parameters:
        - name: skip
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Skip
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-Vocily-Workspace
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Vocily-Workspace
        - name: X-Vocily-Org
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Vocily-Org
      responses:
        '200':
          description: The workspace's agents (minimal shape).
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
              example:
                - id: 9b1c3d5e-7a90-4c21-8b6d-2e4f6a8c0d11
                  name: Booking Agent
                - id: 1a2b3c4d-5e6f-7a80-9b0c-1d2e3f4a5b6c
                  name: Reminder Agent
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                code: unauthorized
                message: Missing or invalid API key.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded — honor Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                code: rate_limited
                message: Rate limit exceeded — honor Retry-After.
      security:
        - bearerAuth: []
components:
  schemas:
    ApiError:
      type: object
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Malformed request parameter.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key as a Bearer token, e.g. `Authorization: Bearer vk_…`.'

````