Hanzo
OpenapiO11y

Signs a user in with email and password and answers with the session's token…

Signs a user in with email and password and answers with the session's token pair.

POST /v1/o11y/sessions/email_password

Addresshttps://api.hanzo.ai/v1/o11y/sessions/email_password
MethodPOST
OperationCreateSessionByEmailPassword
AuthAuthorization: Bearer $HANZO_API_KEY

Signs a user in with email and password and answers with the session's token pair. Unauthenticated: this call is how authentication begins.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
emailbodystringEmail is the account's address.
orgIdbodystringOrgID picks the org to sign into when the address belongs to several.
passwordbodystringPassword is the account's password.

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 email_password

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page