Create a Client
The client name will be Alice as shown below:
CURL
curl -X POST https://api.teleapi.net/call/2012-04-24/Accounts/ACCOUNT_SID/Clients.json \
-d 'Login=alice' \
-d 'Password=test' \
-u 'teleapi-Token'
The output of the command will be similar to the one below:
{
"sid": "CL4e10e3b56a614414bcc1eeca5d96effe",
"date_created": "2013-10-16T08:51:32.460-06:00",
"date_updated": "2013-10-16T08:51:32.460-06:00",
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"api_version": "2012-04-24",
"friendly_name": "alice",
"login": "alice",
"password": "test",
"status": "1",
"voice_method": "POST",
"voice_fallback_method": "POST",
"uri": "/call/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Clients/CL4e10e3b56a614414bcc1eeca5d96effe.json"
}
There's two types of tokens: Call API SID Token and API Token; you'll need both.

Last modified 2yr ago