Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

57020: Authorization failed


ERROR: 57020

error-57020 page anchor
MESSAGING
ERROR

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