> ## 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.

# Get a normalized multi-agent trajectory

> Returns the exact run, participants, ordered events, scorer results, reports, and evidence links for one organization-scoped trajectory.



## OpenAPI

````yaml /api-reference/openapi.json get /api/trajectory-analysis/{trajectoryId}
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/trajectory-analysis/{trajectoryId}:
    get:
      tags:
        - trajectory analysis
      summary: Get a normalized multi-agent trajectory
      description: >-
        Returns the exact run, participants, ordered events, scorer results,
        reports, and evidence links for one organization-scoped trajectory.
      operationId: getTrajectoryAnalysis
      parameters:
        - name: trajectoryId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiTrajectoryAnalysisTrajectoryIdResponse200ApplicationJson
        '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:
            - runs:read
components:
  schemas:
    GetApiTrajectoryAnalysisTrajectoryIdResponse200ApplicationJson:
      type: object
      properties:
        run:
          type: object
          properties:
            id:
              type: string
            organizationId:
              $ref: '#/components/schemas/OrganizationId'
            trajectoryKey:
              type: string
            name:
              type: string
            schemaVersion:
              type: number
            sourceVariant:
              type: string
            sourceRunId:
              type: string
            evaluationRunId:
              oneOf:
                - type: 'null'
                - type: number
            state:
              oneOf:
                - type: string
                  enum:
                    - complete
                - type: string
                  enum:
                    - incomplete
                - type: string
                  enum:
                    - malformed
            missingParts:
              type: array
              items:
                type: string
            malformedParts:
              type: array
              items:
                type: string
            lastIdempotencyKey:
              type: string
            contentHash:
              type: string
            createdBy:
              type: string
            finalizedAt:
              oneOf:
                - type: 'null'
                - type: string
                  format: date-time
            retentionExpiresAt:
              type: string
              format: date-time
            createdAt:
              type: string
              format: date-time
            updatedAt:
              type: string
              format: date-time
          additionalProperties: false
          required:
            - id
            - organizationId
            - trajectoryKey
            - name
            - schemaVersion
            - sourceVariant
            - sourceRunId
            - evaluationRunId
            - state
            - missingParts
            - malformedParts
            - lastIdempotencyKey
            - contentHash
            - createdBy
            - finalizedAt
            - retentionExpiresAt
            - createdAt
            - updatedAt
        participants:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              organizationId:
                $ref: '#/components/schemas/OrganizationId'
              trajectoryId:
                type: string
              participantKey:
                type: string
              displayName:
                type: string
              role:
                type: string
              framework:
                oneOf:
                  - type: 'null'
                  - type: string
              metadata:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/JsonValue'
              createdAt:
                type: string
                format: date-time
            additionalProperties: false
            required:
              - id
              - organizationId
              - trajectoryId
              - participantKey
              - displayName
              - role
              - framework
              - metadata
              - createdAt
        events:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              organizationId:
                $ref: '#/components/schemas/OrganizationId'
              trajectoryId:
                type: string
              eventKey:
                type: string
              kind:
                oneOf:
                  - type: string
                    enum:
                      - message
                  - type: string
                    enum:
                      - final
                  - type: string
                    enum:
                      - model_call
                  - type: string
                    enum:
                      - cost
                  - type: string
                    enum:
                      - handoff
                  - type: string
                    enum:
                      - tool_call
                  - type: string
                    enum:
                      - tool_result
                  - type: string
                    enum:
                      - environment_observation
              participantKey:
                type: string
              participantId:
                oneOf:
                  - type: 'null'
                  - type: string
              targetParticipantKey:
                oneOf:
                  - type: 'null'
                  - type: string
              targetParticipantId:
                oneOf:
                  - type: 'null'
                  - type: string
              parentEventId:
                oneOf:
                  - type: 'null'
                  - type: string
              parentEventKey:
                oneOf:
                  - type: 'null'
                  - type: string
              occurredAt:
                type: string
                format: date-time
              sequence:
                type: number
              content:
                oneOf:
                  - type: 'null'
                  - type: string
              toolName:
                oneOf:
                  - type: 'null'
                  - type: string
              toolArguments:
                oneOf:
                  - type: 'null'
                  - type: object
                    additionalProperties:
                      $ref: '#/components/schemas/JsonValue'
              modelCallId:
                oneOf:
                  - type: 'null'
                  - type: string
              costRecordId:
                oneOf:
                  - type: 'null'
                  - type: number
              evidenceItemId:
                oneOf:
                  - type: 'null'
                  - type: number
              environment:
                oneOf:
                  - type: 'null'
                  - type: string
              observationKey:
                oneOf:
                  - type: 'null'
                  - type: string
              observationValue:
                $ref: '#/components/schemas/JsonValue'
              metadata:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/JsonValue'
              contentHash:
                type: string
              createdAt:
                type: string
                format: date-time
            additionalProperties: false
            required:
              - id
              - organizationId
              - trajectoryId
              - eventKey
              - kind
              - participantKey
              - participantId
              - targetParticipantKey
              - targetParticipantId
              - parentEventId
              - parentEventKey
              - occurredAt
              - sequence
              - content
              - toolName
              - toolArguments
              - modelCallId
              - costRecordId
              - evidenceItemId
              - environment
              - observationKey
              - observationValue
              - metadata
              - contentHash
              - createdAt
        scores:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              organizationId:
                $ref: '#/components/schemas/OrganizationId'
              trajectoryId:
                type: string
              scorerKey:
                type: string
              scorerVersion:
                type: string
              inputHash:
                type: string
              result:
                type: object
                properties:
                  schemaVersion:
                    type: number
                  trajectoryId:
                    type: string
                  behavior:
                    oneOf:
                      - type: string
                        enum:
                          - tool_use
                      - type: string
                        enum:
                          - classification
                      - type: string
                        enum:
                          - retrieval
                      - type: string
                        enum:
                          - extraction
                      - type: string
                        enum:
                          - multi_step_reasoning
                  taskType:
                    type: string
                  valid:
                    type: boolean
                  score:
                    oneOf:
                      - type: 'null'
                      - type: number
                  baselineVersion:
                    oneOf:
                      - type: 'null'
                      - type: string
                  failureModes:
                    type: array
                    items:
                      oneOf:
                        - type: string
                          enum:
                            - inefficient_path
                        - type: string
                          enum:
                            - unnecessary_tool_call
                        - type: string
                          enum:
                            - missed_tool_call
                        - type: string
                          enum:
                            - looping_behavior
                        - type: string
                          enum:
                            - non_parallel_execution
                        - type: string
                          enum:
                            - premature_termination
                  metrics:
                    oneOf:
                      - type: 'null'
                      - type: object
                        properties:
                          actualSteps:
                            type: number
                          actualToolCalls:
                            type: number
                          actualDurationMs:
                            type: number
                          redundancyRatio:
                            type: number
                          redundancySteps:
                            type: number
                          sequenceSimilarity:
                            type: number
                          efficiency:
                            type: number
                          toolUsage:
                            type: number
                          redundancy:
                            type: number
                          latency:
                            type: number
                          parallelizationPenalty:
                            type: number
                          parallelizationScore:
                            type: number
                          requiredToolsMissing:
                            type: array
                            items:
                              type: string
                          forbiddenToolsUsed:
                            type: array
                            items:
                              type: string
                          extraToolsUsed:
                            type: array
                            items:
                              type: string
                          selectedBaselineVersion:
                            oneOf:
                              - type: 'null'
                              - type: string
                          baselineStepP50:
                            type: number
                          baselineStepP75:
                            type: number
                          baselineToolCallP50:
                            type: number
                          baselineToolCallP75:
                            type: number
                          baselineDurationP50:
                            type: number
                          baselineDurationP75:
                            type: number
                          idealExpectedSteps:
                            type: number
                          idealExpectedToolCalls:
                            type: number
                        additionalProperties: false
                        required:
                          - actualSteps
                          - actualToolCalls
                          - actualDurationMs
                          - redundancyRatio
                          - redundancySteps
                          - sequenceSimilarity
                          - efficiency
                          - toolUsage
                          - redundancy
                          - latency
                          - parallelizationPenalty
                          - parallelizationScore
                          - requiredToolsMissing
                          - forbiddenToolsUsed
                          - extraToolsUsed
                additionalProperties: false
                required:
                  - schemaVersion
                  - valid
                  - score
                  - failureModes
                  - metrics
              createdBy:
                type: string
              createdAt:
                type: string
                format: date-time
            additionalProperties: false
            required:
              - id
              - organizationId
              - trajectoryId
              - scorerKey
              - scorerVersion
              - inputHash
              - result
              - createdBy
              - createdAt
        reports:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              organizationId:
                $ref: '#/components/schemas/OrganizationId'
              trajectoryId:
                type: string
              scoreResultId:
                type: string
              title:
                type: string
              report:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/JsonValue'
              evidenceHash:
                type: string
              createdBy:
                type: string
              createdAt:
                type: string
                format: date-time
            additionalProperties: false
            required:
              - id
              - organizationId
              - trajectoryId
              - scoreResultId
              - title
              - report
              - evidenceHash
              - createdBy
              - createdAt
      additionalProperties: false
      required:
        - run
        - participants
        - events
        - scores
        - reports
    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

````