InyokeDocs
Campaigns

List campaigns

GET
/campaigns

The campaigns the key's holder can reach, in name order, so you can find the campaign id the other calls take. Archived campaigns are left out. Needs the leads:read scope.

Authorization

headerAuthorizationBearer <sk_live_...>

Your API key in an Authorization header: Authorization: Bearer sk_live_.... When a request carries a Bearer key and an x-api-key header, the Bearer key is used.

Query Parameters

limit?integer

How many rows a page holds, from 1 to 200.

Range1 <= value <= 200
Default50
cursor?string

The nextCursor of the previous page. Leave it out, or send it empty, for the first page. A cursor whose row has gone since answers 422 with reason stale_cursor: start again without one.

Lengthlength <= 200

Response Body

One page of campaigns.

application/json
  1. response
data*array<>
nextCursor*|

Send this as cursor for the next page. Null on the last page.

Example Request
curl -X GET 'https://www.inyoke.com/api/v1/campaigns'
Example Response
{  "data": [    {      "id": "cmhd4q2nb0001s8a1x7k3p9vz",      "label": "Final expense Florida",      "status": "ACTIVE"    },    {      "id": "cmhd4q9xe0002s8a1f5j8n2tc",      "label": "Medicare supplement Texas",      "status": "PAUSED"    }  ],  "nextCursor": null}