Hanzo AI
OpenapiO11y

Create email password

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
emailbodystring—Email is the account's address.
orgIdbodystring—OrgID picks the org to sign into when the address belongs to several.
passwordbodystring—Password is the account's password.

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 email_password

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page