EaserixDocs
DevelopersAPI referenceLinksCampaigns

List the workspace's campaigns

Campaigns in the caller's workspace, newest first, paginated — shared by everyone in the workspace, not just their creator (EAS-73). Archived campaigns are hidden unless archived=1. q searches name server-side.

View as Markdown
GET
/v1/campaigns
AuthorizationBearer <token>

In: header

Query Parameters

q?string
archived?"1"

"1" lists archived campaigns instead of live ones

Value in

  • "1"
sort?string

Defaults to newest-updated. clicks/links order by a LEFT JOIN aggregate over each campaign's links, not a campaigns column, so they're still fully paginated (not a re-sort of one page).

Default"updated"

Value in

  • "updated"
  • "name"
  • "clicks"
  • "links"
limit?integer
Rangevalue <= 100
Default50
offset?integer
Default0

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/campaigns"
{  "campaigns": [    {      "id": "string",      "name": "string",      "utmSource": "string",      "utmMedium": "string",      "utmCampaign": "string",      "utmTerm": "string",      "utmContent": "string",      "archived": true,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "total": 0,  "limit": 0,  "offset": 0}