Skip to main content

Get Media

Retrieve a paginated list of media assets for the authenticated workspace. Supports filtering by type, subType, brand, and specific media ID.

Endpoint​

POST media/get

Authentication​

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_API_KEY

Request Body Example​

{
"type": "photo",
"subType": "photograph",
"bId": "b_s87vFxpfM0R",
"limit": 10,
"cursor": null,
"sort": "DESC"
}

Request Parameters​

ParameterTypeRequiredDescription
typeStringNoFilter by media type. See Media Types & SubTypes for allowed values
subTypeStringNoFilter by media subType. Must be valid for the given type. See Media Types & SubTypes for valid combinations
mIdStringNoFilter by a specific media ID
bIdStringNoFilter by brand ID
limitNumberNoNumber of items to return (1-50, default: 10)
cursorStringNoCursor for pagination
sortStringNoSort order. Allowed values: ASC, DESC
abstractUserIdStringNoUnique identifier for the user (Enterprise/Super API only)

Valid Type and SubType Combinations​

See Media Types & SubTypes for the complete list of valid type and subType combinations.

Response​

Success Response (200 OK)​

{
"status": 200,
"body": {
"media": [
{
"mId": "w_abc123----photo_001.jpeg",
"bId": "b_s87vFxpfM0R",
"type": "photo",
"subType": "photograph",
"system": "USER",
"url": "photo_001.jpeg",
"createdOn": 1715000000,
"meta": {
"touchPosition": {
"left": false,
"right": false,
"bottom": false,
"top": false,
"center": false
},
"imagePreference": {
"crop": null,
"removeBg": null,
"enhancement": null
},
"hueRotations": [],
"logoStyle": []
}
}
],
"cursor": "691443e27209a0eab5771a1b"
}
}

Response Body Parameters​

ParameterTypeDescription
mIdStringMedia identifier
bIdStringBrand ID the media is associated with (or null)
typeStringMedia type
subTypeStringMedia subType
systemStringUSER or SYSTEM
urlStringMedia file name/path
createdOnNumberCreation timestamp
meta.touchPositionObjectTouch position flags for design placement
meta.imagePreferenceObjectImage processing preferences
meta.hueRotationsArrayHue rotation values
meta.logoStyleArrayLogo style options
cursorStringCursor for fetching the next page of results

Error Responses​

Authentication Error (401 Unauthorized)​

{
"status": 401,
"body": {
"message": "Failed to authenticate request. Please add sivi-api-key header in request"
}
}

Invalid Input (422 Unprocessable Entity)​

{
"status": 422,
"body": {
"message": "Invalid type and subType combination"
}
}

Server Error (500 Internal Server Error)​

{
"status": 500,
"body": {
"message": "Server internal error"
}
}

Usage Notes​

  • Results are paginated; use the returned cursor value in subsequent requests
  • When specifying both type and subType, the combination must be valid (see table above)
  • Only USER media is returned by default; SYSTEM media is excluded