The Marqeta 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

Name Type Required Description Allowable Values
fields string No Specify a comma delimited list of fields to return (field_1,field_2,..). Omit this field to return all fields. 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