Management API

Metadata Filtering

10min

To filter by object's metadata which is stored as JSON a query parameter with metadata prefix must be sent in the URL. Here are some examples of how this filtering works:

Filter by whole metadata value

Query param: metadata={"key1":"value1"}

Response:

JSON


Filter by string key value

Query param: metadata__key1="value1"

Response:

JSON


Filter by number key value

Query param: metadata__key1=123

Response:

JSON


Filter by array key value

Query param: metadata__key1=[1, 2, 3]

Response:

JSON


Filter by object key value

Query param: metadata__key1={"key2": "value2"}

Response:

JSON


Filter by boolen key value

Query param: metadata__key1=true

Response:

JSON


Filter by null key value

Query param: metadata__key1=null

Response:

JSON


Filter by nested key value

Query param: metadata__key1__key2__key3="value3"

Response:

JSON


Filter by array item

Query param: metadata__key1__0=1

Response:

JSON


Filter by array containing item

Query param: metadata__key1__contains=1

Response:

JSON