API reference · v1
Request an assessment
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.
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.
uuidOkae repository UUID returned as repository.id, or as id on a repository list item.
uuidPR number in this repository.
1 <= valueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/pull-requests/1/check" \ -H "Content-Type: application/json" \ -d '{}'{ "job_id": "64d5124c-2e89-4c78-8e18-5d461a48a048", "pull_request": { "number": 42, "title": "Add inventory search", "url": "https://github.com/example/inventory/pull/42", "head_sha": "b10aee0f983af246eb1fc96a76d32dae14289e52", "base_branch": "main" }}List open pull requests GET
Choose an open pull request in the authorised repository. A provider failure returns an error.
Inspect an assessment GET
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.