Templates
List templates
Newest first, 20 a page unless `limit` says otherwise.
GET
Newest first, 20 a page unless limit says otherwise.
bearerheader
AuthorizationBearer <token>limit?integer1–100, default 20.
Range
0 <= valueafter?stringA template id: the page of older templates after it.
before?stringA template id: the page of newer templates before it.
Success
application/json- response
A list response (object: "list").
data*array<>has_more*booleanobject*stringcurl -X GET 'https://api.exx.sh/templates'Example Response
{ "data": [ { "alias": "string", "created_at": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "published_at": "string", "status": "draft", "updated_at": "string" } ], "has_more": true, "object": "string"}Count a segment's contacts GET
An exx extension: how many contacts the segment has now (a dynamic one's rule evaluated at the request). Past `limits.toml [segments] read_timeout` the answer is 503 with `Retry-After`, never a partial count.
Create a template POST
A new draft template; publish it before sending with it.