okaeDocs
APIExperimental

API reference · v1

List open pull requests

GET
/api/v1/workspaces/{workspace_id}/repositories/{repository_id}/pull-requests

Choose an open pull request in the authorised repository. A provider failure returns an error.

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
repository_id*string

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

Formatuuid

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/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/pull-requests"
{  "pull_requests": [    {      "number": 42,      "title": "Add inventory search",      "url": "https://github.com/example/inventory/pull/42",      "head_sha": "b10aee0f983af246eb1fc96a76d32dae14289e52",      "base_branch": "main"    }  ],  "first_assessment": {    "assessment": null  }}