Hanzo AI
OpenapiO11y

Rotate sessions

Exchanges a refresh token for a fresh token pair, retiring the old pair.

POST /v1/o11y/sessions/rotate

Addresshttps://api.hanzo.ai/v1/o11y/sessions/rotate
MethodPOST
OperationRotateSession
AuthAuthorization: Bearer $HANZO_API_KEY

Exchanges a refresh token for a fresh token pair, retiring the old pair. The access token being rotated identifies the session.

Request

1 field, body application/json (required).

FieldInTypeRequiredDescription
refreshTokenbodystring—RefreshToken is the refresh token being redeemed.

Response

StatusBodyMeaning
200o11y.O11yTokenOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yToken—
data.accessTokenbodystring—AccessToken authenticates requests until it expires.
data.expiresInbodyinteger—ExpiresIn is the access token's lifetime in seconds.
data.refreshTokenbodystring—RefreshToken buys the next pair via rotateSession.
data.tokenTypebodystring—TokenType is how to present the access token, e.g.
statusbodystring—Status is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y sessions rotate

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page