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

# List Agent Version Functions

> List Agent Version Functions with the DialNexa API. Returns the functions configured on one version of an agent in your workspace.

Read only

List Agent Version Functions uses your workspace API key. Returns the functions configured on one version of an agent in your workspace.

## Before you begin

Use a server-side [API key](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests) for the intended workspace. Replace each path placeholder with an existing resource ID or version number from that workspace.

## List Agent Version Functions request

The request panel lists supported query parameters and body fields. For a request body, the example below supplies the required fields. Replace sample values with your own inputs.

```bash theme={null}
curl --request GET 'https://api.dialnexa.com/v1/agents/{agentId}/versions/{versionNumber}/functions' \
  --header "Authorization: Bearer $DIALNEXA_API_KEY"
```

## Verify the result

Expect HTTP `200`. Read the `data` array in the success envelope; the response panel documents its fields. Function rows are returned as stored: `id` and `agent_id` carry no prefix (`agent_id` is the agent ID without `agent_`).

## Retry safety

This operation does not modify workspace resources. Retry after a transient connection failure.

## Errors and recovery

* `403`: The agent does not exist in your workspace or belongs to another one.
* `401`: Missing, expired, or invalid API key.

## Related endpoints

* [Get Agent Version](https://dialnexa.com/docs/api-reference/v1/agents/version.md)
* [Get Agent Function Descriptions](https://dialnexa.com/docs/api-reference/v1/agents/function-descriptions.md)
* [API authentication](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests)


## OpenAPI

````yaml GET /v1/agents/{agentId}/versions/{versionNumber}/functions
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/agents/{agentId}/versions/{versionNumber}/functions:
    get:
      tags:
        - Agents
      summary: List Agent Version Functions
      description: >-
        Returns the functions configured on one version of an agent in your
        workspace.
      operationId: listAgentVersionFunctions
      parameters:
        - name: agentId
          required: true
          in: path
          description: ID of the agent
          schema:
            type: string
        - name: versionNumber
          required: true
          in: path
          description: Version number of the agent
          schema:
            type: string
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                  - statusCode
                  - message
                  - data
                  - timestamp
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  error:
                    type: boolean
                    enum:
                      - false
                  statusCode:
                    type: integer
                    example: 200
                  message:
                    type: string
                    example: Success
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Function ID.
                        agent_id:
                          type: string
                          description: Unprefixed agent ID (no agent_ prefix).
                        version_number:
                          type: string
                          example: '1'
                          description: >-
                            Version number. Serialized as a string (the column
                            is a 64-bit integer).
                        displayName:
                          type: string
                          nullable: true
                        type:
                          type: string
                          nullable: true
                        description:
                          type: string
                          nullable: true
                        config:
                          type: object
                          additionalProperties: true
                          nullable: true
                        createdAt:
                          type: string
                          format: date-time
                        updatedAt:
                          type: string
                          format: date-time
                  timestamp:
                    type: string
                    format: date-time
        '400':
          description: versionNumber is not a number.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: Non-numeric versionNumber
                  value:
                    statusCode: 400
                    error: true
                    success: false
                    data: []
                    message: column "nan" does not exist
                    errors:
                      - column "nan" does not exist
        '401':
          description: Missing, expired, or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 error
                  value:
                    statusCode: 401
                    error: true
                    success: false
                    data: []
                    message: Invalid API key
                    errors: []
        '403':
          description: The agent does not exist in your workspace or does not belong to it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 403 error
                  value:
                    statusCode: 403
                    error: true
                    success: false
                    data: []
                    message: Agent not found or does not belong to your organization
                    errors: []
      security:
        - bearer: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error body on endpoints without response filtering.
      properties:
        statusCode:
          type: integer
          example: 404
        error:
          type: boolean
          enum:
            - true
        success:
          type: boolean
          enum:
            - false
        data:
          oneOf:
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable refusal code.
            - type: array
              items: {}
          description: >-
            For a coded refusal, an object with code and the details listed for
            that code. Otherwise an empty array.
        message:
          type: string
        errors:
          type: array
          items:
            type: string
          description: Validation messages for a 400. Empty for other errors.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - statusCode
        - error
        - success
        - data
        - message
        - errors
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

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