Docs
API ReferenceAbout
Docs
API ReferenceAbout
  1. Docs
  • Getting Started
  • Authentication
  • Permissions
  • Filtering
  • Uploading Files
  • Using Marvia CDN
  • API Reference
    • Users
      • Get a user
      • Delete a user
      • Update a user
      • List
      • Create a new user
      • List user locations
      • Update user locations
      • List user groups
      • Update user groups
    • Products
      • List products
      • Get a product
      • Get product API module
      • Get product delivery module
      • Get product distribution module
      • Get product locations module
      • Get product files module
      • Get product stock module
      • Get product price module
      • Get product workflow module
      • Get product socials module
      • Get product internal comment module
      • Get product campaigns module
      • Get product permissions module
      • Get product reservations module
      • Get product template module
      • Get product form builder module
      • Get product variants module
    • Locations
      • Update a location
      • Get a location
      • Delete a location
      • List locations
      • Create a new location
      • List location users
      • List location groups
    • Groups
      • Get a group
      • Update a group
      • Delete a group
      • List groups
      • Create a new group
      • List group users
      • List group locations
    • Uploads
      • Initialize multipart upload
      • Complete multipart upload
    • Assets
      • List assets
      • Create a new asset
      • Get asset
      • Update an asset
      • Search assets
      • Get all meta tags
      • Get asset meta tags
      • Update asset meta tags
    • Posts
      • List posts
      • Get a post
    • Campaigns
      • List campaigns
      • Get a campaign
      • List campaign products
  • Schemas
    • MissingPermissionsErrorEncoded
    • InternalServerErrorEncoded
    • UserNotFoundErrorEncoded
    • AssetMetaTagsSchema
    • MetaTagCategoryDefinitionSchema
    • UnauthorizedErrorEncoded
    • MetaTagDefinitionSchema
    • MetaTagOptionSchema
    • TranslationLabelSchema
    • TranslationSchema
    • InvalidAssetCategoriesErrorEncoded
    • UsernameNotUniqueErrorEncoded
    • EmailNotUniqueErrorEncoded
    • GetOneProduct
    • Group
    • LocationCoordinates
    • LocationContact
    • LocationAddress
    • Location
    • LocationMedia
    • LocationFile
    • PartialLocation
    • CampaignNotFoundErrorEncoded
    • ProductNotFoundErrorEncoded
    • ProductVariantsModule
    • ProductFormBuilderModule
    • ModuleNotActiveErrorEncoded
    • FormBuilderElement
    • ModuleIncompatibleWithProductTypeErrorEncoded
    • FormBuilderElementChild
    • ProductTemplateModule
    • ProductReservationsModule
    • ProductPermissionsModule
    • ProductCampaignsModule
    • LocationLegal
    • ProductInternalCommentModule
    • LocationInvoice
    • ProductSocialsModule
    • ProductWorkflowModule
    • ProductPriceModule
    • ProductStockModule
    • ProductFilesModule
    • ProductLocationsModule
    • LocationMediaItem
    • ProductDistributionModule
    • ProductDeliveryModule
    • InvalidTemplateModuleConfigurationErrorEncoded
    • ProductApiModule
    • VariantProduct
    • VariantParentProduct
    • CategorySchema
    • DefaultProduct
    • UpdateGroupsPayload
    • PostNotFoundErrorEncoded
    • User
    • LocationOther
    • LocationNotFoundErrorEncoded
    • InvalidLocaleErrorEncoded
    • DuplicateIdentifierErrorEncoded
    • GroupNotFoundErrorEncoded
    • DuplicateGroupNameErrorEncoded
    • AssetNotFoundErrorEncoded
    • FileNotFoundErrorEncoded
    • MetaTagValidationErrorEncoded
  1. Docs

Filtering

Filter your API requests to get exactly the data you need. Add a filter parameter to GET requests that supports it to narrow down results.
Quick Start: Filter results by adding conditions to your request.
Eg:?filter=city:equals:Amsterdam- This returns only locations in Amsterdam.

How It Works#

Each filter has three parts separated by colons:
field:operator:value
field - The property you want to filter by (like city, rating, or status)
operator - How you want to compare (like equals, gt for greater than, lte for less than or equal to)
value - The value you're looking for

Available Operators#

Different field types support different operators. Each endpoint's filter parameter lists the fields you can filter on and their type:

Text Fields (String)#

OperatorWhat it doesExample
equalsExactly matchescity:equals:Oslo
containsContains textname:contains:Restaurant
startsWithStarts with textcity:startsWith:New
endsWithEnds with textemail:endsWith:@example.com
inMatches any of the listed valuescity:in:Oslo|Amsterdam

Number Fields (Integer, Decimal)#

OperatorWhat it doesExample
equalsExactly equalsrating:equals:5
gtGreater thanrating:gt:3
gteGreater than or equal torating:gte:4
ltLess thanprice:lt:100
lteLess than or equal toprice:lte:50
inEquals any of the listed valuesrating:in:4|5

Date Fields#

OperatorWhat it doesExample
equalsExact date matchcreated:equals:2024-01-15
gtAfter datecreated:gt:2024-01-01
gteOn or after datecreated:gte:2024-01-01
ltBefore datecreated:lt:2024-12-31
lteOn or before datecreated:lte:2024-12-31

Boolean Fields (True/False)#

OperatorWhat it doesExample
equalsMatches boolean valueactive:equals:true

Literal Fields (Fixed Values)#

Some fields, such as status, only accept a fixed set of values. Each endpoint's filter parameter lists the allowed values.
OperatorWhat it doesExample
equalsMatches one of the allowed valuesstatus:equals:active
inMatches any of the listed valuesstatus:in:active|scheduled
Values must match one of the allowed values exactly. Any other value, or any other operator, returns an error.

Matching One of Several Values#

Use the in operator to match any value from a list. Separate the values with a pipe (|).
GET /posts?filter=status:in:active|draft
This returns posts that are either active or draft.
in is available on text, number and literal fields.
A list can hold up to 100 values.
Values can't be empty, so active||draft and active| return an error.
A value can't contain a pipe (|) or a comma (,).

Multiple Filters#

Combine multiple filters with commas.
GET /users?filter=email:endsWith:@gmail.com,createdAt:gt:2024-12-01
This returns users with a gmail address created after dec 1st, 2024
All conditions must be met. (AND logic used)

Filtering a Field More Than Once#

You can use the same field in several filters. This is how you filter on a range:
GET /users?filter=createdAt:gte:2024-01-01,createdAt:lt:2024-02-01
This returns users created in January 2024. Every filter on the field must match, just like filters on different fields.

Common Examples#

Find locations whose name starts with "Store":
GET /locations?filter=name:startsWith:Store
Find locations created in a date range:
GET /locations?filter=createdAt:gte:2024-01-01T00:00:00.000Z,createdAt:lte:2024-12-31T23:59:59.999Z
Combine multiple filters (locations with "Restaurant" created this year):
GET /locations?filter=name:contains:Restaurant,createdAt:gte:2025-01-01T00:00:00.000Z
Find users by last name:
GET /users?filter=lastName:contains:Smith
Find users with a specific email:
GET /users?filter=email:equals:john@example.com
Find users with Gmail addresses:
GET /users?filter=email:endsWith:@gmail.com
Find users with one of several email addresses:
GET /users?filter=email:in:john@example.com|jane@example.com

Tips#

Field names and operators are case-sensitive
Use exact field names as they appear in the API response
All filters are combined with AND logic (all conditions must match)
Invalid filters will return an error message explaining what went wrong

Error Handling#

The API validates all filters automatically. You'll get a clear error message if:
You use a field name that doesn't exist
You use an invalid operator
The value type doesn't match (e.g., using text where a number is expected)
Modified at 2026-11-13 10:39:18
Previous
Permissions
Next
Uploading Files
Built with