25105: The request is not authorized
ERROR
This error occurs when Twilio receives authentication for a request, but the authenticated credentials or user do not have access to the requested resource. Authenticate Twilio API requests with HTTP Basic authentication. For production requests, use an API key as the username and the API key secret as the password.
- The request used incorrect credentials.
- The credentials are valid, but they do not belong to the account or organization that owns the resource you are trying to access.
- The authenticated user does not have the required organization access to manage the requested resource.
- The authenticated user is a standard organization user and does not have permission to perform organization administration tasks.
- Verify the username and password in your HTTP Basic authentication header. For production, use the correct API key and API key secret.
- If you are testing locally, verify that the Account SID and Auth Token pair are correct and belong to the account you expect to use.
- Confirm that the request is targeting a resource that belongs to the same account or organization as the credentials you are sending.
- Review the user's organization role and role assignments in Twilio Admin. Grant Organization Owner, Organization Admin, or another appropriate role before retrying the request.
- If you use restricted access for users or credentials, update the assigned permissions so the request can access the required resource.