---
title: "Get a job's test report"
description: "Trillet OEM API: Every test caller of a provisioning job, with the verdict and the conversation."
openapi: /public/openapi/trillet-oem.yaml GET /partner/v1/jobs/{jobId}/test-report
lastUpdated: "2026-11-26"
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.trillet.ai/llms.txt). Append `.md` to any page URL for its markdown version.

`GET https://api.trillet.ai/partner/v1/jobs/{jobId}/test-report`

Every test caller of a provisioning job: who they were, what was expected, whether the call
passed, and the conversation. The callers are made up for the test; no real person is
involved. Needs `resources:read`. Returns `404` `report_not_ready` until the job has
finished, and for a job with no test calls.

## Authentication

- `partnerKey` — http bearer (tpk_live_...)

## Response 200

The test report.
  - response (object)
    - `object` (string, required)
    - `jobId` (string, required)
    - `total` (integer)
    - `passed` (integer)
    - `passedFirst` (integer)
    - `callers` (array)
      - `items` (object)
        - `title` (string)
        - `category` (string)
        - `language` (string)
        - `expected` (string)
        - `passed` (boolean)
        - `firstPassed` (boolean)
        - `retested` (boolean)
        - `score` (number | null)
        - `verdict` (string)
        - `transcript` (array)
          - `items` (object)
            - role: … (nested further)
            - text: … (nested further)
    - `fixes` (array)
      - `items` (object)
    - `needsYou` (array)
      - `items` (object)

## Response 401

Authentication failed. A key that is unknown or revoked returns `invalid_api_key`, an
account without Trillet OEM returns `partner_not_enabled`, and a partner key sent in
`x-api-key` returns `partner_key_wrong_header`. No credential, a user session or a user API
key returns `partner_key_required`. Handle a `401` by
status, not only by `error.code`.
  - response
    - (oneOf)
      - value (object)
        - `error` (object, required)
          - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
          - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
          - `message` (string, required)
          - `param` (string) — The request field the error is about, when there is one.
          - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.
      - value (object)
        - `error` (string, required)

## Response 403

`missing_scope`, or `key_restricted` on webhook endpoint routes.
  - response (object)
    - `error` (object, required)
      - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
      - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
      - `message` (string, required)
      - `param` (string) — The request field the error is about, when there is one.
      - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.

## Response 404

Not found, or not yours. For example `tenant_not_found`.
  - response (object)
    - `error` (object, required)
      - `type` (string, required, one of: invalid_request_error, authentication_error, permission_error, conflict_error, rate_limit_error, api_error, idempotency_error)
      - `code` (string, required) — A stable code. Handle errors by `code`, not by `message`.
      - `message` (string, required)
      - `param` (string) — The request field the error is about, when there is one.
      - `requestId` (string | null) — Include it when you contact support. Not present on idempotency errors.


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://docs.trillet.ai/api-specs.zip
