copy this file to .env and fill in the

One part I’m not totally sure which may be causing the problem is is the audience line in .env, under my API’s settings in auth0 is this meant to be “Id” eg. the randomly generated Id or the “Identifier”, the URL which you specify when creating the API?

You are correct with regards to the identifier of your API being the audience you should use when you request the access token.

Judging from the error you shared, it seems your authorizer is unable to decode the token. This will only occur if the token is not a valid JWT. Are you sure that you are in fact sending a JWT and not an opaque access token instead?

Keep in mind that if you haven’t specified an audience or have specified the userinfo endpoint as your audience, you will receive an opaque access token rather than a JWT.

Thanks for the response - its quite strange, the token from the Test page for the API came back as valid but when using that as the Bearer in the event.json file I would get the error above. I performed the cURL command in terminal with the example on the Test page and used the access token from that and npm test then worked.

Strange but I think I can move forward now, thank you for your assistance!