> ## 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.

# Get Agent Function Descriptions

> Get Agent Function Descriptions with the DialNexa API. Returns the end_call function descriptions of one agent version.

Read only

Get Agent Function Descriptions uses your workspace API key. Returns the descriptions of one agent version's `end_call` functions, joined with newline characters. Other function types are not included; use [List Agent Version Functions](https://dialnexa.com/docs/api-reference/v1/agents/version-functions.md) to read every function. An empty string means the version has no `end_call` description.

## 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.

## Get Agent Function Descriptions 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/merged-description' \
  --header "Authorization: Bearer $DIALNEXA_API_KEY"
```

## Verify the result

Expect HTTP `200`. Read the `data` property in the success envelope; the response panel documents its fields.

## 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)
* [List Agent Version Functions](https://dialnexa.com/docs/api-reference/v1/agents/version-functions.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/merged-description
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/merged-description:
    get:
      tags:
        - Agents
      summary: Get Agent Function Descriptions
      description: >-
        Returns the descriptions of the version's end_call functions joined by
        newlines. Other function types are not included. An empty string when
        there are none.
      operationId: getAgentFunctionDescriptions
      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: string
                    description: >-
                      end_call function descriptions joined by newline
                      characters.
                  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.