Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the
Error
Application error

57020: Authorization failed

Twilio Messaging DocumentationMessaging

Description

description page anchor

This error appears when Twilio cannot validate the request's Authorization header on a Messaging request. Twilio API requests use HTTP Basic authentication, and Twilio recommends API keys and API key secrets for production applications.

Possible causes

possible-causes page anchor
  • The request does not include an Authorization header.
  • The Authorization header does not contain valid Twilio API credentials.
  • Add a valid Authorization header to the request and authenticate with HTTP Basic authentication.
  • Use an API key and API key secret for production requests.
  • For local testing, use your Account SID and Auth Token.

Additional resources

additional-resources page anchor