curl --request GET \
--url https://api.telnyx.com/v2/whoami \
--header 'authorization: ${auth_v2_api_key}'
which produces this error:
{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Unrecognized Authorization header format, should be one of Basic or Bearer",
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}
Adding "Basic" to the authorization string doesn't help:
https://developers.telnyx.com/docs/v2/messaging/twexit?lang=curl and https://telnyx.com/resources/twexit-api-tutorial-python-sdk
Provide this curl command:
which produces this error:
Adding "Basic" to the authorization string doesn't help:
Also, there is no documentation on the "whoami" end point and a google search support.telnyx.com for "basic or bearer" produces nothing.