Skip to content

Get templates

Get templates to send transactional emails

Endpoint URI

1
GET https://services.ownpage.fr/v1/transactional/templates

Headers

  • X-Ownpage-Client-Token : a valid token

Response (JSON)

The response is an array of objects. Each object has the following fields :

  • id: Template ID
  • name: Name of the template
  • created_at: Creation date
  • updated_at: Last update date

Example

1
curl -H "X-Ownpage-Client-Token:TOKEN" https://services.ownpage.fr/v1/transactional/templates

Response example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[
    {
        "id": 1,
        "name": "My First Template",
        "created_at": "2025-03-21T11:00:00.000Z",
        "updated_at": "2025-03-21T11:15:40.000Z"
    },
    {
        "id": 2,
        "name": "My Second Template",
        "created_at": "2025-03-21T11:00:00.000Z",
        "updated_at": "2025-03-21T11:15:40.000Z"
    }
]

Comments