API reference · v1
Inspect an assessment
Return one exact run under the same repository visibility as history. Poll this resource until a published judgement or terminal unassessed state. Honour Retry-After on 429. Cancelling a local wait does not cancel work.
Authorization
apiSession Owner credential for a single workspace. Expires after seven days or on revocation.
In: header
Path Parameters
Okae workspace ID from this session.
uuidAssessment ID returned by list or run.
uuidResponse 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/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "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" }}Request an assessment POST
Queue an assessment of the open PR. Okae verifies the repository and pins the current GitHub head revision at submission. The response includes that SHA and the job_id to poll. If supplied, head_sha must match the current head. An active run returns a conflict.
List assessments GET
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.