Search for resource

POST /data/search
application/json

Body Required

  • query string Required

    Search query string (minimum 3 characters)

  • project_id string(uuid)

    Filter search results by project ID

  • limit integer

    Maximum number of results per index

    Default value is 3.

  • offset integer

    Number of results to skip

    Default value is 0.

  • index_names array[string]

    List of index names to search in

    Values are assets, shots, or persons. Default value is ["assets", "shots", "persons"].

Responses

  • 200 application/json

    List of entities that contain the query

    Hide response attributes Show response attributes object
    • persons array[object]

      List of matching persons

    • assets array[object]

      List of matching assets

    • shots array[object]

      List of matching shots

  • 400

    Bad request

  • 403

    Insufficient permissions

POST /data/search
curl \
 --request POST 'http://api.example.com/data/search' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"query":"test will search for test","project_id":"a24a6ea4-ce75-4665-a070-57453082c25","limit":3,"offset":0,"index_names":["assets"]}'
Request examples
{
  "query": "test will search for test",
  "project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "limit": 3,
  "offset": 0,
  "index_names": [
    "assets"
  ]
}
Response examples (200)
{
  "persons": [
    {}
  ],
  "assets": [
    {}
  ],
  "shots": [
    {}
  ]
}