Skip to content

Get campaigns

Get your campaigns

Endpoint URI

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

Headers

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

Response (JSON)

The response is an array of campaigns. Each campaign can contain :

  • id: Campaign id
  • name: Name of the campaign
  • list_id: ID of the subscribers list attached to this campaign
  • list_name: Name of the subscribers list attached to this campaign
  • active: Boolean indicating whether this campaign is active (scheduled) or not

Example

Request to get all the campaigns from our account

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

Response example:

1
2
3
4
[
    {"id":1,"name":"First campaign","list_id":1,"list_name":"Fist list", "active": true},
    {"id":2,"name":"Other campaign","list_id":1,"list_name":"Fist list", "active": false}
]

Comments