Bearer oken invalid on one API but works when used at other places

Hi.

I am using bearer token for connections but I get following error when I try to use it with https://api.us.nylas.com/v3/connect/token API. Same error in postman as well
type: ‘token.unauthorized_access’,
message: ‘Bearer token invalid’

It works when I use it from curl curl --location ‘https://api.us.nylas.com/v3/applications’ \

–header ‘Accept: application/json’
–header 'Authorization: Bearer TOKEN VALUE"

What would be causing this error?

Hi @hshinde - thanks for posting, just to clarify are you trying to complete OAuth flow? Have you taken a look at our docs / code samples on creating grants.

Can you share a code sample of your call?