> ## 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 eval loop transitions

> Requires scopes: eval:write



## OpenAPI

````yaml /api-reference/openapi.json post /api/eval-loop/workflows/{workflowId}/transitions
openapi: 3.1.0
info:
  title: EvalGate API
  version: 3.7.6
  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/eval-loop/workflows/{workflowId}/transitions:
    post:
      tags:
        - eval loop
      summary: Create eval loop transitions
      description: 'Requires scopes: eval:write'
      operationId: post_eval_loop_workflows_workflowId_transitions
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/PostApiEvalLoopWorkflowsWorkflowIdTransitionsRequest
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiEvalLoopWorkflowsWorkflowIdTransitionsResponse200ApplicationJson
        '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'
      security:
        - bearerAuth:
            - eval:write
components:
  schemas:
    PostApiEvalLoopWorkflowsWorkflowIdTransitionsRequest:
      oneOf:
        - type: object
          properties:
            evidence:
              type: object
              properties:
                monitorId:
                  type: number
                monitorVersionId:
                  type: string
                sampleId:
                  type: number
                monitorRunId:
                  type: number
                policySnapshotHash:
                  type: string
              additionalProperties: false
              required:
                - monitorId
                - monitorVersionId
                - sampleId
                - monitorRunId
                - policySnapshotHash
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - monitor_sampled
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                costRecordId:
                  type: number
                modelCallId:
                  type: string
                scorerResultId:
                  type: string
                scorerVersionId:
                  type: number
                resultHash:
                  type: string
              additionalProperties: false
              required:
                - costRecordId
                - modelCallId
                - scorerResultId
                - scorerVersionId
                - resultHash
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - scorer_recorded
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                alertId:
                  type: number
                topicId:
                  type: string
                topicVersionId:
                  type: string
                membershipId:
                  type: string
              additionalProperties: false
              required:
                - alertId
                - topicId
                - topicVersionId
                - membershipId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - alert_topic_created
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                reviewItemId:
                  type: number
              additionalProperties: false
              required:
                - reviewItemId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - review_opened
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                candidateId:
                  type: number
              additionalProperties: false
              required:
                - candidateId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - candidate_created
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                rationale:
                  type: string
                reviewItemId:
                  type: number
                approvalDecisionId:
                  type: number
              additionalProperties: false
              required:
                - rationale
                - reviewItemId
                - approvalDecisionId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - human_approved
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                evaluationId:
                  type: number
                testCaseId:
                  type: number
                gateRunId:
                  type: number
                gateEvidenceHash:
                  type: string
              additionalProperties: false
              required:
                - evaluationId
                - testCaseId
                - gateRunId
                - gateEvidenceHash
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - golden_gate_active
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                playgroundId:
                  type: number
                inputHash:
                  type: string
                playgroundRunSnapshotId:
                  type: number
                playgroundWinnerId:
                  type: number
              additionalProperties: false
              required:
                - playgroundId
                - inputHash
                - playgroundRunSnapshotId
                - playgroundWinnerId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - playground_reproduced
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                experimentId:
                  type: string
                experimentDecisionId:
                  type: string
                winningVariantId:
                  type: string
                comparisonHash:
                  type: string
              additionalProperties: false
              required:
                - experimentId
                - experimentDecisionId
                - winningVariantId
                - comparisonHash
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - experiment_won
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                artifactId:
                  type: number
                contentHash:
                  type: string
                artifactVersionId:
                  type: number
              additionalProperties: false
              required:
                - artifactId
                - contentHash
                - artifactVersionId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - artifact_published
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                deploymentId:
                  type: string
                artifactVersionId:
                  type: number
                deploymentRevision:
                  type: number
              additionalProperties: false
              required:
                - deploymentId
                - artifactVersionId
                - deploymentRevision
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - deployment_active
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                costRecordId:
                  type: number
                modelCallId:
                  type: string
                policySnapshotHash:
                  type: string
                verificationTraceId:
                  type: number
                verificationMonitorRunId:
                  type: number
              additionalProperties: false
              required:
                - costRecordId
                - modelCallId
                - policySnapshotHash
                - verificationTraceId
                - verificationMonitorRunId
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - online_verified
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
        - type: object
          properties:
            evidence:
              type: object
              properties:
                sharedReportId:
                  type: number
                signingKeyVersion:
                  type: number
                reportEvidenceHash:
                  type: string
              additionalProperties: false
              required:
                - sharedReportId
                - signingKeyVersion
                - reportEvidenceHash
            idempotencyKey:
              type: string
            stage:
              type: string
              enum:
                - report_signed
            expectedVersion:
              type: number
          additionalProperties: false
          required:
            - evidence
            - idempotencyKey
            - stage
            - expectedVersion
    PostApiEvalLoopWorkflowsWorkflowIdTransitionsResponse200ApplicationJson:
      type: object
      properties:
        status:
          oneOf:
            - type: string
              enum:
                - active
            - type: string
              enum:
                - completed
        id:
          type: string
        name:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        organizationId:
          $ref: '#/components/schemas/OrganizationId'
        createdBy:
          type: string
        version:
          type: number
        evidence:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        completedAt:
          oneOf:
            - type: 'null'
            - type: string
        sourceTraceId:
          type: number
        stage:
          oneOf:
            - type: string
              enum:
                - trace_captured
            - type: string
              enum:
                - monitor_sampled
            - type: string
              enum:
                - scorer_recorded
            - type: string
              enum:
                - alert_topic_created
            - type: string
              enum:
                - review_opened
            - type: string
              enum:
                - candidate_created
            - type: string
              enum:
                - human_approved
            - type: string
              enum:
                - golden_gate_active
            - type: string
              enum:
                - playground_reproduced
            - type: string
              enum:
                - experiment_won
            - type: string
              enum:
                - artifact_published
            - type: string
              enum:
                - deployment_active
            - type: string
              enum:
                - online_verified
            - type: string
              enum:
                - report_signed
        evidenceHash:
          type: string
      additionalProperties: false
      required:
        - status
        - id
        - name
        - createdAt
        - updatedAt
        - organizationId
        - createdBy
        - version
        - evidence
        - completedAt
        - sourceTraceId
        - stage
        - evidenceHash
    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
                - VALIDATION_ERROR
                - RATE_LIMITED
                - CONFLICT
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
                - QUOTA_EXCEEDED
                - NO_ORG_MEMBERSHIP
                - CROSS_ORG_REFERENCE
                - INCOMPLETE
                - MALFORMED
            message:
              type: string
            details: {}
            requestId:
              type: string
              format: uuid
          required:
            - code
            - message
      required:
        - error
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Conflict:
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or Session Token

````