Hanzo AI

Disconnect user

Forgets the caller's GitHub connection in this org: the token is revoked at GitHub, and the sealed secrets and the row go.

POST /v1/provider/github/user/disconnect

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

Forgets the caller's GitHub connection in this org: the token is revoked at GitHub, and the sealed secrets and the row go. It says whether GitHub confirmed the revocation rather than reporting a success it did not see. Disconnecting what is not connected succeeds.

Request

The document declares no body for POST /v1/provider/github/user/disconnect. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask MCP's describe for post_provider_github_user_disconnect, which answers from the running route.

Response

StatusBodyMeaning
200provider.githubUserDisconnectOutok
defaultproblem-detailsrefused

200 body — 2 fields.

FieldInTypeAlwaysDescription
disconnectedbodyboolean—Disconnected is always true: the sealed token and the connection are gone from this deployment.
revokedbodyboolean—Revoked is whether GitHub confirmed the token is dead.

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