Update Auth Token
Updates the Auth Token for an existing Twilio provider. The new token is validated with Twilio before being saved to ensure it is correct. If validation fails, an error is returned and no changes are made.
Auth Token Update
This endpoint allows you to update the Auth Token for an existing Twilio provider without recreating the entire integration.Validation
Before saving, the new Auth Token is validated by calling the Twilio API with the existing Account SID and new Auth Token:- If validation succeeds, the token is encrypted and saved
- If validation fails, an error is returned and no changes are made
When to Use
Use this endpoint when:- Your Twilio Auth Token has been rotated
- You need to update credentials without losing phone number configurations
- You want to verify new credentials before committing them
Security
- The new Auth Token is encrypted before storage
- The old Auth Token is overwritten and cannot be recovered
- Auth Tokens are never exposed in API responses
Path Parameters
Provider identifier
Body
New Auth Token to set
Request DTO for updating a Twilio provider's Auth Token. The new credentials are validated with Twilio before being saved to ensure they are correct.
New Twilio Auth Token for API authentication. Must be exactly 32 lowercase hexadecimal characters. Found in the Twilio Console dashboard under Account Settings. Format: [a-f0-9]{32}. The token is validated with Twilio before being saved.
1Response
Auth Token updated successfully
Response DTO for Twilio provider integrations. Contains Twilio-specific configuration details including account identifier, SIP trunk configuration, and regional settings. AuthToken is intentionally excluded from responses for security.
Display name for the provider integration. Used to identify the provider in the UI and API responses.
Type of VoIP provider. Always returns Twilio for this DTO.
twilio Twilio Account SID. A unique identifier for the Twilio account associated with this provider. Format: AC[a-f0-9]{32} (e.g., ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx).
1Unique identifier for the provider integration.
Current verification status of the provider credentials. Indicates the health and validity of the integration. Supported values: pending, verified, warning, failed.
pending, verified, warning, failed Timestamp when the provider credentials were last verified. Null if verification has never been performed.
Total number of phone numbers currently imported and managed through this provider integration.
Detailed results of the last verification. Contains individual check results with status, messages, and timestamps. Null if verification has never been performed.
Twilio SIP Trunk SID. The unique identifier for the SIP trunk created in Twilio for this provider. Format: TK[a-f0-9]{32} (e.g., TKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx).
SIP trunk termination URI configured for this provider. Used for routing outbound calls through Twilio. Format: sip:.pstn.twilio.com
Twilio region where the SIP trunk is configured. Affects call routing latency and regional compliance. Common values: us1, us2, ie1, de1, au1, jp1, br1, sg1.
Whether the provider supports call transfers. When enabled, allows warm and cold transfers during calls. Requires proper Twilio account configuration and sufficient permissions.