Skip to content

Get lists

Get your subscribers lists

Endpoint URI

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

Endpoint parameters

  • LIST_ID : the email list you want to read

Headers

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

Response (JSON)

The response is an array of lists. Each list can contain :

  • id: List id
  • name: Name of the list
  • created_at: Creation date
  • updated_at: Last update date

Example

Request to get all the lists from our account

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

Response example:

1
2
3
4
[
    {"id":1,"name":"First list","created_at":"2017-06-09T08:48:43.000Z","updated_at":"2017-06-09T08:48:43.000Z"},
    {"id":2,"name":"Other list","created_at":"2017-06-09T09:06:55.000Z","updated_at":"2017-06-09T09:06:55.000Z"}
]

Comments