Twilio
Connect your Twilio account to track returned SMS, voice, Verify and other Usage Records categories in StackSpend.
Twilio
Usage Records API — Account SID and Auth Token required
The Twilio provider connects StackSpend to your Twilio account via the Usage Records API. The initial sync requests up to 90 days of available records; scheduled sync and provider reporting determine freshness. Returned summary and detailed categories can overlap, so their sum is not necessarily an invoice total.
What StackSpend tracks
- SMS costs
- Voice call charges
- Phone number fees
- Verify product charges
- Other categories actually returned by the connected account; separate product accounts are not guaranteed
- Available historical periods with scheduled refresh
Prerequisites
- A Twilio account with billing access
Setup
Get your Account SID and Auth Token
In the Twilio console, go to Account → API keys & tokens → Live credentials. Copy your Account SID and Auth Token.
Add to StackSpend
In StackSpend, go to Providers → Twilio. Enter your Account SID and Auth Token. Click Save.
Verify
The first sync requests up to 90 days of available usage records. Check the returned period and latest successful sync, then compare one non-overlapping category in the reported currency.
Data summary
| Attribute | Value |
|---|---|
| Data latency | Provider reporting plus scheduled sync |
| Historical data | Up to 90 days where available |
| Setup time | 3 min |
Frequently asked questions
Is a Twilio Auth Token read-only?
No. A connector that reads Usage Records does not make the supplied Auth Token a read-only credential. Review the required account access and your security policy before connecting.
Does this stop a runaway messaging job?
No. StackSpend monitors reported usage and sends supported notifications. Enforce sending limits, fraud controls and emergency actions in your Twilio and application workflows.
How do I reconcile Twilio costs?
Compare individual returned categories over the same period and currency. Twilio summary and detailed categories can overlap, so do not treat their combined sum as a reconciled invoice. Confirm account and product coverage separately.