Query consumer by custom_id


Is there a way to query a consumer by custom_id?

I had a quick look at the code and I couldn’t find anything. But I found an index on that field. So we are “paying already the price”.


The /consumers docs mentions custom_id in the “List Consumers” endpoint in the following words:

A filter on the list based on the consumer custom_id field.

So you should be able to make a query such as:

curl http://kong:8001/consumers?custom_id=

Hope that helps.

Argh I somehow missed that. Thanks!