Templates

List templates

Returns template summaries, newest first, filterable by category, channel, status, project, and search. Pass nextCursor back as cursor for the next page; it is null on the last page. Read a template's compiled content, current publication, and input schema with GET /v1/templates/{id}.

get/v1/templates

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/templates
  • Auth: API key in header x-api-key

Query parameters

limitstring nullable
cursorstring
category'transactional' | 'marketing' | 'support' | 'notification' | 'verification' | 'reminder' | 'alert' nullable
channel'email' nullable
status'draft' | 'pending' | 'approved' | 'published' | 'rejected' | 'archived' nullable
searchstring nullable
projectIdstring
namespaceIdstring
shared'true' | 'false' nullable

Only templates whose project is shared with every namespace (true), or only unshared ones (false).

Response

TemplatePage

nextCursorstring nullable required

Changes

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