cURL
curl --request POST \ --url https://api.puretalk.ai/api/calls/web/register \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "assistant_id": "e1f09482-2910-45e1-a2f3-ab75cd9a5a51" } '
{ "msg": "Success", "err": false, "results": { "call_id": "696a4c8f-3eaf-41bf-a052-2c2fe630c046", "token": "eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTc0NzY2MjY0NiwiaWF0IjoxNzQ3NjYyNjQ2fQ.DmmgsIB4wLO9dmUGsOAvbzXb5Ntc_Qhj68jJr4AM6PQ" } }
Register a new web call
Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
The ID of the assistant to use for the call
"e1f09482-2910-45e1-a2f3-ab75cd9a5a51"
Success
A success message
"Success"
A boolean value indicating if the request was successful
false
Show child attributes
Was this page helpful?