# Get Agent Evaluation Dataset

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v2/agents/{agent_id}/evaluation-datasets/{dataset_public_id}:
    get:
      summary: Get Agent Evaluation Dataset
      deprecated: false
      description: >-
        Retrieve detailed information about a specific evaluation dataset linked
        to the agent.
      operationId: api_v2_agents_evaluation_datasets_retrieve
      tags:
        - Agents/Evaluation Datasets
        - Agents/Evaluation Datasets
        - v2
      parameters:
        - name: agent_id
          in: path
          description: ID of the agent
          required: true
          example: 0
          schema:
            type: integer
        - name: dataset_public_id
          in: path
          description: UUID of the dataset to retrieve
          required: true
          example: ''
          schema:
            type: string
        - name: Organization-Id
          in: header
          description: 'ID of the organization. Optional. '
          required: false
          example: 0
          schema:
            type: integer
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: API KEY FOR EJENTO APIs
          required: true
          example: '{{your-api-key}}'
          schema:
            type: string
            default: '{{your-api-key}}'
        - name: Authorization
          in: header
          description: AUTH TOKEN
          example: Bearer {{your-access-token}}
          schema:
            type: string
            default: Bearer {{your-access-token}}
      responses:
        '200':
          description: Dataset retrieved successfully
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AgentEvaluationDatasetDetailResponseSchema_V2
          headers: {}
          x-apidog-name: OK
        '400':
          description: >-
            The `Organization-Id` header is not a positive integer, the URL path
            and `Organization-Id` name different organizations, or the request
            body's `organization_id` and `org_id` name different organizations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    default: false
                  message:
                    type: string
                  data:
                    type: object
                    default: {}
                    x-apidog-orders: []
                    properties: {}
                    x-apidog-ignore-properties: []
                required:
                  - success
                  - message
                  - data
                x-apidog-orders:
                  - success
                  - message
                  - data
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Record Not Found
        '403':
          description: >-
            The subscription key belongs to a different organization than the
            one this request names, or you do not have access to the
            organization it names. An organization that does not exist returns
            the same response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    default: false
                  message:
                    type: string
                  data:
                    type: object
                    default: {}
                    x-apidog-orders: []
                    properties: {}
                    x-apidog-ignore-properties: []
                required:
                  - success
                  - message
                  - data
                x-apidog-orders:
                  - success
                  - message
                  - data
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Server Error
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AgentEvaluationDatasetDetail404ResponseSchema_V2
          headers: {}
          x-apidog-name: ''
        '500':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/AgentEvaluationDatasetDetail500ResponseSchema_V2
          headers: {}
          x-apidog-name: ''
        '503':
          description: >-
            The organization for this request could not be verified. Try again
            later.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    default: false
                  message:
                    type: string
                  data:
                    type: object
                    default: {}
                    x-apidog-orders: []
                    properties: {}
                    x-apidog-ignore-properties: []
                required:
                  - success
                  - message
                  - data
                x-apidog-orders:
                  - success
                  - message
                  - data
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: ''
      security: []
      x-apidog-folder: Agents/Evaluation Datasets
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/998119/apis/api-24930613-run
components:
  schemas:
    AgentEvaluationDatasetDetailResponseSchema_V2:
      type: object
      properties:
        message:
          type: string
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/AgentEvaluationDatasetDetailResponse_V2'
      required:
        - message
        - success
        - data
      x-apidog-orders:
        - message
        - success
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AgentEvaluationDatasetDetailResponse_V2:
      type: object
      description: Response serializer for retrieving a single dataset
      properties:
        bridge_id:
          type: integer
          description: ID of the bridge record
        id:
          type: integer
          description: Primary key ID from the Evaluation Service
          nullable: true
        dataset_public_id:
          type: string
          format: uuid
          description: Public UUID of the dataset
        name:
          type: string
          description: Name of the dataset
        description:
          type: string
          description: Description of the dataset
          nullable: true
        questions:
          type: array
          items:
            $ref: '#/components/schemas/AgentEvaluationDatasetQuestion_V2'
          description: List of evaluation questions
        questions_count:
          type: integer
          description: Number of questions in the dataset
          nullable: true
        tags:
          type: array
          items:
            type: string
          description: Tags associated with the dataset
          nullable: true
        created_on:
          type: string
          format: date-time
          description: Timestamp when created
          nullable: true
        created_by:
          type: string
          description: Email of the creator
          nullable: true
        updated_on:
          type: string
          format: date-time
          description: Timestamp when last updated
          nullable: true
        metadata:
          allOf:
            - $ref: '#/components/schemas/AgentEvaluationDatasetBridgeMetadata_V2'
          description: >-
            Bridge record metadata. Fields: original_dataset_id (int) — legacy
            source dataset ID; source (str) — record origin, valid values:
            'api', 'migration', 'legacy'; notes (str) — free-text annotation.
          type: 'null'
        status:
          type: string
          description: Status of the dataset
          nullable: true
      required:
        - bridge_id
        - dataset_public_id
        - name
        - questions
      x-apidog-orders:
        - bridge_id
        - id
        - dataset_public_id
        - name
        - description
        - questions
        - questions_count
        - tags
        - created_on
        - created_by
        - updated_on
        - metadata
        - status
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AgentEvaluationDatasetBridgeMetadata_V2:
      type: object
      description: Optional metadata stored on the agent-dataset bridge record.
      properties:
        original_dataset_id:
          type: integer
          description: >-
            ID of the source legacy EvaluationDataset (populated during
            migration from the old model)
          nullable: true
        source:
          type: string
          description: >-
            How this bridge record was created. Valid values: 'api',
            'migration', 'legacy'.
          nullable: true
        notes:
          type: string
          description: Free-text annotation for this link
          nullable: true
      x-apidog-orders:
        - original_dataset_id
        - source
        - notes
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AgentEvaluationDatasetQuestion_V2:
      type: object
      description: Individual question in a dataset (response shape)
      properties:
        question:
          type: string
          description: The evaluation question/query
        expected_answer:
          type: string
          description: Expected answer for evaluation
          nullable: true
        context:
          type: string
          description: Optional context for the question
          nullable: true
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Optional metadata for the question
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
          nullable: true
      required:
        - question
      x-apidog-orders:
        - question
        - expected_answer
        - context
        - metadata
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AgentEvaluationDatasetDetail404ResponseSchema_V2:
      type: object
      properties:
        success:
          type: boolean
          default: false
        message:
          type: string
          default: Agent or dataset not found
        data:
          type: object
          additionalProperties:
            type: string
          default: {}
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
      x-apidog-orders:
        - success
        - message
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AgentEvaluationDatasetDetail500ResponseSchema_V2:
      type: object
      properties:
        success:
          type: boolean
          default: false
        message:
          type: string
          default: Internal Server Error
        data:
          type: object
          additionalProperties:
            type: string
          default: {}
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
      x-apidog-orders:
        - success
        - message
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    cookieAuth:
      type: apikey
      in: cookie
      name: sessionid
    oauth2:
      type: oauth2
      flows: {}
    APIKeyHeader:
      type: apikey
      in: header
      name: X-API-Key
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /api/login/access-token
    ejentoAuthKey:
      type: apikey
      in: header
      name: ejento-auth-key
      description: Server-to-server authentication key (EJENTO_SECRET / EJENTO_AUTH_KEY)
    Ocp-Apim-Subscription-Key:
      type: apikey
      in: header
      name: Ocp-Apim-Subscription-Key
      description: Subscription key. Required on every endpoint.
    Authorization:
      type: bearer
      scheme: bearer
      description: >-
        Your access token, sent as `Authorization: Bearer <token>` alongside the
        subscription key.
    Combination:
      group:
        - id: 619278
        - id: 619279
      type: combination
servers:
  - url: https://{{your-server-name}}
    description: Prod Env
security: []

```
