curl --location --request POST '/telephony_credentials' \
--header 'Content-Type: application/json' \
--data-raw '{
"connection_id": "1234567890",
"name": "My-new-credential"
}'
{
"data": {
"created_at": "2020-06-18T21:32:38",
"expired": "false",
"expires_at": "2042-06-18T21:32:38",
"id": "c215ade3-0d39-418e-94be-c5f780760199",
"name": "2020-06-18 21:32:38.917732Z",
"record_type": "credential",
"resource_id": "connection:804252963366242252",
"sip_password": "a92dbcfb60184a8cb330b0acb2f7617b",
"sip_username": "gencrednCvHU5IYpSBPPsXI2iQsDX",
"updated_at": "2020-06-18T21:32:38.000Z",
"user_id": "user-id"
}
}
Authorization: Bearer ********************