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

# Create copilot actions

> Requires scopes: eval:read, eval:write



## OpenAPI

````yaml /api-reference/openapi.json post /api/copilot/threads/{id}/actions
openapi: 3.1.2
info:
  title: EvalGate API
  version: 18.12.0
  description: EvalGate API. See docs/api-contract.md for stability commitments.
servers:
  - url: https://evalgate.com
    description: Production
  - url: http://localhost:3000
    description: Local
security: []
paths:
  /api/copilot/threads/{id}/actions:
    post:
      tags:
        - copilot
      summary: Create copilot actions
      description: 'Requires scopes: eval:read, eval:write'
      operationId: post_copilot_threads_id_actions
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiCopilotThreadsIdActionsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiCopilotThreadsIdActionsResponse200ApplicationJson
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - bearerAuth: []
components:
  schemas:
    PostApiCopilotThreadsIdActionsRequest:
      type: object
      properties:
        message:
          type: string
        modelPreference:
          type: string
        preview:
          oneOf:
            - type: boolean
              enum:
                - false
            - type: boolean
              enum:
                - true
        maxProviderCostUsd:
          type: number
      additionalProperties: false
      required:
        - message
    PostApiCopilotThreadsIdActionsResponse200ApplicationJson:
      oneOf:
        - type: object
          properties:
            costEstimate:
              type: object
              properties:
                providerCostUpperBoundUsd:
                  type: number
                maxModelCalls:
                  type: number
                maxInputBytes:
                  type: number
                evalgateResultUnits:
                  type: number
                scope:
                  type: string
                identities:
                  type: array
                  items:
                    type: object
                    properties:
                      provider:
                        type: string
                      model:
                        type: string
                    additionalProperties: false
                    required:
                      - provider
                      - model
                pricingIds:
                  type: array
                  items:
                    type: number
                expiresAt:
                  type: string
              additionalProperties: false
              required:
                - providerCostUpperBoundUsd
                - maxModelCalls
                - maxInputBytes
                - evalgateResultUnits
                - scope
                - identities
                - pricingIds
                - expiresAt
          additionalProperties: false
          required:
            - costEstimate
        - type: object
          properties:
            message:
              type: object
              properties:
                content:
                  type: string
                contentHash:
                  type: string
                createdAt:
                  type: string
                  format: date-time
                createdBy:
                  oneOf:
                    - type: 'null'
                    - type: string
                id:
                  type: string
                modelCallId:
                  oneOf:
                    - type: 'null'
                    - type: string
                organizationId:
                  $ref: '#/components/schemas/OrganizationId'
                redactionFindings:
                  type: array
                  items:
                    type: string
                redactionState:
                  type: string
                role:
                  type: string
                threadId:
                  type: string
              additionalProperties: false
              required:
                - content
                - contentHash
                - createdAt
                - createdBy
                - id
                - modelCallId
                - organizationId
                - redactionFindings
                - redactionState
                - role
                - threadId
            proposal:
              oneOf:
                - type: 'null'
                - type: object
                  properties:
                    after:
                      $ref: '#/components/schemas/JsonValue'
                    applicationResult:
                      oneOf:
                        - type: 'null'
                        - type: object
                          properties:
                            domain:
                              oneOf:
                                - type: string
                                  enum:
                                    - dashboard
                                - type: string
                                  enum:
                                    - dataset
                                - type: string
                                  enum:
                                    - deployment
                                - type: string
                                  enum:
                                    - evals_as_code
                                - type: string
                                  enum:
                                    - evaluation
                                - type: string
                                  enum:
                                    - monitor
                                - type: string
                                  enum:
                                    - org_memory
                                - type: string
                                  enum:
                                    - prompt
                                - type: string
                                  enum:
                                    - repository
                                - type: string
                                  enum:
                                    - scorer
                            resourceRef:
                              type: object
                              properties:
                                type:
                                  oneOf:
                                    - type: string
                                      enum:
                                        - dashboard
                                    - type: string
                                      enum:
                                        - dataset
                                    - type: string
                                      enum:
                                        - deployment
                                    - type: string
                                      enum:
                                        - evals_as_code
                                    - type: string
                                      enum:
                                        - evaluation
                                    - type: string
                                      enum:
                                        - monitor
                                    - type: string
                                      enum:
                                        - org_memory
                                    - type: string
                                      enum:
                                        - prompt
                                    - type: string
                                      enum:
                                        - repository
                                    - type: string
                                      enum:
                                        - scorer
                                id:
                                  type: string
                                version:
                                  type: string
                              additionalProperties: false
                              required:
                                - type
                                - id
                            createdDraftRef:
                              type: object
                              properties:
                                type:
                                  oneOf:
                                    - type: string
                                      enum:
                                        - dashboard
                                    - type: string
                                      enum:
                                        - dataset
                                    - type: string
                                      enum:
                                        - deployment
                                    - type: string
                                      enum:
                                        - evals_as_code
                                    - type: string
                                      enum:
                                        - evaluation
                                    - type: string
                                      enum:
                                        - monitor
                                    - type: string
                                      enum:
                                        - org_memory
                                    - type: string
                                      enum:
                                        - prompt
                                    - type: string
                                      enum:
                                        - repository
                                    - type: string
                                      enum:
                                        - scorer
                                id:
                                  type: string
                                version:
                                  type: string
                              additionalProperties: false
                              required:
                                - type
                                - id
                            rollbackRef:
                              oneOf:
                                - type: 'null'
                                - type: object
                                  properties:
                                    type:
                                      oneOf:
                                        - type: string
                                          enum:
                                            - dashboard
                                        - type: string
                                          enum:
                                            - dataset
                                        - type: string
                                          enum:
                                            - deployment
                                        - type: string
                                          enum:
                                            - evals_as_code
                                        - type: string
                                          enum:
                                            - evaluation
                                        - type: string
                                          enum:
                                            - monitor
                                        - type: string
                                          enum:
                                            - org_memory
                                        - type: string
                                          enum:
                                            - prompt
                                        - type: string
                                          enum:
                                            - repository
                                        - type: string
                                          enum:
                                            - scorer
                                    id:
                                      type: string
                                    version:
                                      type: string
                                  additionalProperties: false
                                  required:
                                    - type
                                    - id
                            detail:
                              type: object
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                          additionalProperties: false
                          required:
                            - domain
                            - resourceRef
                            - createdDraftRef
                            - rollbackRef
                            - detail
                        - type: object
                          properties:
                            acceptedRowIds:
                              type: array
                              items:
                                type: string
                            cause:
                              type: string
                            failures:
                              type: array
                              items:
                                type: object
                                properties:
                                  code:
                                    type: string
                                  line:
                                    type: number
                                  message:
                                    type: string
                                additionalProperties: false
                                required:
                                  - code
                                  - line
                                  - message
                          additionalProperties: false
                          required:
                            - acceptedRowIds
                    authorizationSnapshot:
                      type: object
                      properties:
                        actorId:
                          type: string
                        role:
                          oneOf:
                            - type: string
                              enum:
                                - admin
                            - type: string
                              enum:
                                - member
                            - type: string
                              enum:
                                - owner
                            - type: string
                              enum:
                                - viewer
                        scopes:
                          type: array
                          items:
                            type: string
                        requiredScope:
                          oneOf:
                            - type: string
                              enum:
                                - admin:workspace
                            - type: string
                              enum:
                                - eval:write
                        requiredRole:
                          oneOf:
                            - type: string
                              enum:
                                - admin
                            - type: string
                              enum:
                                - member
                        checkedAt:
                          type: string
                      additionalProperties: false
                      required:
                        - actorId
                        - role
                        - scopes
                        - requiredScope
                        - requiredRole
                        - checkedAt
                    before:
                      $ref: '#/components/schemas/JsonValue'
                    createdAt:
                      type: string
                      format: date-time
                    createdBy:
                      type: string
                    domain:
                      type: string
                    errorCode:
                      oneOf:
                        - type: 'null'
                        - type: string
                    errorMessage:
                      oneOf:
                        - type: 'null'
                        - type: string
                    evidence:
                      type: array
                      items:
                        type: object
                        properties:
                          type:
                            type: string
                          resourceRef:
                            type: object
                            properties:
                              type:
                                oneOf:
                                  - type: string
                                    enum:
                                      - dashboard
                                  - type: string
                                    enum:
                                      - dataset
                                  - type: string
                                    enum:
                                      - deployment
                                  - type: string
                                    enum:
                                      - evals_as_code
                                  - type: string
                                    enum:
                                      - evaluation
                                  - type: string
                                    enum:
                                      - knowledge
                                  - type: string
                                    enum:
                                      - monitor
                                  - type: string
                                    enum:
                                      - org_memory
                                  - type: string
                                    enum:
                                      - prompt
                                  - type: string
                                    enum:
                                      - repository
                                  - type: string
                                    enum:
                                      - scorer
                              id:
                                type: string
                              version:
                                type: string
                            additionalProperties: false
                            required:
                              - type
                              - id
                          label:
                            type: string
                          detail:
                            type: string
                        additionalProperties: false
                        required:
                          - type
                          - resourceRef
                          - label
                          - detail
                    expectedCostUsd:
                      oneOf:
                        - type: 'null'
                        - type: string
                    expectedResourceHash:
                      type: string
                    expiresAt:
                      type: string
                      format: date-time
                    id:
                      type: string
                    modelCallId:
                      type: string
                    organizationId:
                      $ref: '#/components/schemas/OrganizationId'
                    rationale:
                      type: string
                    redactionFindings:
                      type: array
                      items:
                        type: string
                    redactionState:
                      type: string
                    requestHash:
                      type: string
                    resourceRef:
                      type: object
                      properties:
                        type:
                          oneOf:
                            - type: string
                              enum:
                                - dashboard
                            - type: string
                              enum:
                                - dataset
                            - type: string
                              enum:
                                - deployment
                            - type: string
                              enum:
                                - evals_as_code
                            - type: string
                              enum:
                                - evaluation
                            - type: string
                              enum:
                                - monitor
                            - type: string
                              enum:
                                - org_memory
                            - type: string
                              enum:
                                - prompt
                            - type: string
                              enum:
                                - repository
                            - type: string
                              enum:
                                - scorer
                        id:
                          type: string
                        version:
                          type: string
                      additionalProperties: false
                      required:
                        - type
                        - id
                    reviewedAt:
                      oneOf:
                        - type: 'null'
                        - type: string
                          format: date-time
                    reviewedBy:
                      oneOf:
                        - type: 'null'
                        - type: string
                    sourceProposalId:
                      oneOf:
                        - type: 'null'
                        - type: string
                    status:
                      type: string
                    summary:
                      type: string
                    threadId:
                      type: string
                    updatedAt:
                      type: string
                      format: date-time
                    warnings:
                      type: array
                      items:
                        type: object
                        properties:
                          code:
                            type: string
                          message:
                            type: string
                          severity:
                            oneOf:
                              - type: string
                                enum:
                                  - blocking
                              - type: string
                                enum:
                                  - info
                              - type: string
                                enum:
                                  - warning
                        additionalProperties: false
                        required:
                          - code
                          - message
                          - severity
                  additionalProperties: false
                  required:
                    - after
                    - applicationResult
                    - authorizationSnapshot
                    - before
                    - createdAt
                    - createdBy
                    - domain
                    - errorCode
                    - errorMessage
                    - evidence
                    - expectedCostUsd
                    - expectedResourceHash
                    - expiresAt
                    - id
                    - modelCallId
                    - organizationId
                    - rationale
                    - redactionFindings
                    - redactionState
                    - requestHash
                    - resourceRef
                    - reviewedAt
                    - reviewedBy
                    - sourceProposalId
                    - status
                    - summary
                    - threadId
                    - updatedAt
                    - warnings
            clarifyingQuestion:
              oneOf:
                - type: 'null'
                - type: string
            modelCall:
              type: object
              properties:
                id:
                  type: string
                status:
                  oneOf:
                    - type: string
                      enum:
                        - fallback
                    - type: string
                      enum:
                        - success
                model:
                  type: string
                provider:
                  type: string
                cost:
                  type: object
                  properties:
                    amountUsd:
                      type: string
                    source:
                      oneOf:
                        - type: string
                          enum:
                            - estimated
                        - type: string
                          enum:
                            - evalgate_computed
                        - type: string
                          enum:
                            - gateway_reported
                        - type: string
                          enum:
                            - unavailable
                        - type: string
                          enum:
                            - unknown_model
                  additionalProperties: false
                  required:
                    - amountUsd
                    - source
                latencyMs:
                  type: number
              additionalProperties: false
              required:
                - id
                - status
                - model
                - provider
                - cost
                - latencyMs
            contextDisclosure:
              type: object
              properties:
                resourceCount:
                  type: number
                redactedResourceCount:
                  type: number
                truncatedResourceCount:
                  type: number
                redactionFindings:
                  type: array
                  items:
                    type: string
                warnings:
                  type: array
                  items:
                    type: string
              additionalProperties: false
              required:
                - resourceCount
                - redactedResourceCount
                - truncatedResourceCount
                - redactionFindings
                - warnings
            knowledgeRetrieval:
              type: object
              properties:
                status:
                  oneOf:
                    - type: string
                      enum:
                        - attempted_empty
                    - type: string
                      enum:
                        - failed_open
                    - type: string
                      enum:
                        - not_attempted
                    - type: string
                      enum:
                        - retrieved
                cutoff:
                  oneOf:
                    - type: 'null'
                    - type: string
                references:
                  type: array
                  items:
                    type: object
                    properties:
                      chunkRef:
                        type: string
                      documentId:
                        type: string
                      chunkId:
                        oneOf:
                          - type: 'null'
                          - type: string
                      contentHash:
                        oneOf:
                          - type: 'null'
                          - type: string
                    additionalProperties: false
                    required:
                      - chunkRef
                      - documentId
                      - chunkId
                      - contentHash
              additionalProperties: false
              required:
                - status
                - cutoff
                - references
            queries:
              type: array
              items:
                type: object
                properties:
                  tool:
                    oneOf:
                      - type: string
                        enum:
                          - dataset_count
                      - type: string
                        enum:
                          - dataset_outcomes
                      - type: string
                        enum:
                          - dataset_rows
                      - type: string
                        enum:
                          - dataset_search
                      - type: string
                        enum:
                          - dataset_semantic_search
                      - type: string
                        enum:
                          - invalid
                  scope:
                    type: object
                    properties:
                      datasetId:
                        oneOf:
                          - type: 'null'
                          - type: string
                      datasetName:
                        oneOf:
                          - type: 'null'
                          - type: string
                      filters:
                        type: object
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      totalMatches:
                        oneOf:
                          - type: 'null'
                          - type: number
                      populationSize:
                        oneOf:
                          - type: 'null'
                          - type: number
                      returned:
                        type: number
                      nextOffset:
                        oneOf:
                          - type: 'null'
                          - type: number
                    additionalProperties: false
                    required:
                      - datasetId
                      - datasetName
                      - filters
                      - totalMatches
                      - populationSize
                      - returned
                      - nextOffset
                  citations:
                    type: array
                    items:
                      type: string
                  data:
                    $ref: '#/components/schemas/JsonValue'
                  error:
                    oneOf:
                      - type: 'null'
                      - type: object
                        properties:
                          code:
                            type: string
                          message:
                            type: string
                        additionalProperties: false
                        required:
                          - code
                          - message
                  redaction:
                    type: object
                    properties:
                      state:
                        oneOf:
                          - type: string
                            enum:
                              - clean
                          - type: string
                            enum:
                              - redacted
                      findings:
                        type: array
                        items:
                          type: string
                      truncated:
                        type: boolean
                    additionalProperties: false
                    required:
                      - state
                      - findings
                      - truncated
                additionalProperties: false
                required:
                  - tool
                  - scope
                  - citations
                  - data
                  - error
                  - redaction
          additionalProperties: false
          required:
            - message
            - proposal
            - clarifyingQuestion
            - modelCall
            - contextDisclosure
            - knowledgeRetrieval
            - queries
    OrganizationId:
      type: string
      format: uuid
    JsonValue:
      oneOf:
        - type: 'null'
        - type: boolean
        - type: number
        - type: string
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - INVALID_REFERENCE
                - VALIDATION_ERROR
                - RATE_LIMITED
                - CONFLICT
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
                - QUOTA_EXCEEDED
                - FEATURE_LIMIT_REACHED
                - NO_ORG_MEMBERSHIP
                - SHARE_REVOKED
                - SHARE_EXPIRED
                - SHARE_UNAVAILABLE
                - PROVIDER_KEY_MISSING
                - PROVIDER_KEY_EXPIRED
                - PROVIDER_RATE_LIMITED
                - PROVIDER_UNAUTHORIZED
                - PROVIDER_UNAVAILABLE
                - AGENT_HANDOFF_INVALID
                - AGENT_HANDOFF_EXPIRED
                - AGENT_HANDOFF_DENIED
                - AGENT_HANDOFF_CONSUMED
                - PAYLOAD_TOO_LARGE
                - METHOD_NOT_ALLOWED
            message:
              type: string
            details: {}
            requestId:
              type: string
              format: uuid
            redaction:
              type: object
              properties:
                applied:
                  type: boolean
                  enum:
                    - true
                fieldCount:
                  type: integer
                  minimum: 0
                secretCount:
                  type: integer
                  minimum: 0
              required:
                - applied
                - fieldCount
                - secretCount
          required:
            - code
            - message
      required:
        - error
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
        WWW-Authenticate:
          description: >-
            Bearer challenge. Agent-facing routes include the RFC 9728
            resource_metadata URL.
          schema:
            type: string
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    Conflict:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
        Retry-After:
          description: Delay in seconds before retrying when present.
          schema:
            type: integer
            minimum: 1
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
      headers:
        RateLimit-Limit:
          description: Quota in requests for the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Remaining:
          description: Remaining requests in the active window.
          schema:
            type: integer
            minimum: 0
        RateLimit-Reset:
          description: Reset delay in seconds (not a Unix timestamp).
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        X-RateLimit-Reset:
          description: Legacy reset timestamp in Unix milliseconds.
          schema:
            type: integer
            minimum: 0
        RateLimit-Policy:
          description: IETF HTTPAPI structured quota policy (work in progress).
          schema:
            type: string
        RateLimit:
          description: >-
            IETF HTTPAPI structured remaining quota and reset delay (work in
            progress).
          schema:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: EvalGate API key
      description: >-
        Organization-scoped EvalGate API key. Discover the supported agent
        scopes at /.well-known/oauth-protected-resource. Per-operation grants
        are listed in x-evalgate-required-scopes; OpenAPI bearer security
        requirement arrays remain empty as required for non-OAuth schemes.
      x-evalgate-scopes-supported:
        - eval:read
        - eval:write
        - objectives:read
        - objectives:write
        - runs:read
        - runs:write
        - traces:read
        - traces:write
        - exports:download
        - reports:write
        - prompt:publish
        - scorer:publish
        - red_team:read
        - red_team:run
        - red_team:approve
        - docs:read
        - agent:read
        - agent:execute
        - resources:read
        - resources:write
        - contexts:read
        - contexts:write
        - observations:write
        - checks:read
        - checks:run
        - standards:read
        - standards:write
        - standards:approve
        - grants:read
        - grants:write
        - admin:keys
        - admin:workspace
        - admin:org
      x-evalgate-protected-resource-metadata: https://www.evalgate.com/.well-known/oauth-protected-resource

````

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