Generate a new JWT for a user
GET/users/:userId/token
This endpoint is used to generate a new user token in the form of a JSON Web Token (JWT) which is required to securely render the Embedded Modal in your application. Once retrieved, you'll want to pass this token to your frontend.
Request
Path Parameters
userId stringrequired
The Id of the user you want to lookup. Returned from the Create User endpoint. Note: you can also use the Embedded user's username
in this field.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
Responses
- 200
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
token string
{
"token": "XXXXXXXXXXXXXX.YYYYYYYYYYYYYY.ZZZZZZZZZZZZZZ"
}
{
"token": "XXXXXXXXXXXXXX.YYYYYYYYYYYYYY.ZZZZZZZZZZZZZZ"
}
Loading...