Hanzo AI

Complete user

Finishes connecting the caller's GitHub account: it takes the authorization the callback parked, trades it for the person's token, and seals it.

POST /v1/provider/github/user/complete

Addresshttps://api.hanzo.ai/v1/provider/github/user/complete
MethodPOST
Operationpost_provider_github_user_complete
AuthAuthorization: Bearer $HANZO_API_KEY

Finishes connecting the caller's GitHub account: it takes the authorization the callback parked, trades it for the person's token, and seals it. Only the person who started the flow can complete it — another person's grant id is simply not found — and a grant completes once.

Request

1 field, body application/json (required).

FieldInTypeRequiredDescription
grantbodystring—Grant is the id the callback handed the console in its redirect.

Response

StatusBodyMeaning
200provider.githubUserOutok
defaultproblem-detailsrefused

200 body — 5 fields.

FieldInTypeAlwaysDescription
configuredbodyboolean—Configured is whether this deployment holds the App's OAuth client.
connectedbodyboolean—Connected is whether the caller has connected their own GitHub account in this org.
connectedAtbodystring—ConnectedAt is when the connection was made, RFC 3339 UTC.
expiresAtbodystring—ExpiresAt is when the current access token expires, RFC 3339 UTC.
loginbodystring—Login is the GitHub account they connected.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Provider API · All Hanzo APIs · Interactive reference

How is this guide?

On this page