Hanzo
OpenapiO11y

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

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
refreshTokenbodystringRefreshToken is the refresh token being redeemed.

Response

StatusBodyMeaning
200o11y.O11yTokenOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yToken
data.accessTokenbodystringAccessToken authenticates requests until it expires.
data.expiresInbodyintegerExpiresIn is the access token's lifetime in seconds.
data.refreshTokenbodystringRefreshToken buys the next pair via rotateSession.
data.tokenTypebodystringTokenType is how to present the access token, e.g.
statusbodystringStatus 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