Skip to main content

Get Dimension Sets

Retrieve a paginated list of dimension sets for the authenticated workspace. A dimension set (banner set dimension) groups one or more size definitions that can be used for design generation.

Endpoint

POST dimensionSet/get

Authentication

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_API_KEY

Request Body Example

{
"bSDId": "bsd_abc123",
"limit": 20,
"cursor": null,
"sort": "DESC"
}

Request Parameters

ParameterTypeRequiredDescription
bSDIdStringNoFilter by a specific dimension set ID
limitNumberNoNumber of items to return (1-50, default: 20)
cursorStringNoCursor for pagination
sortStringNoSort order. Allowed values: ASC, DESC
abstractUserIdStringNoUnique identifier for the user (Enterprise/Super API only)

Response

Success Response (200 OK)

{
"status": 200,
"body": {
"dimensionSets": [
{
"bSDId": "bsd_abc123",
"wId": "w_abc123",
"system": "USER",
"name": "Banner Set",
"defaultSizeId": "s_xyz789",
"sizes": [
{
"sId": "s_xyz789",
"dimension": { "width": 600, "height": 300 },
"medium": "displayAds",
"mediumType": "displayAds-half-page-ad"
},
{
"sId": "s_def456",
"dimension": { "width": 300, "height": 300 },
"medium": "custom",
"mediumType": "custom"
}
],
"createdOn": 1723300000,
"updatedOn": 1723300000
}
],
"cursor": "eyJiU0RJZCI6ImJzZF9hYmMxMjMifQ"
}
}

Response Body Parameters

ParameterTypeDescription
bSDIdStringDimension set identifier
wIdStringWorkspace ID the set belongs to
systemStringUSER or SYSTEM
nameStringDisplay name of the dimension set
defaultSizeIdStringThe default size ID within the set
sizesArrayList of size definitions
sizes[].sIdStringSize identifier
sizes[].dimensionObjectSize dimensions
sizes[].dimension.widthNumberWidth in pixels
sizes[].dimension.heightNumberHeight in pixels
sizes[].mediumStringMedium type (e.g. displayAds, custom)
sizes[].mediumTypeStringMedium subtype (e.g. displayAds-half-page-ad, custom)
createdOnNumberCreation timestamp
updatedOnNumberLast update timestamp
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 input"
}
}

Server Error (500 Internal Server Error)

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

Usage Notes

  • Results are scoped to the authenticated workspace; wId is derived from the session and cannot be set in the request body
  • Results are paginated; use the returned cursor value in subsequent requests
  • Only non-deleted dimension sets belonging to the workspace are returned