Hanzo AI

List user

Reports whether the caller has connected their own GitHub account in the org they act in, and as whom.

GET /v1/provider/github/user

Addresshttps://api.hanzo.ai/v1/provider/github/user
MethodGET
Operationget_provider_github_user
AuthAuthorization: Bearer $HANZO_API_KEY

Reports whether the caller has connected their own GitHub account in the org they act in, and as whom.

Request

GET /v1/provider/github/user takes no parameters and no body — the credential is the whole request.

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