Meta Data from a token session object


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.


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.

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


Jess @ Tyk