Skip to content

Reference

Twilio

Connect Twilio to Alter Vault for secure API access

Use Twilio credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDtwilio
CategoryCommunication
Credential TypeBasic Auth

Log in to the Twilio Console

Log in to the Twilio Console at console.twilio.com.

Find credentials

Your Account SID and Auth Token are on the main dashboard.

Copy the Account SID

Copy the Account SID for the credential field.

Copy the Auth Token

Copy the Auth Token for the Auth Token field.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Twilio

Go to Managed Secrets > Add Provider > Twilio.

Enter credentials

Paste your Account SID and Auth Token into their respective fields.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.POST,
"https://api.twilio.com/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Messages.json",
grant_id="YOUR_GRANT_ID",
extra_headers={"Content-Type": "application/x-www-form-urlencoded"},
body=b"To=%2B15551234567&From=%2B15557654321&Body=Hello%20from%20Alter",
)
  • Treat your Auth Token like a password — it grants full access to your Twilio account. Never share it or commit it to source control.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
CreateMessagesendPOST/2010-04-01/Accounts/{AccountSid}/Messages.json
ListMessagereadGET/2010-04-01/Accounts/{AccountSid}/Messages.json
CreateCallsendPOST/2010-04-01/Accounts/{AccountSid}/Calls.json
ListCallreadGET/2010-04-01/Accounts/{AccountSid}/Calls.json
CreateParticipantsendPOST/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json
CreatePaymentspaymentPOST/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json
CreateMessageFeedbackwritePOST/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json
FetchBalancereadGET/2010-04-01/Accounts/{AccountSid}/Balance.json
CreateAccountadminPOST/2010-04-01/Accounts.json
CreateIncomingPhoneNumberadmin, paymentPOST/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json
ListIncomingPhoneNumberreadGET/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json
CreateNewKeyadminPOST/2010-04-01/Accounts/{AccountSid}/Keys.json
CreateNewSigningKeyadminPOST/2010-04-01/Accounts/{AccountSid}/SigningKeys.json
ListRecordingreadGET/2010-04-01/Accounts/{AccountSid}/Recordings.json
ListUsageRecordreadGET/2010-04-01/Accounts/{AccountSid}/Usage/Records.json
CreateQueuewritePOST/2010-04-01/Accounts/{AccountSid}/Queues.json
CreateUsageTriggerwritePOST/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.