Skip to main content
GET
Initiate OAuth authorization (PKCE)

Query Parameters

response_type
enum<string>
required

Must be code (authorization code flow).

Available options:
code
client_id
string
required

AWS CLI client identifier (same-device or cross-device ARN). Matched against the registered client list for the signin endpoint.

redirect_uri
string<uri>
required

Callback URI. Same-device: http://127.0.0.1:<port>/oauth/callback. Cross-device: https://api.aireserve.com/v1/sessions/confirmation.

code_challenge
string
required

PKCE code challenge: BASE64URL(SHA-256(code_verifier)).

code_challenge_method
enum<string>
required

Must be SHA-256.

Available options:
SHA-256
scope
enum<string>
required

Must be openid.

Available options:
openid
state
string
required

Opaque CSRF token generated by the CLI. Passed through unchanged to redirect_uri.

Response

Redirect to the AI Reserve portal approval page. After the user approves, the portal redirects code and state to redirect_uri.