GET
https://www.app.ocoya.com/api/_public/v1/email/templates
List email templates
curl --request GET \
  --url https://www.app.ocoya.com/api/_public/v1/email/templates \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "id": "launch",
      "label": "<string>",
      "description": "<string>",
      "saved": true
    }
  ]
}

Authorizations

X-API-Keystringheaderrequired

Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.

Query Parameters

brandIdstringrequired

Ocoya brand ID. Get one from GET /brands.

Example:"cmayvq3hk00017apshay5qezu"

Response

application/json

Success

dataobject[]
Show child attributesHide child attributes
data.idstring
Example:"launch"
data.labelstring
data.descriptionstring
data.savedboolean