Getting Started with TextGrid
Learn how to authenticate, make your first API request, and integrate TextGrid messaging, voice, and webhooks.
Use the TextGrid API to send SMS and MMS messages, manage phone numbers, make voice calls, and register 10DLC brands and campaigns.
Get your credentials
Find your Account SID and Auth Token in your TextGrid account dashboard.
Keep these credentials private. Make API requests from your server rather than exposing credentials in browser or mobile application code.
Authenticate your requests
Join your Account SID and Auth Token with a colon:
YOUR_ACCOUNT_SID:YOUR_AUTH_TOKENBase64-encode that string and send the result in the Authorization header:
Authorization: Bearer YOUR_BASE64_ENCODED_CREDENTIALSMake your first request
Retrieve your account details:
curl "https://api.textgrid.com/2010-04-01/Accounts/YOUR_ACCOUNT_SID.json" \
-H "Authorization: Bearer YOUR_BASE64_ENCODED_CREDENTIALS"Replace both placeholders with your account’s values.
Explore the API
Open API Reference in the navigation to browse endpoints, request fields, response schemas, and examples.
Most operations use this base URL:
https://api.textgrid.com/2010-04-01Phone number lookups use:
https://lookups.textgrid.com/v1Use the content type shown for each endpoint. Some operations accept JSON, while others use form fields or query parameters.
Receive webhooks
Configure callback URLs to receive incoming messages, delivery updates, and voice events.
Your callback endpoints must be reachable by TextGrid. Verify the X-TextGrid-Signature header using your account’s Webhook Secret.
Register messaging traffic
For messaging that requires 10DLC registration:
- Create a brand.
- Complete verification and any required vetting.
- Register a campaign.
- Attach your sending numbers to the campaign.
The API Reference includes the endpoints for each step.
Updated about 7 hours ago