Sividocs

Get Components

Retrieve a paginated list of components belonging to a specific component library. Supports filtering by component attributes (vector types, shapes, complexity, etc.) and pagination.

Endpoint

POST component/get

Authentication

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_API_KEY

Request Body Example

{
  "clId": "cl_RY-kOJp4w__s",
  "filter": {
    "subTypes": ["person", "product"],
    "searchText": "frame"
  },
  "limit": 10,
  "sort": "DESC"
}

Request Parameters

ParameterTypeRequiredDescription
clIdStringYesComponent library ID
filterObjectNoComponent-level filters (see below)
filter.vectorTypesObjectNoFilter by vector types. Supports { op, value } where op is EXACT, AND, or OR
filter.shapesUsedArray<String>NoFilter by shapes used
filter.complexityArray<String>NoFilter by complexity levels
filter.cornerRadiusArray<String>NoFilter by corner radius styles
filter.subTypesArray<String>NoFilter by component subtypes (e.g. person, product)
filter.prevTypesArray<String>NoFilter by preview types
filter.semanticsArray<String>NoFilter by semantic types
filter.imageCountArray<Number>NoFilter by image count
filter.searchTextStringNoSearch by component name
cursorStringNoCursor for pagination
limitNumberNoNumber of components to return (1-100, default: 10)
sortStringNoSort order. Allowed values: ASC, DESC
abstractUserIdStringNoUnique identifier for the user (Enterprise/Super API only)

filter.vectorTypes Object

ParameterTypeRequiredDescription
opStringNoOperator for the filter. Allowed values: EXACT (match all), AND (match all), OR (match any). Defaults to OR
valueArray<String>YesVector type values to filter by

Response

Success Response (200 OK)

{
  "status": 200,
  "body": {
    "components": [
      {
        "cmpId": "cmp_6fa3051ab330cd09b26f5d08d570e4a3",
        "name": "frame-6914",
        "subType": "person",
        "system": "SYSTEM",
        "description": "",
        "cmpType": "flexible",
        "semanticTypes": ["person"]
      }
    ],
    "cursor": "eyJjbXBJZCI6ImNtcF9hYmMxMjMifQ",
    "total": 665
  }
}

Response Body Parameters

ParameterTypeDescription
cmpIdStringComponent identifier
nameStringComponent name
subTypeStringComponent subtype (e.g. person, product)
systemStringUSER or SYSTEM
descriptionStringComponent description
cmpTypeStringComponent type (e.g. flexible)
semanticTypesArray<String>Semantic types of the component
cursorStringCursor for fetching the next page of results
totalNumberTotal number of components matching the filters

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": "clId is required"
  }
}

Server Error (500 Internal Server Error)

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

Usage Notes

  • clId is required to identify the component library
  • Only enabled status components are returned
  • Results are paginated; use the returned cursor value in subsequent requests
  • The total field indicates the total number of components matching the applied filters
  • Use componentLibrary/get to discover available component libraries and their clId values