Set a connection to use credential authentication
POST/security/connections/:connection_id/credential_authentication
Sets the authentication method of a connection and associates the credentials This will remove any other authentication type set for the connection.
Request
Path Parameters
ID of the connection which you will set to use this type of authentication
- application/json
Body
required
Credential details
user_name that will be sent when using the connection. Must be globally unique. Case-insensitive.
password that will be sent when using the connection. Must be at least 8 characters or more in length.
URL to which Telnyx will deliver your Call Control webhooks
URL to which Telnyx will deliver your Call Control webhooks if we get an error response from your webhook_url
Responses
200: Credential Authentication creation response
- application/json
400: Bad Request
401: Unauthorized
404: Record Not Found
Request samples
curl -L 'https://api.telnyx.com/security/connections/:connection_id/credential_authentication' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"user_name": "string",
"password": "string",
"webhook_url": "string",
"failover_url": "string"
}'
Response samples
{
"success": true,
"message": "string",
"reasons": {}
}