API reference · v1
Authorise an API session
Open this URL in the system browser. The owner signs in through GitHub and grants access to configure one workspace and read or request assessments. The client verifies the returned state. Only registered loopback callback shapes are accepted. Browser consent uses the existing session and CSRF protections.
Query Parameters
Client loopback callback.
uriCorrelates the login with the local client.
PKCE challenge.
^[A-Za-z0-9_-]{43}$Required challenge method.
Value in
- "S256"
Response Body
text/html
application/json
application/json
curl -X GET "https://example.com/api/v1/auth/authorize?redirect_uri=http%3A%2F%2Fexample.com&state=string&code_challenge=string&code_challenge_method=S256""string"API reference
API v1 for repository setup, configuration and GitHub pull request assessments.
Exchange the authorisation code POST
A native client exchanges a single-use, five-minute code bound to its PKCE challenge, callback URI, owner and workspace. Store the credential securely and send it as `Authorization: Bearer <token>` on API requests.