Skip to main content
Search templates

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
aggregations
object

Elasticsearch aggregations, passed through as sent and answered alongside the results. Two kinds are refused because they would reach past the caller's own view of the data: a global aggregation, which escapes the access filter, and a top_hits or scripted one, which can expose raw stored documents.

templateQuery
object

Search query the templates are matched against. Omit it to page through everything you can reach.

Response

Returns the matching templates, the total number of matches and any aggregations asked for.

aggregations
object

Results of the aggregations the search carried, answered as the search engine produced them. Absent where the search asked for none.

results
object[]

Matching templates, limited to the requested page.

total
integer

Number of templates matching the query, regardless of paging.

Example:

24