ConvertFlow ConvertFlow
Open ConvertFlow →

ConvertFlow REST API Reference

OAuth 2.1 bearer tokens, token scopes, and endpoints for contacts, campaigns, and funnel analytics reports. The playground below is interactive; the endpoint reference is also in this page as HTML.

API v1 · Last updated December 3, 2026

Endpoints

Server-rendered from the OpenAPI document so crawlers and agents can read paths, parameters, and examples without executing JavaScript.

ConvertFlow's public v1 API. Endpoints are grouped by namespace, listed in the tags below.

## Authentication
ConvertFlow uses OAuth 2.1 (authorization code + PKCE). Obtain a token from ConvertFlow
and send it as `Authorization: Bearer `. Tokens are website-scoped, so a token
authenticates only for the website(s) you selected when you authorized it. The
`website_id` query param must be one of the token's websites. You can omit it for
single-website tokens, and it's required when the token grants multiple websites
(`GET /api/v1/reports/websites` lists them).
(ConvertFlow also accepts the legacy `Authorization: api_key=` scheme until a
website generates its first OAuth token. That scheme is not scope-restricted.)

### Permissions (scopes)
OAuth tokens carry per-namespace scopes that you choose at creation, and ConvertFlow
enforces them on every request. Each namespace below has `:read` and, where
it accepts writes, `:write`; publishing and launching are their own permissions:
`reports:read`, `contacts:read`/`contacts:write`,
`campaigns:read`/`campaigns:write`/`campaigns:publish`/`campaigns:launch`,
`variants:read`/`variants:write`/`variants:publish`, `templates:read`,
`segments:read`/`segments:write`/`segments:delete` (deletes: personal access tokens only),
`broadcasts:read`/`broadcasts:write`/`broadcasts:launch`, `areas:read`, and `websites:read`. A request whose
token lacks the required scope returns `403` naming the missing scope. Tokens issued under the former `reports` and
`ctas:read`/`ctas:write` names keep working with the equivalent permissions.

## Reports
These read-only endpoints report on funnel performance: website totals, campaigns, A/B
experiments, variant/step/element funnel breakdowns, and the pre-generated weekly
insights snapshot. Most reports endpoints accept a `timeframe` enum
(default `last_30_days`) plus optional `range_start`/`range_end` (ISO 8601, required when
`timeframe=custom`). Account-wide endpoints under `/api/v1/reports/account` aggregate
every website bound to the token and do not require `website_id`.

ConvertFlow stores metrics per day, so any custom range is exact, down to a single day.
The single-subject reports (website, campaign, variant, step, element) also accept
`group_by` (`day`, `week`, `month`, `quarter`, `year`) and return a zero-filled
`timeseries` block alongside the totals, so a daily breakdown takes one request.

## Broadcasts
A broadcast is a set of popup, hook, bar or embed campaigns that go live together under
shared targeting, optionally rotated by percentage and scheduled between `range_start`
and `range_end` (wall-clock time in the broadcast's `timezone`). Launching a single
campaign (`POST /api/v1/campaigns/{id}/launch`) uses a hidden "quick" broadcast that holds
that campaign's own targeting; `POST /api/v1/campaigns/{id}/targeting` returns its id.
Broadcasts and campaign launches never go live by themselves: launch and deactivate need
`broadcasts:launch` / `campaigns:launch`, and formats your plan does not include answer
`403 plan_gated`. Launching, targeting, traffic and membership changes republish the website
script, so visitors see them within seconds. Folders only organize broadcasts. Playbooks
(`templates:read`) create a new inactive broadcast with copies of their campaigns. Nothing
can be deleted through the API: deactivate a broadcast instead.

## MCP Server
ConvertFlow also exposes this API as a remote MCP server for AI agents
(`https://mcp.convertflow.co/mcp`). For the setup guide and tool reference, see
[developers.convertflow.com/developers/mcp](https://developers.convertflow.com/developers/mcp).

Areas

GET /api/v1/areas

List areas

Returns the website's areas (newest first).

Example request

curl -X GET https://app.convertflow.co/api/v1/areas \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "name": "string",
    "website_id": 0,
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z"
  }
]

Broadcast folders

GET /api/v1/broadcasts/folders

List broadcast folders

The website's broadcast folders sorted by name with the number of broadcasts in each. Requires broadcasts:read.

Example request

curl -X GET https://app.convertflow.co/api/v1/broadcasts/folders \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "name": "string",
    "broadcast_count": 0,
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z"
  }
]

POST /api/v1/broadcasts/folders

Create a broadcast folder

Creates an empty broadcast folder. Requires broadcasts:write.

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts/folders \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

PATCH /api/v1/broadcasts/folders/{id}

Rename a broadcast folder

Renames the folder. Requires broadcasts:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/broadcasts/folders/{id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Example response

{
  "id": 0,
  "name": "string",
  "broadcast_count": 0,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

Broadcasts

GET /api/v1/broadcasts/{id}

Get a broadcast

Settings of one broadcast of the website: status, delivery mode, schedule, campaigns with their traffic percentage, folders and targeting conditions. Campaign launches (quick broadcasts) are readable too. Performance lives in the reports API. Requires broadcasts:read.

ParameterInTypeDescription
id * path integer

Example request

curl -X GET https://app.convertflow.co/api/v1/broadcasts/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string",
      "archived": true,
      "percentage": 0
    }
  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": null,
      "country": null,
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "cta_id": null,
      "area_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

PATCH /api/v1/broadcasts/{id}

Update a broadcast

Changes only the fields sent: name, delivery_mode (all or rotate), scheduled (turns the date range on or off), timezone, range_start and range_end (wall-clock time in timezone, returned as "2026-12-01T09:00:00"; send a value with an offset and it is converted to that zone; enabling a schedule requires a timezone and both range endpoints, which can use existing values). Switching to rotate is refused while the campaign percentages total more than 100; use PATCH /api/v1/broadcasts/{id}/traffic_split, which switches to rotate and sets the split together. Campaign launches (quick broadcasts) only accept scheduled, timezone, range_start and range_end (422 for name or delivery_mode). range_end must be after range_start. Republishes the website script. Requires broadcasts:write. Changing anything but the name of a live broadcast also requires broadcasts:launch (campaigns:launch for a launched campaign).

ParameterInTypeDescription
id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/broadcasts/{id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","delivery_mode":"string","scheduled":true,"timezone":"string","range_start":"string","range_end":"string"}'

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [

  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/broadcasts

Create a broadcast

Creates an inactive broadcast. Blank: name plus optional delivery_mode (all by default), campaign_ids (each added with the dashboard percentage rule) and folder_ids. From a playbook: name plus playbook_id of a public official playbook; every template campaign is copied into the website synchronously, which may take several seconds per template. With playbook_id only folder_ids and delivery_mode all apply (campaign_ids is refused) and a playbook containing landing pages is refused (422 playbook_id). Landing pages cannot be added. Nothing is created when any part fails. Requires broadcasts:write.

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","delivery_mode":"string","campaign_ids":[0],"folder_ids":[0],"playbook_id":0}'

POST /api/v1/broadcasts/{id}/launch

Launch a broadcast

Sets the broadcast live and republishes the website script. Refused when it has no campaigns, when it has no targeting condition (add Everywhere to reach all visitors) and for campaign launches, which use POST /api/v1/campaigns/{id}/launch. 403 plan_gated when a campaign format is not available on the plan. Requires broadcasts:launch, separate from broadcasts:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts/{id}/launch \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string",
      "archived": true,
      "percentage": 0
    }
  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": null,
      "country": null,
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "cta_id": null,
      "area_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/broadcasts/{id}/deactivate

Deactivate a broadcast

Takes the broadcast offline and republishes the website script. Refused for campaign launches, which use POST /api/v1/campaigns/{id}/deactivate. Requires broadcasts:launch.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts/{id}/deactivate \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [

  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/broadcasts/{id}/duplicate

Duplicate a broadcast

Copies the broadcast (name gets " (copy)") with its folders and traffic percentages. campaigns = reuse (default) links the same campaigns; copy duplicates every campaign as well. Targeting conditions are not copied. The copy is always inactive. Runs synchronously. Refused for campaign launches. Requires broadcasts:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts/{id}/duplicate \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"campaigns":"string"}'

POST /api/v1/broadcasts/{id}/campaigns

Add a campaign to a broadcast

Adds a campaign to the broadcast and republishes the website script. A rotating broadcast gives it the unallocated remainder of traffic, otherwise 100. 409 when the campaign is already a member, 422 for landing pages, 403 plan_gated when the broadcast is live and the format is not available on the plan. Refused for campaign launches. Requires broadcasts:write. A live broadcast also requires broadcasts:launch.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts/{id}/campaigns \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"campaign_id":0}'

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string",
      "archived": true,
      "percentage": 0
    }
  ],
  "holdout_percentage": 0,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

DELETE /api/v1/broadcasts/{id}/campaigns/{campaign_id}

Remove a campaign from a broadcast

Removes the campaign from the broadcast (the campaign itself is untouched) and republishes the website script. Refused for campaign launches. Requires broadcasts:write. A live broadcast also requires broadcasts:launch.

ParameterInTypeDescription
id * path integer
campaign_id * path integer

Example request

curl -X DELETE https://app.convertflow.co/api/v1/broadcasts/{id}/campaigns/{campaign_id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string",
      "archived": true,
      "percentage": 0
    }
  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

PATCH /api/v1/broadcasts/{id}/traffic_split

Set broadcast traffic percentages

Sets the traffic percentage of campaigns and switches the broadcast to rotate delivery when it is not rotating yet. Send only the campaigns to change; omitted campaigns keep their value (unset counts as 100), the total must stay at 100 or less and the unallocated remainder is the holdout. 422 when percentages is empty, an id is not a member or the total exceeds 100. Republishes the website script. Refused for campaign launches. Requires broadcasts:write. A live broadcast also requires broadcasts:launch.

ParameterInTypeDescription
id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/broadcasts/{id}/traffic_split \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"percentages":{}}'

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string",
      "archived": true,
      "percentage": 0
    }
  ],
  "holdout_percentage": 0,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

PUT /api/v1/broadcasts/{id}/folders

Set the folders of a broadcast

Replaces the broadcast's folder memberships with the complete folder_ids list (send [] to clear). Folders must be the website's broadcast folders. Folders are organisation only: the website script is not republished. Refused for campaign launches. Requires broadcasts:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X PUT https://app.convertflow.co/api/v1/broadcasts/{id}/folders \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"folder_ids":[0]}'

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [

  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/broadcasts/{id}/conditions

Add a targeting condition to a broadcast

Adds a targeting condition and republishes the website script. condition_type is any type of the segment condition catalog (GET /api/v1/segments/condition_types); the remaining body keys are that type's settings and are validated exactly like segment conditions. Every setting of the type is required on create (422 "can't be blank" for each one missing). Types without settings (Everywhere, If anonymous visitor, If identified contact) need nothing else. Allowed on campaign launches (quick broadcasts) too. Requires broadcasts:write. A live broadcast also requires broadcasts:launch (campaigns:launch for a launched campaign).

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/broadcasts/{id}/conditions \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"condition_type":"string","keyword":"string","url":"string","count":0,"country":"string","condition_cta":0,"tag_id":0,"device":"string","conditions_group_id":0,"operator":"string"}'

DELETE /api/v1/broadcasts/{id}/conditions/{condition_id}

Remove a broadcast targeting condition

Deletes the targeting condition and republishes the website script. 422 for the last condition of a live broadcast or launched campaign. Requires broadcasts:write. A live broadcast also requires broadcasts:launch (campaigns:launch for a launched campaign).

ParameterInTypeDescription
id * path integer
condition_id * path integer

Example request

curl -X DELETE https://app.convertflow.co/api/v1/broadcasts/{id}/conditions/{condition_id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [

  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

PATCH /api/v1/broadcasts/{id}/conditions/{condition_id}

Update a broadcast targeting condition

Replaces values of a targeting condition of the broadcast, validated exactly like segment conditions. Republishes the website script only when a value changed. Requires broadcasts:write. A live broadcast also requires broadcasts:launch (campaigns:launch for a launched campaign).

ParameterInTypeDescription
id * path integer
condition_id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/broadcasts/{id}/conditions/{condition_id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"string","url":"string","count":0,"country":"string","condition_cta":0,"tag_id":0,"device":"string","conditions_group_id":0,"operator":"string"}'

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [

  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": null,
      "country": null,
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "cta_id": null,
      "area_id": null,
      "data": {
        "device": "string"
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

Campaigns

GET /api/v1/campaigns

List campaigns

Returns the website's campaigns as configuration (name, format, archived/live state, landing-page settings, remix instructions, variant traffic split) — 25 per page, newest first, archived included. For performance metrics use /api/v1/reports/campaigns instead. Requires the campaigns:read scope on OAuth tokens.

ParameterInTypeDescription
status query string Filter to active (non-archived) or archived campaigns
page query integer

Example request

curl -X GET https://app.convertflow.co/api/v1/campaigns \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "name": "string",
    "cta_type": "string",
    "format_type": "string",
    "archived": true,
    "live": true,
    "building": true,
    "build_failed": true,
    "test_type": "string",
    "page_path": "string",
    "domain_id": null,
    "meta_title": null,
    "meta_description": null,
    "open_graph_title": null,
    "open_graph_description": null,
    "open_graph_image": null,
    "seo_index": null,
    "experiment_start_date": null,
    "experiment_end_date": null,
    "experiment_metric": null,
    "remix": {
    },
    "published_at": null,
    "variants": [
      {
        "id": 0,
        "name": "string",
        "variation": "string",
        "percentage": 0
      }
    ],
    "targeting_broadcast_id": null,
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z"
  }
]

POST /api/v1/campaigns

Create a campaign

Creates a campaign. Without template_id: a blank campaign with a single "Champion" variant at 100% traffic, answered 201. With template_id (from GET /api/v1/templates): the campaign row is created right away (archived, `building: true`, no variants) and answered 202 while a job copies the template content and runs the AI remix when `remix.remix_all_text` asks for it; the campaign unarchives itself and `building` flips to false when the job finishes. A failed job leaves it archived with `building: false` and `build_failed: true`, and campaign mutations answer 422 while `building` is true. name and cta_type default to the template's. Popups, hooks, bars and embeds are not live on creation; a landing page is live once it exists and is not archived. page_path defaults to page-{id}. Requires campaigns:write.

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","cta_type":"string","test_type":"string","page_path":"string","domain_id":0,"template_id":0,"remix":{"remix_instructions":"string","remix_tone":"string","remix_all_text":"string","remix_asset_urls":["string"],"excluded_element_types":["string"]}}'

GET /api/v1/campaigns/{id}

Get a campaign

Configuration for one campaign. `live` means visitors can reach it; `published_at` is the last CDN publish. Metrics live at /api/v1/reports/campaigns/{id}.

ParameterInTypeDescription
id * path integer Campaign id (from list_campaigns or this list)

Example request

curl -X GET https://app.convertflow.co/api/v1/campaigns/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": null,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

PATCH /api/v1/campaigns/{id}

Update a campaign

Updates name, format, landing-page/SEO fields, experiment settings and remix instructions. Changing cta_type republishes the campaign script immediately (and takes a landing page offline); every other field is saved without publishing. Requires campaigns:write.

ParameterInTypeDescription
id * path integer Campaign id (from list_campaigns or this list)

Example request

curl -X PATCH https://app.convertflow.co/api/v1/campaigns/{id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","cta_type":"string","test_type":"string","page_path":"string","domain_id":0,"meta_title":"string","meta_description":"string","open_graph_title":"string","open_graph_description":"string","open_graph_image":"string","seo_index":true,"experiment_start_date":"string","experiment_end_date":"string","experiment_metric":"string","remix":{"remix_instructions":"string","remix_tone":"string"}}'

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
    "remix_tone": "string"
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": null,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/campaigns/{id}/archive

Archive a campaign

Archives the campaign: it stops being served (an empty script is published) and its quick broadcast is set inactive. Reversible with POST /campaigns/{id}/unarchive. Campaigns are never deleted through the API. Requires campaigns:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/archive \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": 0,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/campaigns/{id}/unarchive

Unarchive a campaign

Restores an archived campaign and republishes its script. A landing page is live again right away; other formats stay inactive and are launched from the dashboard. Requires campaigns:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/unarchive \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": null,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/campaigns/{id}/launch

Launch a campaign

Sets the campaign live for everyone: creates its quick broadcast with an Everywhere condition when missing, activates it and queues a script render. Idempotent. Landing pages (live at their page_path), archived campaigns and plan-gated formats are refused. Requires campaigns:launch.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/launch \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": 0,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/campaigns/{id}/deactivate

Deactivate a campaign

Sets the campaign's quick broadcast inactive so it stops being served, and queues a script render. A campaign that was never launched is returned unchanged. Landing pages are refused. Requires campaigns:launch.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/deactivate \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": 0,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/campaigns/{id}/targeting

Get a campaign's targeting broadcast

Returns the campaign's quick broadcast (its targeting conditions), creating it inactive with an Everywhere condition when missing. Never changes whether the campaign is live. Add conditions with the broadcast endpoints. Requires campaigns:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/targeting \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "live": true,
  "quick": true,
  "delivery_mode": "string",
  "scheduled": true,
  "timezone": null,
  "range_start": null,
  "range_end": null,
  "campaigns": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string",
      "archived": true,
      "percentage": 0
    }
  ],
  "holdout_percentage": null,
  "folders": [

  ],
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": null,
      "country": null,
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "cta_id": null,
      "area_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

POST /api/v1/campaigns/{id}/publish

Publish a campaign

Queues a rebuild of the campaign script on the CDN from its current state (traffic split, archived flag, format). It ships every variant as currently saved, drafts included — to publish one variant's edits use POST /variants/{id}/publish instead. Returns 202 with a queued acknowledgement. Requires campaigns:publish.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/publish \
  -H "Authorization: Bearer YOUR_TOKEN"

POST /api/v1/campaigns/{id}/duplicate

Duplicate a campaign

Copies the campaign with all its variants and targeting conditions. The copy is named "<name> (copy)", inactive, with its first variant at 100%. Requires campaigns:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{id}/duplicate \
  -H "Authorization: Bearer YOUR_TOKEN"

PATCH /api/v1/campaigns/{id}/traffic_split

Set the traffic split across variants

Sets each variant's traffic percentage; omitted variants keep their current value and the total must be exactly 100. A variant at 0% is excluded from the live script. A republish is queued. Requires campaigns:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/campaigns/{id}/traffic_split \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"percentages":{}}'

Example response

{
  "id": 0,
  "name": "string",
  "cta_type": "string",
  "format_type": "string",
  "archived": true,
  "live": true,
  "building": true,
  "build_failed": true,
  "test_type": "string",
  "page_path": "string",
  "domain_id": null,
  "meta_title": null,
  "meta_description": null,
  "open_graph_title": null,
  "open_graph_description": null,
  "open_graph_image": null,
  "seo_index": null,
  "experiment_start_date": null,
  "experiment_end_date": null,
  "experiment_metric": null,
  "remix": {
  },
  "published_at": null,
  "variants": [
    {
      "id": 0,
      "name": "string",
      "variation": "string",
      "percentage": 0
    }
  ],
  "targeting_broadcast_id": null,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

GET /api/v1/cta

List campaigns (legacy)

Legacy. Use GET /api/v1/campaigns for configuration and GET /api/v1/reports/campaigns for metrics. Returns the website's non-archived campaigns (newest first), each with its variants.

Example request

curl -X GET https://app.convertflow.co/api/v1/cta \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "website_id": 0,
    "name": "string",
    "views": 0,
    "conversions": 0,
    "completions": 0,
    "conversion_rate": "string",
    "completion_rate": "string",
    "page_path": "string",
    "cta_type": "string",
    "test_type": "string",
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z",
    "variants": [
      {
        "id": 0,
        "name": "string",
        "variation": "string",
        "percentage": 0,
        "screenshot": null,
        "website_id": 0,
        "views": 0,
        "conversions": 0,
        "completions": 0,
        "conversion_rate": "string",
        "completion_rate": "string",
        "created_at": "2017-07-21T17:32:28Z",
        "updated_at": "2017-07-21T17:32:28Z"
      }
    ]
  }
]

Variants

GET /api/v1/campaigns/{campaign_id}/variants

List a campaign's variants

Variant configuration for one campaign, ordered by variation letter.

ParameterInTypeDescription
campaign_id * path integer

Example request

curl -X GET https://app.convertflow.co/api/v1/campaigns/{campaign_id}/variants \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "campaign_id": 0,
    "name": "string",
    "variation": "string",
    "percentage": 0,
    "color": "string",
    "screenshot": null,
    "score": 0,
    "score_field": null,
    "unpublished": true,
    "building": true,
    "build_failed": true,
    "behavior": {
      "trigger_type": "string",
      "delay": null,
      "scroll": null,
      "exit_delay": null,
      "aggressive": "string",
      "hide": 0,
      "minutes_hide": null
    },
    "steps": [

    ],
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z",
    "has_custom_code": true
  }
]

POST /api/v1/campaigns/{campaign_id}/variants

Create a variant

Adds a variant at 0% traffic (not served until given traffic via traffic_split). Without template_id the variant is empty and answered 201. With template_id (GET /api/v1/templates) the variant row is created right away (`building: true`) and answered 202 while a job copies the template content and runs the AI remix when `remix.remix_all_text` asks for it; `building` flips to false when the job finishes, with `build_failed: true` if it failed. Nothing is published. Requires campaigns:write.

ParameterInTypeDescription
campaign_id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/campaigns/{campaign_id}/variants \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","template_id":0,"remix":{"remix_instructions":"string","remix_tone":"string","remix_all_text":"string","remix_asset_urls":["string"],"excluded_element_types":["string"]}}'

GET /api/v1/variants/{id}

Get a variant

Configuration for one variant: traffic percentage, trigger behavior, whether it has unpublished changes or custom code, and its step ids. Styling settings are not exposed. Metrics live at /api/v1/reports/variants/{id}.

ParameterInTypeDescription
id * path integer Variant id (from a campaign's variants list)

Example request

curl -X GET https://app.convertflow.co/api/v1/variants/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "campaign_id": 0,
  "name": "string",
  "variation": "string",
  "percentage": 0,
  "color": "string",
  "screenshot": null,
  "score": 0,
  "score_field": null,
  "unpublished": true,
  "building": true,
  "build_failed": true,
  "behavior": {
    "trigger_type": "string",
    "delay": null,
    "scroll": null,
    "exit_delay": null,
    "aggressive": "string",
    "hide": 0,
    "minutes_hide": null
  },
  "steps": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z",
  "has_custom_code": true
}

PATCH /api/v1/variants/{id}

Update a variant

Renames the variant and/or changes how it triggers. Behavior changes are saved as unpublished draft changes — call POST /variants/{id}/publish to push them live. Traffic is set via /campaigns/{id}/traffic_split. Requires variants:write.

ParameterInTypeDescription
id * path integer Variant id (from a campaign's variants list)

Example request

curl -X PATCH https://app.convertflow.co/api/v1/variants/{id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","behavior":{"trigger_type":"string","delay":0,"scroll":0,"exit_delay":0,"aggressive":"string","hide":0,"minutes_hide":0}}'

Example response

{
  "id": 0,
  "campaign_id": 0,
  "name": "string",
  "variation": "string",
  "percentage": 0,
  "color": "string",
  "screenshot": null,
  "score": 0,
  "score_field": null,
  "unpublished": true,
  "building": true,
  "build_failed": true,
  "behavior": {
    "trigger_type": "string",
    "delay": 0,
    "scroll": null,
    "exit_delay": null,
    "aggressive": "string",
    "hide": 0,
    "minutes_hide": 0
  },
  "steps": [

  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z",
  "has_custom_code": true
}

POST /api/v1/variants/{id}/publish

Publish a variant

Queues a publish of the variant's draft changes to the live campaign script (a backup is taken first). Returns 202 with a queued acknowledgement, not the variant — read GET /api/v1/variants/{id} to see `unpublished` flip to false once the job runs. Requires variants:publish.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/variants/{id}/publish \
  -H "Authorization: Bearer YOUR_TOKEN"

POST /api/v1/variants/{id}/duplicate

Duplicate a variant

Copies the variant (steps, sections, elements) into the same campaign at 0% traffic with the next variation letter. Nothing is published. Requires variants:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X POST https://app.convertflow.co/api/v1/variants/{id}/duplicate \
  -H "Authorization: Bearer YOUR_TOKEN"

Contacts

GET /api/v1/contacts

List contacts

Returns the website's contacts (paginated, 25 per page). Authenticates with a website-bound Bearer token, or the legacy api_key until migrated.

ParameterInTypeDescription
email query string Filter by exact email
id query integer Filter by contact id

Example request

curl -X GET https://app.convertflow.co/api/v1/contacts \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z",
    "website_id": 0,
    "visitor_token": "550e8400-e29b-41d4-a716-446655440000",
    "email": "string",
    "name": "string",
    "last_name": "string",
    "phone": "string",
    "city": "string",
    "avatar_url": "string",
    "company_name": "string",
    "company_title": "string",
    "url": "string",
    "state": "string",
    "address": "string",
    "zip_code": "string",
    "country": "string",
    "source_url": "string",
    "bio": "string",
    "utm_source": "string",
    "utm_medium": "string",
    "utm_campaign": "string",
    "utm_term": "string",
    "utm_content": "string",
    "referral_source": "string",
    "first_visit": "string",
    "privacy_consent": "string",
    "marketing_consent": "string",
    "sms_consent": "string",
    "ip_address": "string",
    "latest_score": "string",
    "extra": {
    },
    "data": {
    },
    "tags": "string",
    "link": "string"
  }
]

POST /api/v1/contacts

Create or update a contact

Upserts a contact by email/phone. At least one of email or phone is required; additional custom fields are accepted and stored on the contact.

Example request

curl -X POST https://app.convertflow.co/api/v1/contacts \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","phone":"string","first_name":"string","last_name":"string"}'

Example response

{
  "id": 0,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z",
  "website_id": 0,
  "visitor_token": "string",
  "email": "string",
  "name": "string",
  "last_name": "string",
  "phone": "string",
  "city": "string",
  "avatar_url": "string",
  "company_name": "string",
  "company_title": "string",
  "url": "string",
  "state": "string",
  "address": "string",
  "zip_code": "string",
  "country": "string",
  "source_url": "string",
  "bio": "string",
  "utm_source": "string",
  "utm_medium": "string",
  "utm_campaign": "string",
  "utm_term": "string",
  "utm_content": "string",
  "referral_source": "string",
  "first_visit": "string",
  "privacy_consent": "string",
  "marketing_consent": "string",
  "sms_consent": "string",
  "ip_address": "string",
  "latest_score": "string",
  "extra": {
  },
  "data": {
  },
  "tags": "string",
  "link": "string"
}

DELETE /api/v1/contacts

Delete a contact by email

ParameterInTypeDescription
email * query string

Example request

curl -X DELETE https://app.convertflow.co/api/v1/contacts \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "message": "string"
}

Playbooks

GET /api/v1/playbooks

List playbooks

Official public playbooks (bundles of campaign templates), 25 per page, newest first. Requires the templates:read scope on OAuth tokens.

ParameterInTypeDescription
name query string Case-insensitive name search
category query string Goal tag name
industry query string Industry tag name
page query integer

Example request

curl -X GET https://app.convertflow.co/api/v1/playbooks \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "name": "string",
    "description": null,
    "categories": [

    ],
    "industries": [

    ],
    "premium": true,
    "screenshot": null,
    "tutorial_url": null,
    "times_used": 0,
    "auto_remix": true,
    "templates": [
      {
        "id": 0,
        "name": "string",
        "cta_type": "string"
      }
    ],
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z"
  }
]

GET /api/v1/playbooks/{id}

Show a playbook

One official public playbook with its templates. Requires templates:read.

ParameterInTypeDescription
id * path integer

Example request

curl -X GET https://app.convertflow.co/api/v1/playbooks/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "description": null,
  "categories": [

  ],
  "industries": [

  ],
  "premium": true,
  "screenshot": null,
  "tutorial_url": null,
  "times_used": 0,
  "auto_remix": true,
  "templates": [
    {
      "id": 0,
      "name": "string",
      "cta_type": "string"
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

Reports

GET /api/v1/reports/account/performance

Account-wide website performance

Aggregate and per-website funnel metrics for every website bound to the token. Omit website_id to include all bound sites; pass website_id or website_ids to subset. Does not require website_id on multi-website tokens.

ParameterInTypeDescription
website_id query integer Optional. When set, limits the report to this bound website. Omit to aggregate every website bound to the token. Unbound ids return 404. Non-positive or non-numeric ids return 422 invalid_website_id.
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
website_ids query array Optional subset of bound website ids. Any id outside the token binding returns 404. Non-positive or non-numeric ids return 422 invalid_website_id.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/account/performance \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "timeframe": {
    "selected": "string",
    "label": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "previous_range_start": "2017-07-21T17:32:28Z",
    "previous_range_end": "2017-07-21T17:32:28Z"
  },
  "data": {
    "aggregate": {
      "website_count": 0,
      "viewers": 0.0,
      "conversions": 0.0,
      "conversion_rate": 0.0,
      "subscribes": 0.0,
      "subscribe_rate": 0.0,
      "orders": 0.0,
      "order_rate": 0.0,
      "revenue": 0.0,
      "aov": 0.0
    },
    "websites": [
      {
        "id": 0,
        "name": "string",
        "viewers": 0.0,
        "conversions": 0.0,
        "conversion_rate": 0.0,
        "conversions_change": 0.0,
        "revenue_change": 0.0,
        "subscribes": 0.0,
        "orders": 0.0,
        "revenue": 0.0,
        "aov": 0.0
      }
    ]
  }
}

GET /api/v1/reports/broadcasts

List broadcasts with metrics

ParameterInTypeDescription
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
page query integer
per_page query integer
sort query string
status query string
name query string Case-insensitive substring match on the broadcast name.
folder_id query integer Only broadcasts in this folder.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/broadcasts \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string"
  },
  "data": {
    "broadcasts": [
      {
        "id": 0,
        "name": "string",
        "live": true,
        "delivery_mode": "string",
        "folders": [

        ],
        "metrics": {
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "submissions": 0,
          "subscribes": 0,
          "orders": 0,
          "bookings": 0,
          "custom_goals": 0,
          "revenue": 0.0,
          "conversion_rate": 0.0,
          "completion_rate": 0.0,
          "subscribe_rate": 0.0,
          "order_rate": 0.0,
          "booking_rate": 0.0,
          "custom_goal_rate": 0.0,
          "aov": 0.0
        }
      }
    ],
    "pagination": {
      "page": 0,
      "per_page": 0,
      "total_entries": 0,
      "total_pages": 0
    }
  }
}

GET /api/v1/reports/broadcasts/{id}

Broadcast performance, campaigns and holdout

ParameterInTypeDescription
id * path integer
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
group_by query string When set, the response gains a `timeseries` object alongside `metrics`: one point per bucket over the same window, each with date, views, conversions, completions, subscribes, submissions, orders and revenue (points carry submissions even where the metrics block does not). Buckets with no activity are returned as zeroes. Under the default count_type=distinct each bucket counts unique visitors within that bucket, so the points do not sum to the headline total (a visitor active on three days counts once overall and three times across the daily points); use count_type=total when the buckets must reconcile. An unrecognized value returns 422 invalid_group_by. On the website report the window may cover at most 92 days (campaign, variant, step and element reports take any range); a range that would exceed 400 points is rejected too. Both return 422 range_too_wide.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/broadcasts/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string",
    "previous_range_start": "2017-07-21T17:32:28Z",
    "previous_range_end": "2017-07-21T17:32:28Z"
  },
  "data": {
    "id": 0,
    "name": "string",
    "live": true,
    "quick": true,
    "delivery_mode": "string",
    "holdout_percentage": null,
    "folders": [

    ],
    "metrics": {
      "views": 0,
      "conversions": 0,
      "completions": 0,
      "submissions": 0,
      "subscribes": 0,
      "orders": 0,
      "bookings": 0,
      "custom_goals": 0,
      "revenue": 0.0,
      "conversion_rate": 0.0,
      "completion_rate": 0.0,
      "subscribe_rate": 0.0,
      "order_rate": 0.0,
      "booking_rate": 0.0,
      "custom_goal_rate": 0.0,
      "aov": 0.0,
      "previous": {
        "views": 0,
        "conversions": 0,
        "completions": 0,
        "submissions": 0,
        "subscribes": 0,
        "orders": 0,
        "bookings": 0,
        "custom_goals": 0,
        "revenue": 0.0,
        "conversion_rate": 0.0,
        "completion_rate": 0.0,
        "subscribe_rate": 0.0,
        "order_rate": 0.0,
        "booking_rate": 0.0,
        "custom_goal_rate": 0.0,
        "aov": 0.0
      },
      "changes": {
        "views": 0.0,
        "conversions": 0.0,
        "completions": null,
        "submissions": null,
        "subscribes": null,
        "orders": 0.0,
        "bookings": null,
        "custom_goals": null,
        "revenue": 0.0,
        "conversion_rate": 0.0,
        "completion_rate": null,
        "subscribe_rate": null,
        "order_rate": 0.0,
        "booking_rate": null,
        "custom_goal_rate": null,
        "aov": 0.0
      }
    },
    "holdout": null,
    "campaigns": [

    ],
    "timeseries": {
      "group_by": "string",
      "points": [
        {
          "date": "2017-07-21",
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "subscribes": 0,
          "submissions": 0,
          "bookings": 0,
          "custom_goals": 0,
          "orders": 0,
          "revenue": 0.0
        }
      ]
    }
  }
}

GET /api/v1/reports/campaigns

List campaigns with metrics

ParameterInTypeDescription
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
page query integer
per_page query integer
sort query string
cta_type query string Filter by campaign format.
status query string

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/campaigns \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string"
  },
  "data": {
    "campaigns": [
      {
        "id": 0,
        "name": "string",
        "cta_type": "string",
        "status": "string",
        "metrics": {
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "submissions": 0,
          "subscribes": 0,
          "orders": 0,
          "bookings": 0,
          "custom_goals": 0,
          "revenue": 0.0,
          "conversion_rate": 0.0,
          "completion_rate": 0.0,
          "subscribe_rate": 0.0,
          "order_rate": 0.0,
          "booking_rate": 0.0,
          "custom_goal_rate": 0.0,
          "aov": 0.0
        }
      }
    ],
    "pagination": {
      "page": 0,
      "per_page": 0,
      "total_entries": 0,
      "total_pages": 0
    }
  }
}

GET /api/v1/reports/campaigns/{id}

Campaign performance + variants

ParameterInTypeDescription
id * path integer
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
group_by query string When set, the response gains a `timeseries` object alongside `metrics`: one point per bucket over the same window, each with date, views, conversions, completions, subscribes, submissions, orders and revenue (points carry submissions even where the metrics block does not). Buckets with no activity are returned as zeroes. Under the default count_type=distinct each bucket counts unique visitors within that bucket, so the points do not sum to the headline total (a visitor active on three days counts once overall and three times across the daily points); use count_type=total when the buckets must reconcile. An unrecognized value returns 422 invalid_group_by. On the website report the window may cover at most 92 days (campaign, variant, step and element reports take any range); a range that would exceed 400 points is rejected too. Both return 422 range_too_wide.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/campaigns/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string",
    "previous_range_start": "2017-07-21T17:32:28Z",
    "previous_range_end": "2017-07-21T17:32:28Z"
  },
  "data": {
    "id": 0,
    "name": "string",
    "cta_type": "string",
    "status": "string",
    "metrics": {
      "views": 0,
      "conversions": 0,
      "completions": 0,
      "submissions": 0,
      "subscribes": 0,
      "orders": 0,
      "bookings": 0,
      "custom_goals": 0,
      "revenue": 0.0,
      "conversion_rate": 0.0,
      "completion_rate": 0.0,
      "subscribe_rate": 0.0,
      "order_rate": 0.0,
      "booking_rate": 0.0,
      "custom_goal_rate": 0.0,
      "aov": 0.0,
      "previous": {
        "views": 0,
        "conversions": 0,
        "completions": 0,
        "submissions": 0,
        "subscribes": 0,
        "orders": 0,
        "bookings": 0,
        "custom_goals": 0,
        "revenue": 0.0,
        "conversion_rate": 0.0,
        "completion_rate": 0.0,
        "subscribe_rate": 0.0,
        "order_rate": 0.0,
        "booking_rate": 0.0,
        "custom_goal_rate": 0.0,
        "aov": 0.0
      },
      "changes": {
        "views": 0.0,
        "conversions": 0.0,
        "completions": null,
        "submissions": null,
        "subscribes": null,
        "orders": null,
        "bookings": null,
        "custom_goals": null,
        "revenue": null,
        "conversion_rate": 0.0,
        "completion_rate": null,
        "subscribe_rate": null,
        "order_rate": null,
        "booking_rate": null,
        "custom_goal_rate": null,
        "aov": null
      }
    },
    "timeseries": {
      "group_by": "string",
      "points": [
        {
          "date": "2017-07-21",
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "subscribes": 0,
          "submissions": 0,
          "bookings": 0,
          "custom_goals": 0,
          "orders": 0,
          "revenue": 0.0
        }
      ]
    },
    "variants": [
      {
        "id": 0,
        "name": null,
        "variation": "string",
        "traffic_percentage": 0,
        "metrics": {
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "submissions": 0,
          "subscribes": 0,
          "orders": 0,
          "bookings": 0,
          "custom_goals": 0,
          "revenue": 0.0,
          "conversion_rate": 0.0,
          "completion_rate": 0.0,
          "subscribe_rate": 0.0,
          "order_rate": 0.0,
          "booking_rate": 0.0,
          "custom_goal_rate": 0.0,
          "aov": 0.0
        }
      }
    ]
  }
}

GET /api/v1/reports/elements/{id}

Element performance + field/product breakdown

ParameterInTypeDescription
id * path integer
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
group_by query string When set, the response gains a `timeseries` object alongside `metrics`: one point per bucket over the same window, each with date, views, conversions, completions, subscribes, submissions, orders and revenue (points carry submissions even where the metrics block does not). Buckets with no activity are returned as zeroes. Under the default count_type=distinct each bucket counts unique visitors within that bucket, so the points do not sum to the headline total (a visitor active on three days counts once overall and three times across the daily points); use count_type=total when the buckets must reconcile. An unrecognized value returns 422 invalid_group_by. On the website report the window may cover at most 92 days (campaign, variant, step and element reports take any range); a range that would exceed 400 points is rejected too. Both return 422 range_too_wide.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/elements/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string"
  },
  "data": {
    "id": 0,
    "element_type": "string",
    "position": 0,
    "metrics": {
      "views": 0,
      "conversions": 0,
      "completions": 0,
      "submissions": 0,
      "subscribes": 0,
      "orders": 0,
      "bookings": 0,
      "custom_goals": 0,
      "revenue": 0.0,
      "conversion_rate": 0.0,
      "completion_rate": 0.0,
      "subscribe_rate": 0.0,
      "order_rate": 0.0,
      "booking_rate": 0.0,
      "custom_goal_rate": 0.0,
      "aov": 0.0
    },
    "timeseries": {
      "group_by": "string",
      "points": [
        {
          "date": "2017-07-21",
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "subscribes": 0,
          "submissions": 0,
          "bookings": 0,
          "custom_goals": 0,
          "orders": 0,
          "revenue": 0.0
        }
      ]
    },
    "fields": [

    ],
    "products": [
      {
        "value": null,
        "selections": 0,
        "orders": 0,
        "revenue": 0.0
      }
    ]
  }
}

GET /api/v1/reports/experiments

Active experiments (live traffic-split variants)

ParameterInTypeDescription
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
limit query integer

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/experiments \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string"
  },
  "data": {
    "experiments": [
      {
        "campaign_id": 0,
        "campaign_name": "string",
        "cta_type": "string",
        "variants": [
          {
            "id": 0,
            "name": null,
            "variation": "string",
            "traffic_percentage": 0,
            "metrics": {
              "views": 0,
              "conversions": 0,
              "completions": 0,
              "submissions": 0,
              "subscribes": 0,
              "orders": 0,
              "bookings": 0,
              "custom_goals": 0,
              "revenue": 0.0,
              "conversion_rate": 0.0,
              "completion_rate": 0.0,
              "subscribe_rate": 0.0,
              "order_rate": 0.0,
              "booking_rate": 0.0,
              "custom_goal_rate": 0.0,
              "aov": 0.0
            }
          }
        ]
      }
    ]
  }
}

GET /api/v1/reports/steps/{id}

Step funnel + elements

ParameterInTypeDescription
id * path integer
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
group_by query string When set, the response gains a `timeseries` object alongside `metrics`: one point per bucket over the same window, each with date, views, conversions, completions, subscribes, submissions, orders and revenue (points carry submissions even where the metrics block does not). Buckets with no activity are returned as zeroes. Under the default count_type=distinct each bucket counts unique visitors within that bucket, so the points do not sum to the headline total (a visitor active on three days counts once overall and three times across the daily points); use count_type=total when the buckets must reconcile. An unrecognized value returns 422 invalid_group_by. On the website report the window may cover at most 92 days (campaign, variant, step and element reports take any range); a range that would exceed 400 points is rejected too. Both return 422 range_too_wide.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/steps/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string"
  },
  "data": {
    "id": 0,
    "position": 0,
    "metrics": {
      "views": 0,
      "conversions": 0,
      "completions": 0,
      "submissions": 0,
      "subscribes": 0,
      "orders": 0,
      "bookings": 0,
      "custom_goals": 0,
      "revenue": 0.0,
      "conversion_rate": 0.0,
      "completion_rate": 0.0,
      "subscribe_rate": 0.0,
      "order_rate": 0.0,
      "booking_rate": 0.0,
      "custom_goal_rate": 0.0,
      "aov": 0.0
    },
    "timeseries": {
      "group_by": "string",
      "points": [
        {
          "date": "2017-07-21",
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "subscribes": 0,
          "submissions": 0,
          "bookings": 0,
          "custom_goals": 0,
          "orders": 0,
          "revenue": 0.0
        }
      ]
    },
    "elements": [
      {
        "id": 0,
        "element_type": "string",
        "position": 0,
        "metrics": {
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "submissions": 0,
          "subscribes": 0,
          "orders": 0,
          "bookings": 0,
          "custom_goals": 0,
          "revenue": 0.0,
          "conversion_rate": 0.0,
          "completion_rate": 0.0,
          "subscribe_rate": 0.0,
          "order_rate": 0.0,
          "booking_rate": 0.0,
          "custom_goal_rate": 0.0,
          "aov": 0.0
        }
      }
    ]
  }
}

GET /api/v1/reports/variants/{id}

Variant funnel + steps

ParameterInTypeDescription
id * path integer
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
group_by query string When set, the response gains a `timeseries` object alongside `metrics`: one point per bucket over the same window, each with date, views, conversions, completions, subscribes, submissions, orders and revenue (points carry submissions even where the metrics block does not). Buckets with no activity are returned as zeroes. Under the default count_type=distinct each bucket counts unique visitors within that bucket, so the points do not sum to the headline total (a visitor active on three days counts once overall and three times across the daily points); use count_type=total when the buckets must reconcile. An unrecognized value returns 422 invalid_group_by. On the website report the window may cover at most 92 days (campaign, variant, step and element reports take any range); a range that would exceed 400 points is rejected too. Both return 422 range_too_wide.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/variants/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string"
  },
  "data": {
    "id": 0,
    "name": null,
    "variation": "string",
    "traffic_percentage": 0,
    "metrics": {
      "views": 0,
      "conversions": 0,
      "completions": 0,
      "submissions": 0,
      "subscribes": 0,
      "orders": 0,
      "bookings": 0,
      "custom_goals": 0,
      "revenue": 0.0,
      "conversion_rate": 0.0,
      "completion_rate": 0.0,
      "subscribe_rate": 0.0,
      "order_rate": 0.0,
      "booking_rate": 0.0,
      "custom_goal_rate": 0.0,
      "aov": 0.0
    },
    "timeseries": {
      "group_by": "string",
      "points": [
        {
          "date": "2017-07-21",
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "subscribes": 0,
          "submissions": 0,
          "bookings": 0,
          "custom_goals": 0,
          "orders": 0,
          "revenue": 0.0
        }
      ]
    },
    "funnel_steps": [
      {
        "id": 0,
        "position": 0,
        "metrics": {
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "submissions": 0,
          "subscribes": 0,
          "orders": 0,
          "bookings": 0,
          "custom_goals": 0,
          "revenue": 0.0,
          "conversion_rate": 0.0,
          "completion_rate": 0.0,
          "subscribe_rate": 0.0,
          "order_rate": 0.0,
          "booking_rate": 0.0,
          "custom_goal_rate": 0.0,
          "aov": 0.0
        }
      }
    ]
  }
}

GET /api/v1/reports/website

Website performance

ParameterInTypeDescription
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).
timeframe query string
range_start query string Required when timeframe=custom (ISO 8601)
range_end query string
count_type query string Count mode for the funnel metrics (views, conversions, completions, subscribes, submissions, bookings, custom goals). distinct = unique visitors via HyperLogLog (default); total = raw event count. Orders and revenue are always summed regardless. Ignored on timeframe=insights_week (the weekly snapshot stores distinct counts only). An unrecognized value returns 422 invalid_count_type.
previous_period query boolean When true, each metrics block gains a nested `previous` object (same shape, for the immediately preceding period of equal length) and a `changes` object with the percent change per metric (null when the prior value is unavailable). The compared window is echoed as previous_range_start/previous_range_end in the timeframe block. No effect on timeframe=all_time (no prior period) or timeframe=insights_week.
group_by query string When set, the response gains a `timeseries` object alongside `metrics`: one point per bucket over the same window, each with date, views, conversions, completions, subscribes, submissions, orders and revenue (points carry submissions even where the metrics block does not). Buckets with no activity are returned as zeroes. Under the default count_type=distinct each bucket counts unique visitors within that bucket, so the points do not sum to the headline total (a visitor active on three days counts once overall and three times across the daily points); use count_type=total when the buckets must reconcile. An unrecognized value returns 422 invalid_group_by. On the website report the window may cover at most 92 days (campaign, variant, step and element reports take any range); a range that would exceed 400 points is rejected too. Both return 422 range_too_wide.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/website \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "timeframe": {
    "selected": "string",
    "range_start": "2017-07-21T17:32:28Z",
    "range_end": "2017-07-21T17:32:28Z",
    "timezone": "string",
    "previous_range_start": "2017-07-21T17:32:28Z",
    "previous_range_end": "2017-07-21T17:32:28Z"
  },
  "data": {
    "metrics": {
      "views": 0,
      "conversions": 0,
      "completions": 0,
      "subscribes": 0,
      "orders": 0,
      "bookings": 0,
      "custom_goals": 0,
      "revenue": 0.0,
      "conversion_rate": 0.0,
      "completion_rate": 0.0,
      "subscribe_rate": 0.0,
      "order_rate": 0.0,
      "booking_rate": 0.0,
      "custom_goal_rate": 0.0,
      "aov": 0.0,
      "previous": {
        "views": 0,
        "conversions": 0,
        "completions": 0,
        "subscribes": 0,
        "orders": 0,
        "bookings": 0,
        "custom_goals": 0,
        "revenue": 0.0,
        "conversion_rate": 0.0,
        "completion_rate": 0.0,
        "subscribe_rate": 0.0,
        "order_rate": 0.0,
        "booking_rate": 0.0,
        "custom_goal_rate": 0.0,
        "aov": 0.0
      },
      "changes": {
        "views": 0.0,
        "conversions": null,
        "completions": null,
        "subscribes": null,
        "orders": null,
        "bookings": null,
        "custom_goals": null,
        "revenue": null,
        "conversion_rate": null,
        "completion_rate": null,
        "subscribe_rate": null,
        "order_rate": null,
        "booking_rate": null,
        "custom_goal_rate": null,
        "aov": null
      }
    },
    "timeseries": {
      "group_by": "string",
      "points": [
        {
          "date": "2017-07-21",
          "views": 0,
          "conversions": 0,
          "completions": 0,
          "subscribes": 0,
          "submissions": 0,
          "bookings": 0,
          "custom_goals": 0,
          "orders": 0,
          "revenue": 0.0
        }
      ]
    }
  }
}

GET /api/v1/reports/website/insights

Latest weekly insights snapshot

ParameterInTypeDescription
website_id query integer Website id. Must be one of the token's websites. Optional for single-website tokens (derived from the binding); required when the token grants multiple websites (400 website_id_required otherwise).

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/website/insights \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "report": "string",
  "website": {
    "id": 0,
    "name": "string",
    "currency": "string"
  },
  "data": {
    "week": "2017-07-21",
    "performance_snapshot": {
      "performance": {
        "revenue": 0.0,
        "viewers": 0
      }
    },
    "ai_recommendations": {
      "items": [
        "string"
      ]
    }
  }
}

GET /api/v1/reports/websites

Websites the token grants access to

Lists the websites bound to the access token. Use the returned ids as the website_id query param on the other reports endpoints.

Example request

curl -X GET https://app.convertflow.co/api/v1/reports/websites \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "websites": [
    {
      "id": 0,
      "name": "string",
      "account_id": 0,
      "account_name": "string",
      "created_at": "2017-07-21T17:32:28Z"
    }
  ]
}

Segments

GET /api/v1/segments

List segments

Returns the website's visitor segments sorted by name, each with its conditions. Region and city conditions carry their comma-separated names in `keyword`, country conditions their ISO alpha-2 codes in `country`. Requires the segments:read scope on OAuth tokens.

ParameterInTypeDescription
name query string Case-insensitive substring of the segment name

Example request

curl -X GET https://app.convertflow.co/api/v1/segments \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "name": "string",
    "website_id": 0,
    "conditions": [
      {
        "id": 0,
        "condition_type": "string",
        "operator": "string",
        "keyword": "string",
        "country": null,
        "url": null,
        "count": 0,
        "condition_cta": 0,
        "tag_id": null,
        "data": {
        }
      }
    ],
    "created_at": "2017-07-21T17:32:28Z",
    "updated_at": "2017-07-21T17:32:28Z"
  }
]

GET /api/v1/segments/condition_types

List segment condition types

Every condition type a segment can hold, with the settings PATCH /api/v1/segments/{id}/conditions/{condition_id} accepts for it: attribute (the body key), input (text, number or select), multi (comma-separated values allowed) and, for selects, the options available on this website (value and label) or the format of the value. Requires segments:read.

Example request

curl -X GET https://app.convertflow.co/api/v1/segments/condition_types \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "condition_type": "string",
    "settings": [
      {
        "attribute": "string",
        "input": "string",
        "multi": true,
        "options": [
          {
            "value": "any",
            "label": "string"
          }
        ],
        "format": "string"
      }
    ]
  }
]

GET /api/v1/segments/{id}

Get a segment

One visitor segment with its conditions. Requires segments:read.

ParameterInTypeDescription
id * path integer

Example request

curl -X GET https://app.convertflow.co/api/v1/segments/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "website_id": 0,
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": "string",
      "country": "string",
      "url": "string",
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

DELETE /api/v1/segments/{id}

Delete a segment

Deletes the segment and all its conditions, then republishes the website script. Refused with 409 while any campaign, site-wide or funnel condition still targets the segment ("If (NOT) in custom segment"); the response lists those conditions and, for campaign conditions, the campaign. Remove them in the dashboard first. Requires segments:delete, which is only available to personal access tokens, never to MCP connections.

ParameterInTypeDescription
id * path integer

Example request

curl -X DELETE https://app.convertflow.co/api/v1/segments/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "status": "string",
  "code": 0,
  "message": "string"
}

PATCH /api/v1/segments/{id}

Rename a segment

Renames the segment. Nothing else on the segment changes and the website script is not republished (the name is a label, never part of targeting). Requires segments:write.

ParameterInTypeDescription
id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/segments/{id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'

Example response

{
  "id": 0,
  "name": "string",
  "website_id": 0,
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": "string",
      "country": null,
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

DELETE /api/v1/segments/{id}/conditions/{condition_id}

Delete a segment condition

Removes one condition from the segment and republishes the website script, so every live campaign targeting the segment changes for visitors at once. Any condition type can be removed. Removing the last condition leaves a segment that matches nobody. Returns the segment with its remaining conditions. Requires segments:delete, which is only available to personal access tokens, never to MCP connections.

ParameterInTypeDescription
id * path integer
condition_id * path integer

Example request

curl -X DELETE https://app.convertflow.co/api/v1/segments/{id}/conditions/{condition_id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "website_id": 0,
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": null,
      "country": "string",
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

PATCH /api/v1/segments/{id}/conditions/{condition_id}

Update a segment condition

Replaces one or more values of a segment condition and republishes the website script, so every live campaign targeting the segment changes for visitors at once. The body keys are the settings of the condition type as GET /api/v1/segments/condition_types lists them: free-text settings take any value, number settings a whole number, select settings one of the available options (ids for campaigns, segments and tags; values for device type and contact fields; field slugs for custom fields; comma-separated ISO alpha-2 codes for countries). Region and city keywords are comma-separated full names and replace the whole list; two-letter region abbreviations are refused because visitor geolocation reports full names. A key that is not a setting of the condition type answers 422, as do condition types without settings and integration conditions. Requires segments:write.

ParameterInTypeDescription
id * path integer
condition_id * path integer

Example request

curl -X PATCH https://app.convertflow.co/api/v1/segments/{id}/conditions/{condition_id} \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"string","url":"string","count":0,"country":"string","condition_cta":0,"tag_id":0,"device":"string","conditions_group_id":0,"attribute":"string","slug":"string","operator":"string"}'

Example response

{
  "id": 0,
  "name": "string",
  "website_id": 0,
  "conditions": [
    {
      "id": 0,
      "condition_type": "string",
      "operator": "string",
      "keyword": "string",
      "country": null,
      "url": null,
      "count": 0,
      "condition_cta": 0,
      "tag_id": null,
      "data": {
      }
    }
  ],
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z"
}

Templates

GET /api/v1/templates

List campaign templates

Templates the account can build campaigns and variants from: its own saved templates plus the public library, 25 per page, newest first. Pass a template id as template_id to POST /campaigns or POST /campaigns/{id}/variants. Requires the templates:read scope on OAuth tokens.

ParameterInTypeDescription
cta_type query string Campaign format of the template
name query string Case-insensitive name search
page query integer

Example request

curl -X GET https://app.convertflow.co/api/v1/templates \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

[
  {
    "id": 0,
    "name": "string",
    "description": null,
    "cta_type": "string",
    "screenshot": null,
    "official": true,
    "public": true,
    "premium": null,
    "times_used": 0,
    "tags": [

    ],
    "created_at": "2017-07-21T17:32:28Z"
  }
]

GET /api/v1/templates/{id}

Show a campaign template

One template visible to the account. Requires templates:read.

ParameterInTypeDescription
id * path integer

Example request

curl -X GET https://app.convertflow.co/api/v1/templates/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "description": null,
  "cta_type": "string",
  "screenshot": null,
  "official": true,
  "public": true,
  "premium": null,
  "times_used": 0,
  "tags": [

  ],
  "created_at": "2017-07-21T17:32:28Z"
}

Website

GET /api/v1/websites

Get the authenticated website

Returns the website the credential is bound to. The `name` field is the website root domain name (e.g. example.com).

Example request

curl -X GET https://app.convertflow.co/api/v1/websites \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

{
  "id": 0,
  "name": "string",
  "user_id": null,
  "created_at": "2017-07-21T17:32:28Z",
  "updated_at": "2017-07-21T17:32:28Z",
  "url": null,
  "listener": true,
  "published": null,
  "visitors_count": null,
  "active": true,
  "account_id": 0,
  "screenshot": null,
  "data": {
    "form-tracking": "string",
    "last_published": "string",
    "url-identification": "string",
    "google-analytics-track": "string"
  },
  "script_type": "string",
  "test": true,
  "blacklisted": true,
  "brand": "string",
  "api_key": "string",
  "powered_by": true,
  "sub_domain": "string",
  "archived": true,
  "premium": true,
  "conversions": 0,
  "completions": 0,
  "plan_type": "string",
  "support": true,
  "context": null,
  "research": null,
  "context_last_updated": null,
  "root_domains": [
    "string"
  ],
  "consent_mode": true
}