API Scripts
Obtain an access token for API authentication
Client ID
API Key
Type of request
API version header
GET /auth/access-key/publickey HTTP/1.1
Host: api.flowliving.com
Accept-Version: v1
Accept: */*
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Creates and publishes a new campaign using Flow plans and listings
ClientId
API version header
Reference to the Flow media package/plan
facebookv2
External reference for the agent/user responsible for the listing
12585873
Array of external listing IDs
["655466e38ecec61bd4639c8b"]
Flow external branch ID associated with the specific branch
64491ba8e9d1335b06252be4
Start date for the campaign (must be in the future)
2025-06-08T09:00:00Z
End date for the campaign (must be after startDate)
2025-06-15T09:00:00Z
Custom budget if different from the plan default
2928
Optional identifier for the originating partner/platform
Order-001
If true, validates the payload and returns expected results without publishing
false
POST /campaigns/publish HTTP/1.1
Host: api.flowliving.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept-Version: v1
Content-Type: application/json
Accept: */*
Content-Length: 269
{
"planRef": "facebookv2",
"agentExternalId": "12585873",
"listingExternalIds": [
"655466e38ecec61bd4639c8b"
],
"branchId": "64491ba8e9d1335b06252be4",
"startDate": "2025-06-08T09:00:00Z",
"endDate": "2025-06-15T09:00:00Z",
"budgetOverride": 2928,
"orderRef": "Order-001",
"dryRun": false
}
{
"campaign_tracking_ids": [
"queue_abc123",
"queue_def456"
],
"status": "queued"
}
Retrieves the current status of a campaign
Tracking ID of the campaign
API version header
GET /campaigns/status/{campaign_tracking_id} HTTP/1.1
Host: api.flowliving.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept-Version: v1
Accept: */*
{
"status": "in_progress",
"message": "Campaign creation is underway.",
"campaign_id": "camp_872193"
}
Updates the status of an existing campaign
Tracking ID of the campaign
API version header
paused
Possible values: Client cancelled campaign.
POST /campaigns/status/{campaign_tracking_id} HTTP/1.1
Host: api.flowliving.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept-Version: v1
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"status": "paused",
"reason": "Client cancelled campaign."
}
{
"status": "paused",
"message": "Campaign successfully paused.",
"error": "Campaign pausing unsuccessful, please contact Flow for further assistance"
}
Last updated