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

# Submit evaluation result

> Save the answer and pass/fail outcome for one evaluation question. Your eval runner calls the agent endpoint, compares the response to the expected answer, then submits the result here.



## OpenAPI

````yaml post /api/agents/{agentId}/test-results/{promptId}
openapi: 3.0.3
info:
  title: Rippletide Agent Evaluation API
  description: >-
    Public API for evaluation agents, test prompts, test results, and knowledge
    imports
  version: 1.0.0
  contact:
    name: Rippletide API Support
servers:
  - url: https://agent-evalserver-production.up.railway.app
    description: Production server
  - url: http://localhost:3001
    description: Development server
security: []
paths:
  /api/agents/{agentId}/test-results/{promptId}:
    post:
      tags:
        - Test Results
      summary: Submit evaluation result
      description: >-
        Save the answer and pass/fail outcome for one evaluation question. Your
        eval runner calls the agent endpoint, compares the response to the
        expected answer, then submits the result here.
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Evaluation agent ID.
        - name: promptId
          in: path
          required: true
          schema:
            type: integer
          description: Question ID returned by Add evaluation questions.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitTestResultRequest'
            examples:
              passed:
                summary: Submit a passing evaluation result
                value:
                  status: passed
                  response: Customers can request a refund within 30 days of purchase.
                  expectedAnswer: Customers can request a refund within 30 days.
                  hallucinationLabel: FactIsPresent
                  hallucinationFindings: []
      responses:
        '200':
          description: Test result stored
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestResult'
              examples:
                stored:
                  summary: Stored result
                  value:
                    id: 4a2dc063-36f8-47b0-a703-bb2d7d4e44f5
                    agentId: 2f7e9c9c-9a2e-4e3a-b77f-6d9d1a7e3a11
                    promptId: 42
                    status: passed
                    sessionId: null
                    response: Customers can request a refund within 30 days of purchase.
                    expectedAnswer: Customers can request a refund within 30 days.
                    hallucinationLabel: FactIsPresent
                    hallucinationFindings: []
                    created_at: '2026-06-02T15:20:00Z'
                    updated_at: '2026-06-02T15:21:00Z'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SubmitTestResultRequest:
      type: object
      description: Submit the agent response and evaluation outcome for a prompt.
      properties:
        status:
          type: string
          enum:
            - passed
            - failed
            - ambiguous
          description: Evaluation outcome.
          example: passed
        response:
          type: string
          description: Agent response to the prompt.
          example: Customers can request a refund within 30 days of purchase.
        expectedAnswer:
          type: string
          nullable: true
          description: Reference answer used for evaluation.
          example: Customers can request a refund within 30 days.
        hallucinationLabel:
          type: string
          nullable: true
          description: Optional hallucination label returned by your evaluation step.
          example: FactIsPresent
        hallucinationFindings:
          type: array
          items:
            type: object
          nullable: true
          description: Optional fact-level findings returned by your evaluation step.
          example: []
      required:
        - status
        - response
    TestResult:
      type: object
      description: Stored evaluation result for one prompt.
      properties:
        id:
          type: string
          format: uuid
          description: Unique result identifier.
          example: 4a2dc063-36f8-47b0-a703-bb2d7d4e44f5
        agentId:
          type: string
          format: uuid
          description: Evaluation agent ID.
          example: 2f7e9c9c-9a2e-4e3a-b77f-6d9d1a7e3a11
        promptId:
          type: integer
          description: Prompt ID this result belongs to.
          example: 42
        status:
          type: string
          enum:
            - passed
            - failed
            - ambiguous
          description: Evaluation outcome.
          example: passed
        sessionId:
          type: string
          format: uuid
          nullable: true
          description: Optional session identifier associated with the result.
          example: a75b1bb5-0c7c-4302-978e-e2452b79df26
        response:
          type: string
          nullable: true
          description: Agent response that was evaluated.
          example: Customers can request a refund within 30 days of purchase.
        expectedAnswer:
          type: string
          nullable: true
          description: Reference answer used for evaluation.
          example: Customers can request a refund within 30 days.
        hallucinationLabel:
          type: string
          nullable: true
          description: Hallucination label returned by the evaluator, when available.
          example: FactIsPresent
        hallucinationFindings:
          type: array
          items:
            type: object
          nullable: true
          description: Fact-level findings returned by the evaluator.
          example: []
        created_at:
          type: string
          format: date-time
          description: Creation timestamp.
          example: '2026-06-02T15:20:00Z'
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp.
          example: '2026-06-02T15:21:00Z'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Platform API key for authenticated account-level API access

````