Hopes this helps, this is how i integrated it in my system and it works.
const options = {
method: 'GET',
url: `${this.nylasHost}/grants/${this.grantId}/messages?in=UNREAD`,
headers: { authorization: this.authHeader }
};
...make the request...