invalid_token
401 · The key is unknown or malformed.
There is no such key: it was cut while copying, deleted, or issued in another environment, or the request carried the placeholder from an example, such as dnt_pat_.... The same code comes when Authorization has no word Bearer or uses another scheme such as Basic.
What to do
Section titled “What to do”Check the format Authorization: Bearer <key>, then copy the complete key without spaces or line breaks. Make sure the key and the API address belong to the same environment. You can copy the public key again in your dashboard. To replace a secret key: Replace a secret key.
Example response
Section titled “Example response”{ "type" : "https://developers.donatty.com/errors/invalid_token", "title" : "Invalid token", "status" : 401, "detail" : "The token is unknown, deleted or malformed.", "code" : "invalid_token"}