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

# Get Evaluation Group Schema

> Return a separate column schema for each active member evaluation of the group.

Rather than a single merged schema, the response holds one schema entry per active
member evaluation (each with its field list, total item count, and sampling info),
which lets a caller filter columns down to a chosen subset of the group's evaluations.
Schemas are computed from the member evaluations' items; include_archived controls
whether archived items are counted in that analysis. A group with no active members
returns an empty schema list. This differs from the plain get endpoint, which returns
group metadata and members but not their column schemas.



## OpenAPI

````yaml https://api.dev-sgp.scale.com/openapi-versions/v5/openapi.json get /v5/evaluation-groups/{group_id}/schema
openapi: 3.1.0
info:
  title: EGP API V5
  description: >-
    This is the parent API for all EGP APIs. If you are looking for the EGP API,
    please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
  - url: https://api.egp.scale.com
security: []
paths:
  /v5/evaluation-groups/{group_id}/schema:
    get:
      tags:
        - Evaluation Groups
      summary: Get Evaluation Group Schema
      description: >-
        Return a separate column schema for each active member evaluation of the
        group.


        Rather than a single merged schema, the response holds one schema entry
        per active

        member evaluation (each with its field list, total item count, and
        sampling info),

        which lets a caller filter columns down to a chosen subset of the
        group's evaluations.

        Schemas are computed from the member evaluations' items;
        include_archived controls

        whether archived items are counted in that analysis. A group with no
        active members

        returns an empty schema list. This differs from the plain get endpoint,
        which returns

        group metadata and members but not their column schemas.
      operationId: GET-V5-/v5/evaluation-groups/group_id/schema
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
            title: Group Id
        - name: include_archived
          in: query
          required: false
          schema:
            type: boolean
            description: Include archived items in schema analysis
            default: false
            title: Include Archived
          description: Include archived items in schema analysis
        - name: x-selected-account-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Account ID Header
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvaluationGroupSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    EvaluationGroupSchema:
      properties:
        object:
          type: string
          const: evaluation_group_schema
          title: Object
          default: evaluation_group_schema
        evaluation_group_id:
          type: string
          title: Evaluation Group Id
          description: The ID of the evaluation group
        evaluation_schemas:
          items:
            $ref: '#/components/schemas/EvaluationSchema'
          type: array
          title: Evaluation Schemas
          description: >-
            Schema for each member evaluation in the group, one entry per active
            evaluation
      type: object
      required:
        - evaluation_group_id
        - evaluation_schemas
      description: Per-evaluation schemas for all members of an evaluation group
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EvaluationSchema:
      properties:
        object:
          type: string
          const: evaluation_schema
          title: Object
          default: evaluation_schema
        evaluation_id:
          type: string
          title: Evaluation Id
          description: The ID of the evaluation
        total_items:
          type: integer
          minimum: 0
          title: Total Items
          description: Total number of evaluation items
        fields:
          items:
            $ref: '#/components/schemas/FieldSchema'
          type: array
          title: Fields
          description: List of all discovered fields, ordered alphabetically by field_name
        is_sampled:
          type: boolean
          title: Is Sampled
          description: >-
            Whether schema was computed from a sample of items (for large
            evaluations)
          default: false
        sample_size:
          title: Sample Size
          description: Number of items sampled for schema inference, if applicable
          type: integer
          minimum: 0
      type: object
      required:
        - evaluation_id
        - total_items
        - fields
      description: Schema information for an evaluation's item data structure
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          title: Error Type
          type: string
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    FieldSchema:
      properties:
        object:
          type: string
          const: field_schema
          title: Object
          default: field_schema
        field_name:
          type: string
          title: Field Name
          description: The flattened JSON key path (e.g., 'metadata.category')
        data_type:
          type: string
          title: Data Type
          description: >-
            JSON type: 'string', 'number', 'boolean', 'object', 'array', or
            'null'
        item_count:
          type: integer
          minimum: 0
          title: Item Count
          description: Number of evaluation items containing this field
        source:
          type: string
          enum:
            - data
            - task_result_cache
          title: Source
          description: 'The source of the field: ''data'' or ''task_result_cache'''
      type: object
      required:
        - field_name
        - data_type
        - item_count
        - source
      description: Schema information for a single field in evaluation item data
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````