Twilio
Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.
Overview
Connect your Twilio account to Nirvai to send SMS messages, make voice calls, and manage communications programmatically.
Supported Authentication Methods
- Basic Auth - Account SID + Auth Token
Prerequisites
- A Twilio account (Sign up free)
- A Twilio phone number (for sending SMS/making calls)
Setup Instructions
Getting Your Credentials
- Log in to the Twilio Console
- On the Console Dashboard, find the Account Info section
- Locate your credentials:
- Account SID: Starts with
AC...(34 characters) - Auth Token: Click "Show" to reveal it
- Account SID: Starts with
- In Nirvai, create a new Twilio credential:
- Username/Account SID: Paste your Account SID
- Password/Auth Token: Paste your Auth Token
Using API Keys (Alternative)
For enhanced security, you can create API Keys instead of using the main Auth Token:
- Go to Account > API Keys
- Click Create API Key
- Choose key type (Standard or Main)
- Note your SID and Secret (shown only once)
- Use API Key SID as username and Secret as password
Account Types
| Type | Description |
|---|---|
| Trial Account | Free, limited to verified numbers |
| Full Account | Paid, can send to any number |
Trial accounts can only send messages to verified phone numbers. Upgrade to remove this limitation.
Troubleshooting
Common Issues
- 401 Unauthorized: Check Account SID and Auth Token are correct.
- Trial account limitation: Trial accounts can only send to verified numbers.
- Geographic permissions: Some countries require enabling in Console > Phone Numbers > Geographic Permissions.
- Invalid phone number format: Use E.164 format (e.g., +1234567890).
Error Codes
| Code | Meaning |
|---|---|
| 20003 | Authentication failed |
| 21211 | Invalid 'To' phone number |
| 21608 | Unverified destination (trial accounts) |
| 21610 | Number blocked (opted out) |
Related Resources
Adapted for Nirvai platform
Next Steps
Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.