Meta Data from a token session object

Hi,

I am trying to setup a dummy endpoint on OAuth which returns the TykMeta information as part of Response headers.
Can I try to access and add the Meta Data from a token session object to Response Headers on a MockResponse endpoint ?

Even as part of the response Body is fine too.

Thanks,
Prashanth

Hi Prashanth,

Unfortunately, it isn’t possible to add meta data to the Mock responders in this way as meta data is only available to the URL Rewrite, Body Transform and Header Injector keys in an API definition. For more information, you may want to check out our guide on API Definition Objects if you haven’t done so already.

https://tyk.io/tyk-documentation/tyk-rest-api/api-definition-object-details/

Do let us know if you’re unsure of anything.

Regards,

Jess @ Tyk