Hi,

I’m trying to read and reply direct messages. Currently I’m trying to make it with postman before coding anything. I’m following this documentation

I have my consumer_key, consumer_secret, access_token, token_secret and my bearer_token but when I send my get, I receive this message

{
“errors”: [
{
“code”: 220,
“message”: “Your credentials do not allow access to this resource.”
}
]
}

I don’t know what could be wrong. Any help is appreciated

Direct Message API endpoints are currently v1.1 only. Do you have access to the v1.1 APIs? (elevated access, not Essential)

Thank you for your response, yes, I have elevated access

@andypiper edition of this reply with image as evidence

Did you reset your tokens after modifying the app permissions to “Read, wrote and DM” ?

1 Like

Thank you @IgorBrigadir for joining. No, I haven’t. Should I reset tokens? All the tokens and the bearer?

Ah ok - after changing the permissions, you have to reset the access token and secret for the user. Then you can authenticate with the API key (consumer key) API secret (consumer key secret) and access token & secret - not a Bearer token.

I have reset the tokens, I tried again but the message is the same

By the way, I had to set the bearer

Because if I don’t, I get this message

Or maybe I’m using wrong some key or some key value. This is what I’m writing in each key