Generate access token

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

Headers

AuthorizationstringRequired

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 or null
The JWT token for authentication
token_typestring or null

The type of token (always “Bearer”)

expires_ininteger or null
Token expiration time in seconds

Errors