Cakemail Logo
Cakemail API

Template (1.18.25)

Endpoint:https://api.cakemail.dev

Show all templates

GET
https://api.cakemail.dev
/templates

Show all templatesquery Parameters

  • account_idinteger · min: 1
  • pageinteger · min: 1
    Default: 1
  • per_pageinteger · min: 1
    Default: 50
  • with_countboolean
  • filterstring
  • sortstring
    Default: id

Show all templatesResponses

    • paginationobject · required
    • dataobject[] · required

Create a template

POST
https://api.cakemail.dev
/templates

Create a templatequery Parameters

  • account_idinteger · min: 1

Create a templateRequest Body

  • namestring · minLength: 1 · required
  • contentobject · required
  • descriptionstring
  • tagsstring[]

Create a templateResponses

    • idinteger · required
    • objectstring
      Default: template
    • createdboolean
      Default: true

Get a template

GET
https://api.cakemail.dev
/templates/{template_id}

Get a templatepath Parameters

  • template_idinteger · required

Get a templatequery Parameters

  • account_idinteger · min: 1

Get a templateResponses

    • dataobject · required

Delete a template

DELETE
https://api.cakemail.dev
/templates/{template_id}

Delete a templatepath Parameters

  • template_idinteger · required

Delete a templatequery Parameters

  • account_idinteger · min: 1

Delete a templateResponses

    • idinteger · required
    • objectstring
      Default: template
    • deletedboolean
      Default: true

Update a template

PATCH
https://api.cakemail.dev
/templates/{template_id}

Update a templatepath Parameters

  • template_idinteger · required

Update a templatequery Parameters

  • account_idinteger · min: 1

Update a templateRequest Body

  • namestring · minLength: 1
  • descriptionstring
  • contentobject
  • tagsstring[]

Update a templateResponses

    • idinteger · required
    • dataobject · required
    • objectstring
      Default: template
    • updatedboolean
      Default: true

Render a template

GET
https://api.cakemail.dev
/templates/{template_id}/render

Render a templatepath Parameters

  • template_idinteger · required

Render a templatequery Parameters

  • account_idinteger · min: 1

Render a templateResponses

    string