Search Endpoint
Overview
The Search endpoint allows filtering media items based on different properties.
HTTP Method
POST
Endpoint URL
Request Parameters
Query Parameters
Headers
Header
Description
Content-Type
application/json
Authorization
Bearer {{YOUR-ACCESS-TOKEN}}
Request Body
Parameter
Description
Type
ids
Array of media IDs to filter
Array (optional)
title
Title
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:
{
"ids": ["0e86da5d-9efe-4be5-a7d7-61b4796cb8dd"],
"type": "VIDEO",
"title": {{TITLE}},
"tags": {
"tag1": "value1"
},
"isLibrary": true,
"active" : true
}
Example With Missing Values:
{
"ids": null,
"title": {{TITLE}},
"type": null,
"tags": null,
"isLibrary": false,
"active" : false,
}
cURL Request Example
curl --location '{{BASE-URL}}/api/media/search?direction={{DIRECTION}}&page={{PAGE_NUMBER}}&sortBy={{PROPERTY}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{YOUR-ACCESS-TOKEN}}' \
--data '{
"ids": [{{IDS}}],
"title": {{TITLE}},
"type": {{TYPE}},
"tags": {{TAGS}},
"isLibrary": {{LIBRARY}},
"active" : {{ACTIVE}}
}'
Response
Response Example
{
"content": [
{
"id": "53f7e0b1-c276-49d8-b6aa-75520ed385ce",
"url": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/media/00066767-4e16-4878-a99a-4594dedffa14.mp4",
"transcriptionUrl": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/transcriptions/00066767-4e16-4878-a99a-4594dedffa14.vtt",
"transcriptionLength": "0",
"type": "VIDEO",
"createdDate": "2025-02-04T21:18:07Z",
"title": "00066767-4e16-4878-a99a-4594dedffa14.mp4",
"subAccountId": "b4468974-32f5-11ef-b234-0660c3706637",
"duration": 120,
"includeInReport": true,
"isLibrary": true,
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"metadata": {
"data1": "my value",
"data2": false
},
"thumbnailUrl": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/media/thumbnail/53f7e0b1-c276-49d8-b6aa-75520ed385ce.jpg",
"previewUrl": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/media/preview/53f7e0b1-c276-49d8-b6aa-75520ed385ce.gif"
},
{
"id": "a9c7bf94-c78e-42e4-b22d-95a37712cf23",
"url": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/media/7db66c4d-0f14-49ed-9d7b-ed49e81bf800.mp4",
"transcriptionUrl": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/transcriptions/7db66c4d-0f14-49ed-9d7b-ed49e81bf800.vtt",
"transcriptionLength": "0",
"type": "VIDEO",
"createdDate": "2025-02-04T21:09:54Z",
"title": "7db66c4d-0f14-49ed-9d7b-ed49e81bf800.mp4",
"subAccountId": "b4468974-32f5-11ef-b234-0660c3706637",
"duration": 60,
"includeInReport": true,
"isLibrary": true,
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"metadata": {
"data1": "my value",
"data2": false
},
"thumbnailUrl": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/media/thumbnail/a9c7bf94-c78e-42e4-b22d-95a37712cf23.jpg",
"previewUrl": "https://sdkmobileapi-81a035d7-b51c-43a6-991a-71a9a29dee7d.s3.us-west-2.amazonaws.com/media/preview/a9c7bf94-c78e-42e4-b22d-95a37712cf23.gif"
}
],
"pageable": {
"pageNumber": 0,
"pageSize": 20,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"offset": 0,
"paged": true,
"unpaged": false
},
"totalElements": 2,
"totalPages": 1,
"last": true,
"numberOfElements": 2,
"size": 20,
"number": 0,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"first": true,
"empty": false
}
Last updated