Field Filtering
Project only the fields you need from API responses.
The Core API supports field filtering for most GET requests. Append the fields parameter to your request URL to return only the requested fields in the response body.
Query parameters
| Fields | Description |
|---|---|
| fields string Optional | Specify a comma-delimited list of fields to return (field_1,field_2,…). Omit this field to return all fields.Allowable Values: All alpha-numeric characters, plus - and _. |
Note
Commas simultaneously delimit fields and nesting levels. The order in which you specify fields is insignificant in regards to nesting level. For example, the following sample request URL will return these four fields, provided all four fields exist: field_1, field_1.field_2, field_2, and field_2.field_1.
Sample request URL
https://api.marqeta.com/v3/campaigns?fields=field_1,field_2