post
https://identity.api.sandbox.cleeng.com/hooks/v1/auth0/actions/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.
Request body
- Send one JSON object per request.
- If the body contains characters after the JSON object, the endpoint returns 400 ID0001.
- A stored customer value can exceed the limits in Body Params.
- If the request sends that value unchanged, the endpoint returns 400 ID0001 on every login.
- To resolve the error, correct the value in Auth0 or in Cleeng.
- The endpoint responds within approximately 20 s.
- If processing exceeds approximately 18 s, the endpoint returns 504 ID2112.
- 502 ID2111: Safe to retry the request.
- 504 ID2112: Safe to retry the request.
- 409 ID2113: Safe to retry the request once.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Errors
| HTTP Status code | Error Code | Reason | Message Example |
|---|---|---|---|
| 400 | ID0001 | invalid_payload | Validation failed |
| 400 | ID0001 | invalid_payload | Invalid JSON payload |
| 401 | ID2001 | unauthorized | Bearer token extraction failed |
| 401 | ID2001 | unauthorized | Invalid auth token signature |
| 401 | ID2001 | unauthorized | Invalid token claims |
| 401 | ID2001 | unauthorized | Missing or invalid publisherId in token |
| 409 | ID2104 | identity_mismatch | auth0 identity mismatch |
| 409 | ID2106 | external_id_conflict | Customer external ID already in use |
| 409 | ID2107 | email_conflict | Customer email already in use |
| 409 | ID2108 | identity_conflict | Auth0 identity already linked to another customer |
| 409 | ID2113 | customer_not_found | Customer not found for this publisher |
| 422 | ID2109 | invalid_email | Customer email rejected as invalid |
| 422 | ID2110 | invalid_customer_data | Customer data rejected as invalid |
| 500 | ID0002 | internal_error | Internal server error |
| 500 | ID2101 | customer_lookup_failed | Failed to get customer by identity |
| 500 | ID2102 | customer_create_failed | Failed to create customer |
| 500 | ID2103 | customer_update_failed | Failed to update customer |
| 502 | ID2111 | upstream_error | Upstream service error |
| 503 | ID2100 | config_not_found | Publisher configuration not found |
| 503 | ID2105 | integration_disabled | Auth0 integration is not active for this publisher |
| 504 | ID2112 | upstream_timeout | Upstream service timeout |

