okaeDocs
APIExperimental

API reference · v1

List assessments

GET
/api/v1/workspaces/{workspace_id}/checks

List runs newest first. Supply repository_id to filter by repository. A workspace list uses the same visibility restrictions on rows and totals. Use the returned assessment ID to inspect one run.

Authorization

apiSession
AuthorizationBearer <token>

Owner credential for a single workspace. Expires after seven days or on revocation.

In: header

Path Parameters

workspace_id*string

Okae workspace ID from this session.

Formatuuid

Query Parameters

repository_id?string

Okae repository UUID returned as repository.id, or as id on a repository list item.

Formatuuid
pull_request_number?integer

Filter by repository-scoped PR number.

Range1 <= value
head_sha?string

Filter by exact revision.

Match^[0-9a-f]{40}$
offset?integer

Number of matching rows to skip.

Range0 <= value
Default0
limit?integer

Maximum rows returned.

Range1 <= value <= 100
Default25
search?string

Case-insensitive search text.

Lengthlength <= 200
outcome?string

Filter by result.

Default"all"

Value in

  • "all"
  • "approve"
  • "review"
  • "error"
  • "pending"
  • "waiting"
  • "superseded"
date_from?string

Inclusive UTC start date.

Formatdate
date_to?string

Inclusive UTC end date; maximum span 366 days.

Formatdate
latest_per_pr?boolean

Use the latest published Approve or Review for each PR within the period.

Defaultfalse

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/checks"
{  "checks": [    {      "id": "64d5124c-2e89-4c78-8e18-5d461a48a048",      "title": "Add inventory search",      "target": {        "kind": "pr",        "number": 42,        "url": "https://github.com/example/inventory/pull/42",        "head_sha": "b10aee0f983af246eb1fc96a76d32dae14289e52"      },      "status": "completed",      "outcome": "review",      "reasons": [        "Protected path",        "Dependency manifest"      ],      "approval_mode": "shadow",      "approval_submitted": false,      "created_at": "2026-11-10T08:00:00Z",      "completed_at": "2026-11-10T08:00:05Z",      "published_at": "2026-11-10T08:00:06Z",      "check_url": "https://github.com/example/inventory/runs/12345",      "repository": {        "id": "b24a126b-76a2-46e4-ae08-95477789565f",        "full_name": "example/inventory"      }    }  ],  "total": 1}