Auth0 - Generate token

Receives user authentication events from Auth0 post-login/post-registration action. Creates a new customer or updates existing customer data (if changes detected). Generates Cleeng access token (JWT) with configurable expiration.

Authorization: Requires Bearer token (JWT). The token value must match the secret in publisher configuration.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Errors

HTTP Status codeError CodeMessage Example
400ID0001Validation failed
400ID0001Invalid payload: unexpected EOF
401ID2001Missing Authorization header
409ID2104Auth0 identity ID mismatch: cannot change identity from existing value to auth0|9876543210
500IDXXXX (X - number)Internal Server Error

Body Params
string
required

Auth0 user identifier (typically "auth0|{sub}" format from Auth0 user object). Example: auth0|1234567890

string
required

User email address (must contain @). Example: [email protected]

string

User first name. Example: John

string

User last name. Example: Smith

string
required

User locale (language_COUNTRY format). Example: en_US

string
required

ISO 3166-1 alpha-2 country code. Example: US

string
required

ISO 4217 currency code. Example: USD

string
required

User IP address (validated as valid IPv4 or IPv6). Example: 192.168.1.1

int64

Optional Unix timestamp (seconds since epoch) when the access token should expire. Must be in the future. If not provided, uses the publisher's default accessTokenExpiration configuration. Example: 1736870400

string

Customer's external ID. Omitting it doesn't fail the request. It falls back to auth0Id as an identifier.

Max 128 characters, ASCII only

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json