Campaign API Scripts

Get Access Token

get

Obtain an access token for API authentication

Query parameters
organisationIdstringRequired

Client ID

apiKeystringRequired

API Key

requestTypestring · enumRequired

Type of request

Possible values:
Header parameters
Accept-Versionstring · enumRequired

API version header

Possible values:
Responses
200

Access token generated successfully

application/json
get
/auth/access-key/publickey

Publish a new campaign

post

Creates and publishes a new campaign using Flow plans and listings

Authorizations
AuthorizationstringRequired

JWT token obtained from the access key endpoint

Query parameters
clientIdstringRequired

ClientId

Header parameters
Accept-Versionstring · enumRequired

API version header

Possible values:
Body
planRefstringRequired

Reference to the Flow media package/plan

Example: facebookv2
agentExternalIdstringOptional

External reference for the agent/user responsible for the listing

Example: 12585873
listingExternalIdsstring[]Required

Array of external listing IDs

Example: ["655466e38ecec61bd4639c8b"]
branchIdstringRequired

Flow external branch ID associated with the specific branch

Example: 64491ba8e9d1335b06252be4
startDatestring · date-timeOptional

Start date for the campaign (must be in the future)

Example: 2025-06-08T09:00:00Z
endDatestring · date-timeOptional

End date for the campaign (must be after startDate)

Example: 2025-06-15T09:00:00Z
budgetOverridenumberOptional

Custom budget if different from the plan default

Example: 2928
orderRefstringOptional

Optional identifier for the originating partner/platform

Example: Order-001
dryRunbooleanOptional

If true, validates the payload and returns expected results without publishing

Example: false
Responses
post
/campaigns/publish

Get campaign status

get

Retrieves the current status of a campaign

Authorizations
AuthorizationstringRequired

JWT token obtained from the access key endpoint

Path parameters
campaign_tracking_idstringRequired

Tracking ID of the campaign

Header parameters
Accept-Versionstring · enumRequired

API version header

Possible values:
Responses
200

Campaign status retrieved successfully

application/json
get
/campaigns/status/{campaign_tracking_id}

Update campaign status

post

Updates the status of an existing campaign

Authorizations
AuthorizationstringRequired

JWT token obtained from the access key endpoint

Path parameters
campaign_tracking_idstringRequired

Tracking ID of the campaign

Header parameters
Accept-Versionstring · enumRequired

API version header

Possible values:
Body
statusstring · enumRequiredExample: pausedPossible values:
reasonstringOptionalExample: Client cancelled campaign.
Responses
200

Campaign status updated successfully

application/json
post
/campaigns/status/{campaign_tracking_id}

Last updated