Search Endpoint
Overview
The Search endpoint allows filtering media items based on different properties.
HTTP Method
POST
Endpoint URL
{{BASE-URL}}/api/media/search
Request Parameters
Query Parameters
page
Positive integer (optional)
Page to retreive,0-indexed (Default - 0)
size
Integer 0-1000 (optional)
Number of items per page. (Default - 20)
sort
String (optional)
Parameter that should be sorted by in the format property,property (ASC|DESC)(IgnoreCase). The default sort direction is case-sensitive ascending. Use multiple sort parameters if you want to switch direction or case sensitivity
Headers
Header
Description
Content-Type
application/json
Authorization
Bearer {{YOUR-ACCESS-TOKEN}}
The access token is provided by the endpoint described here: Generate an API token
Request Body
Parameter
Description
Type
ids
Array of media IDs to filter
Array (optional)
searchTerm
Title (Optional), Flexible word matching
String
type
Type of media
VIDEO, IMAGE, AUDIO, DOCUMENT (optional)
tags
Map of tags (key-value pairs)
JSON Object (optional)
isLibrary
Whether to filter media from the library
Boolean (optional)
isActive
Active/inactive media filter
Boolean (optional)
Request Body Example
Full Example:
Example With Missing Values:
cURL Request Example
Response
Valid Response Example
Error Response
Invalid page (<0)
Return 400 Bad Request
Invalid size (<0)
Return 400 Bad Request
Request body parameters
Array of strings (mediaIds).
ids itself may be null.
Individual mediaId values cannot be null.
If a null element is included, you will receive:
Last updated