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

# Get Agent Fields Schema

> Return the `metadata` and `customAnalysis` field names, types and sample values seen in the agent's recent calls, so you can map them in your integration. Retell, Native and Vapi agents only.



## OpenAPI

````yaml get /webhooks/agents/{agentId}/fields-schema
openapi: 3.0.1
info:
  title: ChatDash Webhook API Documentation
  description: >-
    Subscribe to call events for voice agents (Retell, Native and Vapi) and
    retrieve recent events. See the Webhook Events page for payloads and
    delivery behavior.
  version: 1.1.0
servers:
  - url: https://api.chat-dash.com/v1/public
    description: >-
      Or your white-label backend domain:
      https://<your-backend-domain>/v1/public
security: []
paths:
  /webhooks/agents/{agentId}/fields-schema:
    get:
      tags:
        - Webhooks
      summary: Get Agent Fields Schema
      description: >-
        Return the `metadata` and `customAnalysis` field names, types and sample
        values seen in the agent's recent calls, so you can map them in your
        integration. Retell, Native and Vapi agents only.
      parameters:
        - name: Authorization
          in: header
          required: true
          description: >-
            A client API key (Agency dashboard → Clients → select a client → API
            Access tab) or the agency API key. Client keys can only manage their
            own client's subscriptions, agents and phone numbers.
          schema:
            type: string
        - name: agentId
          in: path
          required: true
          description: The agent ID
          schema:
            type: string
      responses:
        '200':
          description: Field names, types and sample values for metadata and customAnalysis
          content:
            application/json:
              schema:
                type: object
        '400':
          description: The agent's platform does not support call events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The agent or phone number belongs to a different client or workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string

````

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