Skip to main content
POST
/
api
/
v1
/
widget
/
session
Create a widget access token
curl --request POST \
  --url https://app.mlm-platform.com/api/v1/widget/session \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-api-key: <api-key>' \
  --data '
{
  "user_id": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
"token": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

x-tenant-api-key
string
header
required

Tenant API key for authentication. Keys are scoped to specific environments (LIVE or SANDBOX). Obtain keys from the admin dashboard.

Body

application/json
user_id
string<uuid>
required

User ID for the widget session

Response

Widget session created

token
string

JWT Widget Access Token

expires_at
string<date-time>
user_id
string<uuid>