SUMMARY
If API requests are failing, it is usually due to API access not being enabled, an invalid API key, permission restrictions, or incorrect request formatting.

COMMON CAUSES
• API access not enabled for the Subaccount
• Invalid or expired API key
• Using an API key from the wrong Subaccount
• Insufficient permissions for the action
• Incorrect request headers or payload

CHECK API ACCESS
• Confirm “Can Use API” is enabled for the Subaccount
• API access is disabled by default
• Only enabled Subaccounts can generate API keys

CHECK API KEY
• Confirm the API key was generated successfully
• Confirm the correct key is being used
• API keys are scoped to a specific Subaccount

CHECK PERMISSIONS
• API actions are permission-based
• Some endpoints require elevated permissions
• Texter roles do not have API access

CHECK REQUEST FORMAT
• Confirm headers and authentication are correct
• Confirm required fields are included
• Invalid payloads will be rejected

ENVIRONMENT MISMATCH
• Ensure requests are sent to the correct environment
• Production keys will not work in non-production environments

NOTES
• API errors usually return a descriptive response
• Rotating an API key invalidates the old key
• API usage is logged per Subaccount

RELATED ARTICLES
• API Overview
• Organizations & Subaccounts
• Users, Roles & Permissions