Skip to content

Create list

Creates a new subscriber list

Endpoint URI

1
POST https://services.ownpage.fr/v1/newsletters/lists

Headers

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

Payload (JSON)

The data should be a JSON object with the following parameters :

  • name : the name of the new email list

Response (JSON)

The response is an object containing the following fields :

  • id: List id of the new list
  • name: Name of the new list
  • created_at: Creation date of the new list

Example

1
curl -X POST --header "X-Ownpage-Client-Token:TOKEN" --header "Content-Type:application/json" --data REQUEST_DATA https://services.ownpage.fr/v1/newsletters/lists

With REQUEST_DATA:

1
2
3
{
    "name": "My List"
}

Response:

1
2
3
4
5
{
    "id": 12,
    "name": "My List",
    "created_at": "2025-04-02T12:25:01.000Z"
}

Comments