Skip to main content

List creative library items

GET /api/library/{kind}

Public curated assets. Supply limit for paginated search; offset requires limit. q filters the paginated request. Without pagination, the whole current list is returned. Premium metadata omits contentUrl.

Authentication​

No authentication is required by this operation.

Parameters​

ParameterLocationTypeRequiredDescription and constraints
kindpath"examples" / "design-templates" / "canvas-presets" / "shapes"Yes
limitqueryintegerNoMinimum: 1. Maximum: 100.
offsetqueryintegerNoDefault: 0. Minimum: 0. Maximum: 100000.
qquerystringNoMaximum length: 80.

Request​

The shell examples read credentials from ZVID_API_KEY (or ZVID_ACCESS_TOKEN for Bearer authentication). Set that variable in your environment. Replace sample project, template, job, and asset identifiers with values from your own account.

This operation does not take a request body.

Request example​

curl --request GET 'https://api.zvid.io/api/library/YOUR_KIND'

Responses​

HTTP 200​

Successful response

Content type: application/json.

Required properties: kind, items.

FieldTypeRequiredDescription and constraints
response.kindstringYes
response.itemsarray of LibraryItemYes
response.totalintegerNo
response.limitintegerNo
response.offsetintegerNo
response.hasMorebooleanNo

Nested field: response.items

Array item: response.items[]

Schema: LibraryItem.

HTTP 400​

Invalid input or semantic validation error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYes
response.messagestringNo
response.detailsarray of objectNo
response.planLimitsobjectNoPresent on render validation errors; contains the authenticated user's current render limits.

Nested field: response.details

Array item: response.details[]

Unknown properties are rejected. Required properties: field, message.

FieldTypeRequiredDescription and constraints
response.details[].fieldstringYes
response.details[].messagestringYes

HTTP 401​

Missing or invalid credentials

Content type: application/json.

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 404​

Not found for this account

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 500​

Server error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

Schema definitions​

The following definitions describe the fields referenced above. Expand a definition to inspect its complete contract.

LibraryList

Required properties: kind, items.

FieldTypeRequiredDescription and constraints
LibraryList.kindstringYes
LibraryList.itemsarray of LibraryItemYes
LibraryList.totalintegerNo
LibraryList.limitintegerNo
LibraryList.offsetintegerNo
LibraryList.hasMorebooleanNo

Nested field: LibraryList.items

Array item: LibraryList.items[]

Schema: LibraryItem.

LibraryItem

Required properties: kind, slug, title.

FieldTypeRequiredDescription and constraints
LibraryItem.kindstringYes
LibraryItem.slugstringYes
LibraryItem.titlestringYes
LibraryItem.descriptionstringNo
LibraryItem.metaobject OR nullNoAt least one listed alternative must match.
LibraryItem.versionintegerNo
LibraryItem.sortOrderintegerNo
LibraryItem.statusstringNo
LibraryItem.contentUrlstringNoOmitted for premium items; use the content endpoint.
LibraryItem.contentHashstringNo
LibraryItem.createdAtstringNo
LibraryItem.updatedAtstringNo

Nested field: LibraryItem.meta

At least one listed alternative must match.

anyOf alternative 1

Type: object.

anyOf alternative 2

Type: null.

ValidationError

Required properties: error.

FieldTypeRequiredDescription and constraints
ValidationError.errorstringYes
ValidationError.messagestringNo
ValidationError.detailsarray of objectNo
ValidationError.planLimitsobjectNoPresent on render validation errors; contains the authenticated user's current render limits.

Nested field: ValidationError.details

Array item: ValidationError.details[]

Unknown properties are rejected. Required properties: field, message.

FieldTypeRequiredDescription and constraints
ValidationError.details[].fieldstringYes
ValidationError.details[].messagestringYes
AuthenticationError

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
AuthenticationError.errorstringYesError type
AuthenticationError.messagestringNoHuman-readable error message
Error

Required properties: error.

FieldTypeRequiredDescription and constraints
Error.errorstringYesError type
Error.messagestringNoHuman-readable error message