POST
/
content
/
v2
/
content-models
/
{modelInternalName}
/
records
/
search
Search Content Model Records with Complex Filters
curl --request POST \
  --url https://apis.experro.app/content/v2/content-models/{modelInternalName}/records/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-environment-id: <x-environment-id>' \
  --header 'x-tenant-id: <x-tenant-id>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "sort_order": "<string>",
  "sort_by": "<string>",
  "limit": 123,
  "offset": 123,
  "fields": "<string>",
  "content_data_sort_by": "<string>",
  "parent_filter": [
    {
      "group": {
        "operator": "AND",
        "rules": [
          {
            "action": "equals",
            "field_name": "<string>",
            "value": [
              "<string>"
            ]
          }
        ]
      }
    }
  ],
  "child_filter": [
    {
      "group": {
        "operator": "AND",
        "rules": [
          {
            "action": "equals",
            "field_name": "<string>",
            "value": [
              "<string>"
            ]
          }
        ]
      },
      "component_name": "<string>"
    }
  ],
  "filter_operator": "AND",
  "field_type": "parent",
  "relation_field": "<string>",
  "relation_field_data_to_query": "<string>",
  "status": "PUBLISHED"
}'
{
  "Status": "success",
  "Data": {
    "records": [
      {
        "id": "<string>",
        "version_no": 123,
        "page_slug": "<string>",
        "page_title": "<string>",
        "version_name": "<string>",
        "seo": [
          {
            "id": "<string>"
          }
        ],
        "thumbnail_image": [
          "<string>"
        ],
        "content_model_name": "<string>",
        "current_version_id": "<string>",
        "title": "<string>",
        "version_id": "<string>",
        "record_data_language": "<string>",
        "categories": [
          "<string>"
        ]
      }
    ],
    "_meta_": {
      "tenant_id": "<string>",
      "workspace_id": "<string>",
      "env_type": "<string>",
      "store_hash": "<string>",
      "content_model_id": "<string>",
      "_fields_": {}
    },
    "total_rows": 123,
    "limit": 123,
    "offset": 123
  }
}
Before calling this endpoint, make sure you’ve generated an API token and picked the correct domain. See Authentication & Base URLs.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-tenant-id
string
required

Identifier for the tenant. Ensures data isolation per tenant.

x-workspace-id
string
required

Workspace identifier within the tenant. Scopes resources to a specific workspace.

x-environment-id
string
required

Unique identifier of the target environment. Used to scope the API call to a specific deployment environment.

Example:

"PRODUCTION-15a0f8c2-a5e8-4e40-ae74-cb1389d22f45-w49jkngj"

Path Parameters

modelInternalName
string
required

Internal identifier of the content model to search (e.g. blogPost).

Query Parameters

locale
string
required

Specifies the language or region for the response data

include_fields_meta
boolean

Flag to include meta details of the specified fields. When true, includes metadata for each returned field.

Body

application/json

Response

200
application/json

Paginated list of records matching the query.

The response is of type object.