Twilio · api · fg-0084

Twilio restricted API key fails with error 8021 although Read is granted

If you see Error 8021, the cause and the fix for Twilio are below, last verified 2026-10-07.

Verified Oct 2026trust 50/100
Symptom
Error 8021Listing messages fails with a key that has Read
Cause
Restricted keys separate List from Read. Listing resources needs the List permission.
Fix
Tick List as well as Read for each resource the key must enumerate.
Apply
https://console.twilio.com/us1/account/keys-credentials/api-keys/<key SID>: tick List next to Read for Messages, then Save
Affected
Twilio restricted API keys, October 2026

Last verified 2026-10-07 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun