Generate access token

Generates a JWT access token for any user type with a unified request format

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
userTypeenumRequired
The type of user requesting authentication
Allowed values:
idstringRequired

The ID of the user (developerId for developers, entityId for entities, userId for admins)

apiKeystringRequired
The API key for authentication
developerIdstringOptional

Required for entity userType - the developer ID that owns the entity

Response

Token generated successfully
access_tokenstring
The JWT token for authentication
token_typestring

The type of token (always “Bearer”)

expires_ininteger
Token expiration time in seconds

Errors

400
Bad Request Error
500
Internal Server Error