List Custom Code Blocks

Get a list of scripts that have been applied to a site and/or individual pages.

Script Registration

To apply a script to a site or page, the script must first be registered to a site via the Register Script endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints.

See the documentation on working with Custom Code for more information.

Required scope | custom_code:read

Path parameters

site_idstringRequiredformat: "objectid"

Unique identifier for a Site

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

offsetdoubleOptional

Offset used for pagination if the results have more than limit records

limitdoubleOptional

Maximum number of records to be returned (max limit: 100)

Response

Request was successful

blockslist of objectsOptional
paginationobjectOptional

Pagination object

Errors