Secret API key bound to an environment.
In: header
Query Parameters
1 <= value <= 20050length <= 2048Value in
- "draft"
- "active"
- "paused"
- "ended"
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/campaigns"{ "data": [ { "id": "string", "name": "string", "status": "draft", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "priority": 0, "stacking_group": "string", "exclusive": true, "budget": { "amount": 0, "currency": "string", "window": "string", "used": 0 }, "audience": { "segments": [ "string" ] }, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "has_more": true}Secret API key bound to an environment.
In: header
Header Parameters
Required. Official clients generate a UUID when omitted by the caller.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/campaigns" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "name": "Member campaign" }'{ "id": "string", "name": "string", "status": "draft", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "priority": 0, "stacking_group": "string", "exclusive": true, "budget": { "amount": 0, "currency": "string", "window": "string", "used": 0 }, "audience": { "segments": [ "string" ] }, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Secret API key bound to an environment.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/campaigns/string"{ "id": "string", "name": "string", "status": "draft", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "priority": 0, "stacking_group": "string", "exclusive": true, "budget": { "amount": 0, "currency": "string", "window": "string", "used": 0 }, "audience": { "segments": [ "string" ] }, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Secret API key bound to an environment.
In: header
Path Parameters
1 <= lengthHeader Parameters
Optional legacy revision. Missing or malformed values follow the existing route parser.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/campaigns/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated campaign" }'{ "id": "string", "name": "string", "status": "draft", "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "priority": 0, "stacking_group": "string", "exclusive": true, "budget": { "amount": 0, "currency": "string", "window": "string", "used": 0 }, "audience": { "segments": [ "string" ] }, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Secret API key bound to an environment.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/campaigns/string"