Stylograph API

List the team's message templates

The message templates the key's team saved in the Note Composer, newest first, at most 100. A message may hold merge fields such as `{{first_name}}`, as written in the Note Composer: fill them in before you send, because a send refuses `{` and `}` with `UNSUPPORTED_CHARACTERS`. Read only: templates are written in the Note Composer. Needs `notes:send`.

GET
/api/v1/templates

The message templates the key's team saved in the Note Composer, newest first, at most 100. A message may hold merge fields such as {{first_name}}, as written in the Note Composer: fill them in before you send, because a send refuses { and } with UNSUPPORTED_CHARACTERS. Read only: templates are written in the Note Composer. Needs notes:send.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API key (sg_live_...)>

An API key from Settings.

Query Parameters

category?string

Only templates in this category.

Lengthlength <= 100

Response Body

The templates.

application/json
  1. response
data*array<>
has_more*boolean

The team has more than 100 templates; narrow with category.

Example Request
curl -X GET 'https://composer.stylograph.ai/api/v1/templates'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "category": "string",      "message": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "has_more": true}