Skip to main content

Generate a new JWT for a user

GET 

https://embedded.runalloy.com/2024-03//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

{
"token": "XXXXXXXXXXXXXX.YYYYYYYYYYYYYY.ZZZZZZZZZZZZZZ"
}
curl -L 'https://embedded.runalloy.com/2024-03/users/:userId/token' \
-H 'Accept: application/json'
Request Collapse all
Base URL
https://embedded.runalloy.com/2024-03
Parameters
— pathrequired
— headerrequired
ResponseClear

Click the Send API Request button above and see the response here!