4.4. Generate an OT Token for an InApp action
Method | URL |
---|---|
POST | /oauth2/onetime/generate |
Requests the creation of an OT token required for perfoming an InApp action.
Request Body
Key | Required? | Data Type | Description |
---|---|---|---|
userId | Yes | integer | The unique ID of a specific user. |
Output
Key | Data Type | Description |
---|---|---|
token | string | An OT token generated by the broker’s backend. |
Request Example
curl -X POST ‘https://brokerCrmUrl.com/cid/oauth2/onetime/generate?token=cr56mng23454laf5545sdfdf234fs541200sdf’ -H ‘Content-Type: application/json’ -H ‘Accept: application/json’ -d ‘{"userId": 10345533}’
Expected Response Status Code
200
Response Example
{
"token": "16chD7xeIxc3p387Cjdcnpax2er"
}
Last update: February 6, 2023