Marvia Developer Portal
DocsAPI ReferenceAbout
DocsAPI 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
      • Get user locations
      • Update user locations
      • Get 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
    • Groups
      • Get a group
      • Update a group
      • Delete a group
      • List groups
      • Create a new group
    • 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
  • Schemas
    • Schemas
      • LocationAddress
      • Location
      • Group
      • LocationLegal
      • nonEmptyString
      • LocationInvoice
      • Date
      • LocationContact
      • LocationMediaItem
      • HttpApiDecodeError
      • Issue
      • LocationCoordinates
      • PropertyKey
      • UnauthorizedError
      • LocationMedia
      • MissingPermissionsError
      • User
      • PartialLocation
      • InternalServerError
      • UserNotFoundError
      • UsernameNotUniqueError
      • TranslationSchema
      • EmailNotUniqueError
      • GroupItem
      • CategorySchema
      • TranslationLabelSchema
      • GetOneProduct
      • UpdateGroupsPayload
      • DefaultProduct
      • VariantParentProduct
      • VariantProduct
      • DateFromString
      • LocationNotFoundError
      • ProductNotFoundError
      • ProductApiModule
      • ModuleNotActiveError
      • ModuleIncompatibleWithProductTypeError
      • ProductDeliveryModule
      • DuplicateIdentifierError
      • ProductDistributionModule
      • GroupNotFoundError
      • ProductLocationsModule
      • DuplicateGroupNameError
      • ProductFilesModule
      • ProductStockModule
      • ProductPriceModule
      • UUID
      • ProductWorkflowModule
      • ProductSocialsModule
      • ProductInternalCommentModule
      • ProductCampaignsModule
      • ProductPermissionsModule
      • MetaTagCategoryDefinitionSchema
      • AssetNotFoundError
      • MetaTagDefinitionSchema
      • InvalidLocaleError
      • ProductReservationsModule
      • MetaTagOptionSchema
      • FileNotFoundError
      • ProductTemplateModule
      • ProductFormBuilderModule
      • AssetMetaTagsSchema
      • FormBuilderElement
      • MetaTagValidationError
      • ProductVariantsModule
      • PostNotFoundError
DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  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:

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

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

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

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)

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

Tips#

Field names and operators are not 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 2025-11-20 08:20:25
Previous
Permissions
Next
Uploading Files
Built with