Overview
Authenticate a user and receive an access token for API requests. Access tokens are valid for 1 hour. Use the refresh token to obtain a new token when the access token expires.Request Body
email(string) - User’s email address.password(string) - User’s password.
Example Request
Response
access_token(string) - The generated access token.refresh_token(string) - The token used to refresh authentication.token_type(string) - The type of token, typically “bearer”.expires_at(integer) - Timestamp of when the access token expires.refresh_expires_at(integer) - Timestamp of when the refresh token expires.user(object) - The authenticated user details.public_id(UUID) - The user’s unique identifier.email(string) - The user’s email address.name(string) - The user’s name.organization_public_id(UUID) - The public identifier of the organization.
Example Response
Headers
API versioning is required. Include the header X-API-Version with current version value in all requests.
Example:
"v1"
