List all templates.
Changed onRetrieves a list of templates from the Carbone storage; with comprehensive filtering, searching, and pagination capabilities. By default, the endpoint returns all deployed templates, sorted by creation date in descending order, excluding any that have expired. It supports filtering by various criteria such as template ID, version ID, and category, offering flexibility to retrieve specific subsets of templates. Additionally, it supports fuzzy search in template names and exact matches on IDs and version IDs, enhancing discoverability.
Features
- Filtering: Filter templates by ID, version ID, and category to narrow down results based on specific criteria.
- Search Support: Utilize fuzzy search for template names and exact matches for IDs and version IDs to quickly locate desired templates.
- Version Inclusion: Include all versions of a template in the results by setting the includeVersions parameter to true, allowing for comprehensive version tracking.
- Pagination: Employ cursor-based pagination to efficiently navigate through large datasets, enabling scalable data retrieval.
Request
- Base URLhttps://api.carbone.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Filter by Template ID (64-bit format). Providing a Version ID (SHA256 format) is not allowed and will result in an API error..
Filter by Version ID (SHA256 format).
Filter by category.
Filter templates by their upload origin.
- 0: Templates uploaded via the API.
- 1: Templates uploaded via the Studio.
- 2: Templates uploaded via the Salesforce integration.
- 3: Templates uploaded via the Odoo integration.
- 4: Templates uploaded via the HubSpot integration.
By default equals to false. Use true to list all versions for a specific template ID.
Search in template name (fuzzy search), Version ID (exact match), or Template ID (exact match).
Limit the number of items returned, from 1 to 100 (100 by default).
A cursor to use in pagination. The cursor defines your place in the list for fetching the next set of results.
Headers
Carbone API major version to use. Only a major version can be specified: it automatically includes all future minor versions and patches.
- 5: latest version, recommended.
- 4: default when the header is not provided.
- 3: legacy.
- staging: not intended for production environments.
It is strongly recommended to always set this header explicitly to avoid unexpected behavior. See API versioning documentation
Response
List of deployed templates and their versions.
Example response
{
"success": true,
"hasMore": true,
"nextCursor": "cursor_hash"
}Changes
- breaking
the
carbone-versionrequest header's property undefined was restricted to a list of enum values - breaking
the
headerrequest parametercarbone-versionwas restricted to a list of enum values - breaking
for the
queryrequest parameterlimit, default value100was added - warning
for the
queryrequest parametercategory, the maxLength was set to200 - warning
for the
queryrequest parametersearch, the maxLength was set to200 - warning
for the
queryrequest parameterlimit, the max was set to100.00 - warning
for the
queryrequest parameterlimit, the min was set to1.00 - info
added the new enum value
3to theheaderrequest parametercarbone-version - info
added the new enum value
4to theheaderrequest parametercarbone-version - info
added the new enum value
5to theheaderrequest parametercarbone-version - info
added the new enum value
stagingto theheaderrequest parametercarbone-version - info
for the
headerrequest parametercarbone-version, the type was generalized fromintegertostring, and format fromint32to no format - info
added the non-success response with the status
- breaking