Templates

List templates

Cursor-paginated list of templates, newest first. Pass the previous response's next_cursor as after to page forward; has_more is false and next_cursor is null on the last page.

search is a case-insensitive substring match on the NAME only — narrower than the dashboard's search, which also reads description and subject, because a caller that asked for a name match should not be handed rows that merely mention the word in their body.

A cursor is bound to the filters that minted it. Changing search or email_category while reusing a cursor answers 422 validation_error rather than returning a page that belongs to neither query — drop the cursor and start again from the first page.

Requires the templates:read scope — View your email templates.

get/api/v1/templates

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/v1/templates
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token
    • OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: templates:read)

Query parameters

limitinteger
afterstring

Opaque cursor from a previous response's next_cursor.

searchstring

Case-insensitive substring match on the name.

email_category'TRANSACTIONAL' | 'MARKETING' | 'SELF_MANAGED_UNSUBSCRIBE'

Response

Template list

has_moreboolean required
next_cursorstring nullable required

Pass as after to fetch the next page. null on the last page.

Changes

No recorded changes to this operation across all 1 revision of this API.