Magic Links
Generate Authorization Code
Generates an authorization code for a strategic partner customer user.
Extracts partner ID from the JWT token in the Authorization header, looks up the platform user ID, and generates a short-lived auth code.
Security considerations:
- Requires valid Bearer token in Authorization header
- Auth code is short-lived (typically 60 seconds)
- Auth code can only be used once
Authentication:
- Requires Bearer token in Authorization header
post/authenticate/partner/request-authcode
Headers
Authorizationobject required
Bearer token for partner authentication
Request body
Example request
{
"customerUserId": "759a086f-48b3-4e34-aefd-00c8a9e68523",
"customerId": "a7e55f28-8395-4884-8469-d16d90051b57",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"scope": "ADMIN"
}Response
Auth code generated successfully
Example response
{
"auth_code": "abc123def456",
"expires_in": 60,
"customer_user_id": "759a086f-48b3-4e34-aefd-00c8a9e68523"
}