Is it possible to access a single path element from $tyk_context.path_parts?


I would like to use a single element in the list contained in $tyk_context.path_parts, which is a list of items. Is there any way to index this list? I’m looking for something akin to $tyk_context.path_parts[2] or similar.

I need this to set a Header value.

Thank you,


@geoffunger Welcome to the community.

I don’t think there is a way to index this. The value comes out as a comma separated string

I guess you may have to write a custom plugin for your use case. We have samples in multiples languages that you can start with