Skip to main content
GET
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key supplied as Authorization: Bearer <token>. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.

Query Parameters

page_size
integer
default:25

Number of results to return. Defaults to 25; maximum is 100. Invalid values are clamped to the valid range.

Required range: 1 <= x <= 100
page_cursor
string

Opaque URL-safe Base64 cursor returned by a previous list response.

filter[query]
string

Case-insensitive literal substring match over the template name or stored subject only; bodies are never searched. %, _, and \ are literal characters with no wildcard meaning. A blank value is treated as omitted.

filter[content_type]
enum<string>

Matches templates by stored body presence. html_and_text requires both an HTML and text body; html_only requires HTML and no text body; text_only requires text and no HTML body; no_body requires neither. null and exactly "" count as absent; whitespace-only strings count as content. An empty or unsupported value returns a 400 response.

Available options:
html_and_text,
html_only,
text_only,
no_body
filter[strict_variables]
enum<string>

Exact match on the template's strict_variables option. Only the exact query strings true and false are accepted; other values, including blank, return 400.

Available options:
true,
false
filter[autoescape]
enum<string>

Exact match on the template's autoescape option. Only the exact query strings true and false are accepted; other values, including blank, return 400.

Available options:
true,
false

Response

Paginated list of templates.

data
object[]
required
meta
object
required