Authentication

Request email verification code (passwordless login)

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
emailstring · emailRequired

User email address

Responses
post
/auth/verification/send-code

Verify code and get JWT token

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptional
Responses
200

Successful Response

application/json
post
/auth/verification/verify-code

Refresh JWT token

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
refresh_tokenstringRequired

Refresh token to exchange for a new access token

user_uuidstringRequired

User UUID

Responses
200

Successful Response

application/json
post
/auth/verification/refresh-token

Revoke JWT token

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
refresh_tokenstringRequired

Refresh token to revoke

Responses
200

Successful Response

application/json
Responseobject
post
/auth/verification/revoke-token

Get current user info and billing

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Successful Response

application/json
get
/auth/users/me
200

Successful Response

List all API keys for the authenticated user

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · min: 1OptionalDefault: 1Example: 1
limitinteger · min: 1OptionalDefault: 10Example: 5
Header parameters
x-project-idstringRequired

Project ID to operate on

Example: 1a42c90f-02a6-434b-b9e6-43801a9314d0
x-api-keystringOptional

Auth with API Key, optional, just for test

Example: sk_GDjeKTfAaJwi4sLo-2AdimcK_Ya4l0KtU-4as2nJfJ8
Body
objectOptional
Responses
200

Successful Response

application/json
get
/auth/api-keys/

Create a new API key

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
x-project-idstringRequired

Project ID to operate on

Example: 1a42c90f-02a6-434b-b9e6-43801a9314d0
Body
namestringRequired

API key name

expires_in_daysany ofOptional

Expiration in days (optional)

integerOptional
or
nullOptional
scopesany ofOptional

List of scopes (optional)

string[]Optional
or
nullOptional
Responses
post
/auth/api-keys/

Deactivate an API key

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
key_idstring · uuidRequiredExample: 63f188cc-77d4-493a-9ce2-164471d9ac29
Header parameters
x-project-idstringRequired

Project ID to operate on

Example: 1a42c90f-02a6-434b-b9e6-43801a9314d0
Responses
200

Successful Response

application/json
delete
/auth/api-keys/{key_id}

Last updated