Skip to main content
Retrieves a list of page templates that are available for creating pages within a data source. Templates define the structure and initial content for new pages.

Method

Parameters

data_source_id
string
required
Identifier for the data source to list templates from.
start_cursor
string
Pagination cursor for retrieving the next page of results. If not provided, returns the first page.
page_size
number
The number of items to return per page. Maximum is 100. Default is 100.

Response

Returns a paginated list of data source template objects.
object
string
Always "list"
results
array
Array of data source template objects.
has_more
boolean
Whether there are more templates to retrieve.
next_cursor
string | null
Cursor for the next page of results. null if there are no more results.

Examples

List all templates

Manual pagination

Using the helper function

For a more convenient way to iterate through all templates, use the iterateDataSourceTemplates helper:
Or collect all templates at once:

Find a specific template

Notes

Templates are specific to each data source and define the default structure for new pages created within that data source.
Use the collectDataSourceTemplates and iterateDataSourceTemplates helper functions for easier pagination handling.