Hanzo
OpenapiO11y

Returns the reset-password token a user already has; absent one, the answer is…

Returns the reset-password token a user already has; absent one, the answer is a not-found rather than a fresh token.

GET /v1/o11y/users/{id}/reset_password_tokens

Addresshttps://api.hanzo.ai/v1/o11y/users/{id}/reset_password_tokens
MethodGET
OperationGetResetPasswordToken
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the reset-password token a user already has; absent one, the answer is a not-found rather than a fresh token. Admin gate.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
200o11y.O11yResetTokenOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yResetToken
data.expiresAtbodystring (date-time)ExpiresAt is when it stops working.
data.idbodystringID is the grant's id.
data.passwordIdbodystringPasswordID is the password record it resets.
data.tokenbodystringToken is the secret that redeems it.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y users reset_password_tokens get <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page