OppiziDeveloper
API ReferenceCampaign Builder

Read back draft targeting

GET
/client/campaigns/{id}/draft-targeting

The targeting currently saved on your draft: map zones with their route counts, the carrier routes themselves, and any demographic attributes. This is the read-back for the two targeting steps.

It returns everything in one response and takes no paging parameters.

Authorization

ClientBearer
AuthorizationBearer <token>

Client-scoped key as a Bearer JWT; always pinned to your own client.

In: header

Path Parameters

id*string

Your campaign id.

Response Body

application/json

curl -X GET "https://example.com/client/campaigns/string/draft-targeting"
{  "success": true,  "data": {    "campaignId": "9114",    "suggestionsEnabled": false,    "distributionLocations": [      {        "name": "Store #1",        "lat": 41.9,        "lng": -87.65,        "radius": 3000,        "is_focused": true,        "selected_routes_count": 12      }    ],    "routes": [      {        "zip": "60614",        "croute": "C021",        "residentCount": 512,        "businessCount": 14,        "totalCount": 526      }    ],    "totalCount": 1  }}
Empty
Empty
Empty
Empty
Empty