Zum Inhalt

Reference

Marketing

GET/api/v1/marketing/ai-visibilityGet ai visibility

Whether AI assistants and search engines read one registered website, and whether people arrive from AI assistants, for a period: crawler totals per bot (kind ai or search, hits), crawler_hits, ai_sessions, ai_inquiries and their conversion, the pages of the latest sitemap no crawler has read (never_crawled, first 50), the busiest crawled pages and the AI sources people came from. Visitors are counted per day: in cookieless mode one person on three days counts 3, in consent mode only visitors who allowed „Statistik“ are counted; in combined mode visitors who allowed „Statistik“ are recognised across days and all others are counted per day without cookies. revenue_cents is the net of issued invoices of the inquiries received in the period (gestellte Rechnungen, netto), so it keeps growing after the period. Inquiries without a matched visit count as „Unbekannt“ (unknown). Figures exclude bots.scope leads:read

Query

sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
comparebooleanAlso return the previous period of the same length. Default true.

Response 200

sitestring
periodobject
period.fromstring
period.tostring
period.previousobject | null
period.previous.fromstring
period.previous.tostring
consent_modeone of cookieless, consent, combined
consent_rateoptionalnumber | null
consent_noteoptionalstring
totalsobject
totals.crawler_hitsnumber
totals.botsnumber
totals.ai_sessionsnumber
totals.ai_inquiriesnumber
totals.ai_conversionnumber | null
totals.never_crawlednumber
totals.sitemap_pagesnumber
previousoptionalobject
previous.crawler_hitsnumber
previous.ai_sessionsnumber
previous.ai_inquiriesnumber
bots[]object[]
bots[].botstring
bots[].kindstring
bots[].hitsnumber
top_pages[]object[]
top_pages[].pathstring
top_pages[].hitsnumber
top_pages[].ai_hitsnumber
top_pages[].last_daystring
never_crawled[]object[]
never_crawled[].pathstring
never_crawled[].first_seen_atstring
ai_sources[]object[]
ai_sources[].sourcestring
ai_sources[].sessionsnumber
ai_sources[].inquiriesnumber
ai_sources[].conversionnumber | null
ai_sources[].top_landingstring | null
sitemap_read_atstring | null
Schema
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string"
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "previous": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "previous"
      ],
      "additionalProperties": false
    },
    "consent_mode": {
      "type": "string",
      "enum": [
        "cookieless",
        "consent",
        "combined"
      ]
    },
    "consent_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "consent_note": {
      "type": "string"
    },
    "totals": {
      "type": "object",
      "properties": {
        "crawler_hits": {
          "type": "number"
        },
        "bots": {
          "type": "number"
        },
        "ai_sessions": {
          "type": "number"
        },
        "ai_inquiries": {
          "type": "number"
        },
        "ai_conversion": {
          "type": [
            "number",
            "null"
          ]
        },
        "never_crawled": {
          "type": "number"
        },
        "sitemap_pages": {
          "type": "number"
        }
      },
      "required": [
        "crawler_hits",
        "bots",
        "ai_sessions",
        "ai_inquiries",
        "ai_conversion",
        "never_crawled",
        "sitemap_pages"
      ],
      "additionalProperties": false
    },
    "previous": {
      "type": "object",
      "properties": {
        "crawler_hits": {
          "type": "number"
        },
        "ai_sessions": {
          "type": "number"
        },
        "ai_inquiries": {
          "type": "number"
        }
      },
      "required": [
        "crawler_hits",
        "ai_sessions",
        "ai_inquiries"
      ],
      "additionalProperties": false
    },
    "bots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bot": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "hits": {
            "type": "number"
          }
        },
        "required": [
          "bot",
          "kind",
          "hits"
        ],
        "additionalProperties": false
      }
    },
    "top_pages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "hits": {
            "type": "number"
          },
          "ai_hits": {
            "type": "number"
          },
          "last_day": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "hits",
          "ai_hits",
          "last_day"
        ],
        "additionalProperties": false
      }
    },
    "never_crawled": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "first_seen_at": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "first_seen_at"
        ],
        "additionalProperties": false
      }
    },
    "ai_sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "sessions": {
            "type": "number"
          },
          "inquiries": {
            "type": "number"
          },
          "conversion": {
            "type": [
              "number",
              "null"
            ]
          },
          "top_landing": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "source",
          "sessions",
          "inquiries",
          "conversion",
          "top_landing"
        ],
        "additionalProperties": false
      }
    },
    "sitemap_read_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "site",
    "period",
    "consent_mode",
    "totals",
    "bots",
    "top_pages",
    "never_crawled",
    "ai_sources",
    "sitemap_read_at"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/assistant-statsGet assistant stats

Website assistant figures of one registered website for a period: totals (started, qualified, inquiries, quotes, revenue_cents), the previous period of equal length (previous, with compare), the same per assistant profile (version, conversion = inquiries / started), the most frequent answers per question of one profile (profile, default the one with most conversations) and how many conversations ended without contact details, before or after the result. started = conversations with at least one visitor message; qualified = the assistant finished its questions; inquiries = inquiries captured by the assistant, received in the period; revenue = net of issued invoices of those inquiries, so it grows after the period; free-text answers come from inquiries only — conversation text is deleted after 24 hours; test conversations never count.scope leads:read

Query

sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
comparebooleanAlso return the previous period of the same length. Default true.
profilestringProfile id or exact name; selects the profile whose answers are returned. Default: the profile with most conversations.

Response 200

sitestring
periodobject
period.fromstring
period.tostring
period.previousobject | null
period.previous.fromstring
period.previous.tostring
revenue_notestring
totalsobject
totals.startednumber
totals.qualifiednumber
totals.inquiriesnumber
totals.quotesnumber
totals.revenue_centsnumber
previousoptionalobject
previous.startednumber
previous.qualifiednumber
previous.inquiriesnumber
previous.quotesnumber
previous.revenue_centsnumber
profiles[]object[]
profiles[].idstring
profiles[].namestring
profiles[].versionnumber | null
profiles[].startednumber
profiles[].qualifiednumber
profiles[].inquiriesnumber
profiles[].conversionnumber | null
profiles[].quotesnumber
profiles[].revenue_centsnumber
answers[]object[]
answers[].questionstring
answers[].typestring
answers[].sourceone of conversations, inquiries
answers[].totalnumber
answers[].values[]object[]
answers[].values[].valuestring
answers[].values[].countnumber
ended_without_contactobject
ended_without_contact.totalnumber
ended_without_contact.before_resultnumber
ended_without_contact.after_resultnumber
Schema
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string"
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "previous": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "previous"
      ],
      "additionalProperties": false
    },
    "revenue_note": {
      "type": "string"
    },
    "totals": {
      "type": "object",
      "properties": {
        "started": {
          "type": "number"
        },
        "qualified": {
          "type": "number"
        },
        "inquiries": {
          "type": "number"
        },
        "quotes": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        }
      },
      "required": [
        "started",
        "qualified",
        "inquiries",
        "quotes",
        "revenue_cents"
      ],
      "additionalProperties": false
    },
    "previous": {
      "type": "object",
      "properties": {
        "started": {
          "type": "number"
        },
        "qualified": {
          "type": "number"
        },
        "inquiries": {
          "type": "number"
        },
        "quotes": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        }
      },
      "required": [
        "started",
        "qualified",
        "inquiries",
        "quotes",
        "revenue_cents"
      ],
      "additionalProperties": false
    },
    "profiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": [
              "number",
              "null"
            ]
          },
          "started": {
            "type": "number"
          },
          "qualified": {
            "type": "number"
          },
          "inquiries": {
            "type": "number"
          },
          "conversion": {
            "type": [
              "number",
              "null"
            ]
          },
          "quotes": {
            "type": "number"
          },
          "revenue_cents": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "version",
          "started",
          "qualified",
          "inquiries",
          "conversion",
          "quotes",
          "revenue_cents"
        ],
        "additionalProperties": false
      }
    },
    "answers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "enum": [
              "conversations",
              "inquiries"
            ]
          },
          "total": {
            "type": "number"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "count": {
                  "type": "number"
                }
              },
              "required": [
                "value",
                "count"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "question",
          "type",
          "source",
          "total",
          "values"
        ],
        "additionalProperties": false
      }
    },
    "ended_without_contact": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "before_result": {
          "type": "number"
        },
        "after_result": {
          "type": "number"
        }
      },
      "required": [
        "total",
        "before_result",
        "after_result"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "site",
    "period",
    "revenue_note",
    "totals",
    "profiles",
    "answers",
    "ended_without_contact"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/campaignsList campaigns

Marketing campaigns with their results, 50 per page: id, name, slug (the utm_campaign value), goal, channels, status (planned, active, ended), starts_on, ends_on, budget_cents, owner, link_count and the results (sessions, inquiries, quotes, won, revenue_cents, cost_cents, cost_per_inquiry_cents, roi). Without status it lists planned and active ones; give status to see ended ones. q searches name, slug and goal. Campaign figures are all-time since the first session (not limited to a period). Revenue = net of issued invoices of the campaign's inquiries. Costs = open incoming invoices assigned to the campaign, net.scope leads:read

Query

statusone of planned, active, ended[]Default planned and active.
qstring
pageinteger1-based page of 50 rows. Omit for the first page.

Response 200

items[]object[]
items[].idstring
items[].namestring
items[].slugstring
items[].goalstring | null
items[].channelsone of linkedin, email, search, ai, paid, other[]
items[].statusone of planned, active, ended
items[].starts_onstring | null
items[].ends_onstring | null
items[].budget_centsnumber | null
items[].ownerobject | null
items[].owner.idstring
items[].owner.namestring | null
items[].link_countnumber
items[].resultsobject
items[].results.sessionsnumber
items[].results.sessions_without_linknumber
items[].results.inquiriesnumber
items[].results.inquiries_with_quotesnumber
items[].results.quotesnumber
items[].results.wonnumber
items[].results.revenue_centsnumber
items[].results.cost_centsnumber
items[].results.cost_per_inquiry_centsnumber | null
items[].results.roinumber | null
pageinteger
totalinteger
has_moreboolean
hidden_endednumber
notestring
Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "goal": {
            "type": [
              "string",
              "null"
            ]
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "linkedin",
                "email",
                "search",
                "ai",
                "paid",
                "other"
              ]
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "active",
              "ended"
            ]
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "budget_cents": {
            "type": [
              "number",
              "null"
            ]
          },
          "owner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "link_count": {
            "type": "number"
          },
          "results": {
            "type": "object",
            "properties": {
              "sessions": {
                "type": "number"
              },
              "sessions_without_link": {
                "type": "number"
              },
              "inquiries": {
                "type": "number"
              },
              "inquiries_with_quotes": {
                "type": "number"
              },
              "quotes": {
                "type": "number"
              },
              "won": {
                "type": "number"
              },
              "revenue_cents": {
                "type": "number"
              },
              "cost_cents": {
                "type": "number"
              },
              "cost_per_inquiry_cents": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "roi": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "sessions",
              "sessions_without_link",
              "inquiries",
              "inquiries_with_quotes",
              "quotes",
              "won",
              "revenue_cents",
              "cost_cents",
              "cost_per_inquiry_cents",
              "roi"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "goal",
          "channels",
          "status",
          "starts_on",
          "ends_on",
          "budget_cents",
          "owner",
          "link_count",
          "results"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "hidden_ended": {
      "type": "number"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "items",
    "page",
    "total",
    "has_more",
    "hidden_ended",
    "note"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/marketing/campaignsSave campaign

Creates a campaign, or changes one when id is given (fields left out stay as they are). name is required for a new one. slug is the utm_campaign value (lower case letters, digits, hyphens; default derived from the name); it cannot change once links or sessions exist. status is planned, active or ended (default: planned with a future starts_on, else active). Dates are YYYY-MM-DD, budget_cents is in cents. owner is a user id; a person acting leaves it out to own the campaign, an agent acting as itself must give it. assistant_profile and configurator_profile are the profiles (id or exact name) the landing pages use. Saving a slug adopts earlier sessions and inquiries that already carry it as utm_campaign.scope leads:write

Body (JSON)

idstringThe campaign to change; leave out to create one.
namestring
slugstring
goalstring | null
channelsone of linkedin, email, search, ai, paid, other[]
starts_onstring | null
ends_onstring | null
budget_centsinteger | null
ownerstringUser id of the person responsible.
assistant_profilestring | nullAssistant profile id or exact name.
configurator_profilestring | nullConfigurator profile id or exact name.
statusone of planned, active, ended

Response 200

idstring
namestring
slugstring
statusone of planned, active, ended
createdboolean
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "planned",
        "active",
        "ended"
      ]
    },
    "created": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "status",
    "created",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/campaigns/{id}Get campaign

One campaign: its fields, results, saved tracking links with their sessions, inquiries and ready-to-use urls, the costs booked on it (open incoming invoices) and its newest 10 inquiries, plus the assistant and configurator profile of its landing pages (id, name, site_key). Campaign figures are all-time since the first session (not limited to a period). Revenue = net of issued invoices of the campaign's inquiries. Costs = open incoming invoices assigned to the campaign, net. Link sessions cover raw retention only. costs.total_cents is for everyone; costs.invoices (supplier, date, amount per invoice) only with finance.manage, else null.scope leads:read

Path

idrequiredstringThe campaign's id or slug.

Response 200

idstring
namestring
slugstring
goalstring | null
channelsone of linkedin, email, search, ai, paid, other[]
statusone of planned, active, ended
starts_onstring | null
ends_onstring | null
budget_centsnumber | null
ownerobject | null
owner.idstring
owner.namestring
assistant_profileobject | null
assistant_profile.idstring
assistant_profile.namestring
assistant_profile.site_keystring
configurator_profileobject | null
configurator_profile.idstring
configurator_profile.namestring
configurator_profile.site_keystring
resultsobject
results.sessionsnumber
results.sessions_without_linknumber
results.inquiriesnumber
results.inquiries_with_quotesnumber
results.quotesnumber
results.wonnumber
results.revenue_centsnumber
results.cost_centsnumber
results.cost_per_inquiry_centsnumber | null
results.roinumber | null
links[]object[]
links[].idstring
links[].labelstring
links[].sitestring
links[].target_urlstring
links[].utm_sourcestring
links[].utm_mediumstring
links[].utm_contentstring | null
links[].urlstring
links[].sessionsnumber
links[].inquiriesnumber
costsobject
costs.total_centsnumber
costs.invoices[]object[]
costs.invoices[].idstring
costs.invoices[].supplierstring
costs.invoices[].invoice_datestring
costs.invoices[].net_centsnumber
costs.invoices[].gross_fallbackboolean
inquiriesobject
inquiries.totalnumber
inquiries.latest[]object[]
inquiries.latest[].lead_idstring
inquiries.latest[].namestring
inquiries.latest[].companystring | null
inquiries.latest[].captured_bystring
inquiries.latest[].created_atstring
inquiries.latest[].statusstring
notestring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "goal": {
      "type": [
        "string",
        "null"
      ]
    },
    "channels": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "linkedin",
          "email",
          "search",
          "ai",
          "paid",
          "other"
        ]
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "planned",
        "active",
        "ended"
      ]
    },
    "starts_on": {
      "type": [
        "string",
        "null"
      ]
    },
    "ends_on": {
      "type": [
        "string",
        "null"
      ]
    },
    "budget_cents": {
      "type": [
        "number",
        "null"
      ]
    },
    "owner": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "assistant_profile": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "site_key": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "site_key"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "configurator_profile": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "site_key": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "site_key"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "results": {
      "type": "object",
      "properties": {
        "sessions": {
          "type": "number"
        },
        "sessions_without_link": {
          "type": "number"
        },
        "inquiries": {
          "type": "number"
        },
        "inquiries_with_quotes": {
          "type": "number"
        },
        "quotes": {
          "type": "number"
        },
        "won": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        },
        "cost_cents": {
          "type": "number"
        },
        "cost_per_inquiry_cents": {
          "type": [
            "number",
            "null"
          ]
        },
        "roi": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "sessions",
        "sessions_without_link",
        "inquiries",
        "inquiries_with_quotes",
        "quotes",
        "won",
        "revenue_cents",
        "cost_cents",
        "cost_per_inquiry_cents",
        "roi"
      ],
      "additionalProperties": false
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "site": {
            "type": "string"
          },
          "target_url": {
            "type": "string"
          },
          "utm_source": {
            "type": "string"
          },
          "utm_medium": {
            "type": "string"
          },
          "utm_content": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          },
          "sessions": {
            "type": "number"
          },
          "inquiries": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "label",
          "site",
          "target_url",
          "utm_source",
          "utm_medium",
          "utm_content",
          "url",
          "sessions",
          "inquiries"
        ],
        "additionalProperties": false
      }
    },
    "costs": {
      "type": "object",
      "properties": {
        "total_cents": {
          "type": "number"
        },
        "invoices": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "supplier": {
                    "type": "string"
                  },
                  "invoice_date": {
                    "type": "string"
                  },
                  "net_cents": {
                    "type": "number"
                  },
                  "gross_fallback": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "supplier",
                  "invoice_date",
                  "net_cents",
                  "gross_fallback"
                ],
                "additionalProperties": false
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "total_cents",
        "invoices"
      ],
      "additionalProperties": false
    },
    "inquiries": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "latest": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "lead_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "company": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "captured_by": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "lead_id",
              "name",
              "company",
              "captured_by",
              "created_at",
              "status"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "total",
        "latest"
      ],
      "additionalProperties": false
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "goal",
    "channels",
    "status",
    "starts_on",
    "ends_on",
    "budget_cents",
    "owner",
    "assistant_profile",
    "configurator_profile",
    "results",
    "links",
    "costs",
    "inquiries",
    "note"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/configurator-statsGet configurator stats

Configurator figures of one registered website for a period: totals (views, started, started_share, requests, quotes_sent, orders, revenue_cents, orders_monthly_net_cents), the previous period of equal length (previous, with compare), the chosen positions per group (in_runs = configurations, in_requests, in_quotes, in_orders; none = no position of an optional group), term and number of users, the ticked needs and the funnel of one profile (profile, default the first). views = widget loads on allowed domains; started = configurations with a first change; requests = inquiries received in the period; revenue = net of issued invoices of those inquiries, so it grows after the period; no visitor is identified.scope leads:read

Query

sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
comparebooleanAlso return the previous period of the same length. Default true.
profilestringConfigurator profile id or exact name. Default: the first profile of the website.

Response 200

sitestring
periodobject
period.fromstring
period.tostring
period.previousobject | null
period.previous.fromstring
period.previous.tostring
revenue_notestring
profileoptionalobject
profile.idstring
profile.namestring
profiles[]object[]
profiles[].idstring
profiles[].namestring
totalsobject
totals.viewsnumber
totals.startednumber
totals.started_sharenumber | null
totals.requestsnumber
totals.quotes_sentnumber
totals.ordersnumber
totals.revenue_centsnumber
totals.orders_monthly_net_centsnumber
previousoptionalobject
previous.viewsnumber
previous.startednumber
previous.started_sharenumber | null
previous.requestsnumber
previous.quotes_sentnumber
previous.ordersnumber
previous.revenue_centsnumber
previous.orders_monthly_net_centsnumber
groups[]object[]
groups[].keystring
groups[].labelstring
groups[].rulestring
groups[].rows[]object[]
groups[].rows[].slotstring
groups[].rows[].labelstring
groups[].rows[].in_runsnumber
groups[].rows[].run_sharenumber
groups[].rows[].in_requestsnumber
groups[].rows[].in_quotesnumber
groups[].rows[].in_ordersnumber
termobject | null
term.annualnumber[]
term.monthlynumber[]
usersobject | null
users.runsobject | null
users.runs.mediannumber
users.runs.minnumber
users.runs.maxnumber
users.requestsobject | null
users.requests.mediannumber
users.requests.minnumber
users.requests.maxnumber
users.quotesobject | null
users.quotes.mediannumber
users.quotes.minnumber
users.quotes.maxnumber
users.ordersobject | null
users.orders.mediannumber
users.orders.minnumber
users.orders.maxnumber
needs[]object[]
needs[].keystring
needs[].labelstring
needs[].sharenumber
needs[].in_requestsnumber
funnel[]object[]
funnel[].stepone of views, started, requests, quotes, orders
funnel[].countnumber
funnel[].of_previousnumber | null
Schema
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string"
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "previous": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "previous"
      ],
      "additionalProperties": false
    },
    "revenue_note": {
      "type": "string"
    },
    "profile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "profiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      }
    },
    "totals": {
      "type": "object",
      "properties": {
        "views": {
          "type": "number"
        },
        "started": {
          "type": "number"
        },
        "started_share": {
          "type": [
            "number",
            "null"
          ]
        },
        "requests": {
          "type": "number"
        },
        "quotes_sent": {
          "type": "number"
        },
        "orders": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        },
        "orders_monthly_net_cents": {
          "type": "number"
        }
      },
      "required": [
        "views",
        "started",
        "started_share",
        "requests",
        "quotes_sent",
        "orders",
        "revenue_cents",
        "orders_monthly_net_cents"
      ],
      "additionalProperties": false
    },
    "previous": {
      "type": "object",
      "properties": {
        "views": {
          "type": "number"
        },
        "started": {
          "type": "number"
        },
        "started_share": {
          "type": [
            "number",
            "null"
          ]
        },
        "requests": {
          "type": "number"
        },
        "quotes_sent": {
          "type": "number"
        },
        "orders": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        },
        "orders_monthly_net_cents": {
          "type": "number"
        }
      },
      "required": [
        "views",
        "started",
        "started_share",
        "requests",
        "quotes_sent",
        "orders",
        "revenue_cents",
        "orders_monthly_net_cents"
      ],
      "additionalProperties": false
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "rule": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slot": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "in_runs": {
                  "type": "number"
                },
                "run_share": {
                  "type": "number"
                },
                "in_requests": {
                  "type": "number"
                },
                "in_quotes": {
                  "type": "number"
                },
                "in_orders": {
                  "type": "number"
                }
              },
              "required": [
                "slot",
                "label",
                "in_runs",
                "run_share",
                "in_requests",
                "in_quotes",
                "in_orders"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "key",
          "label",
          "rule",
          "rows"
        ],
        "additionalProperties": false
      }
    },
    "term": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "annual": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "monthly": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          "required": [
            "annual",
            "monthly"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "users": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "runs": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "median": {
                      "type": "number"
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "median",
                    "min",
                    "max"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "requests": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "median": {
                      "type": "number"
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "median",
                    "min",
                    "max"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "quotes": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "median": {
                      "type": "number"
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "median",
                    "min",
                    "max"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "orders": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "median": {
                      "type": "number"
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "median",
                    "min",
                    "max"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "runs",
            "requests",
            "quotes",
            "orders"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "needs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "share": {
            "type": "number"
          },
          "in_requests": {
            "type": "number"
          }
        },
        "required": [
          "key",
          "label",
          "share",
          "in_requests"
        ],
        "additionalProperties": false
      }
    },
    "funnel": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "step": {
            "type": "string",
            "enum": [
              "views",
              "started",
              "requests",
              "quotes",
              "orders"
            ]
          },
          "count": {
            "type": "number"
          },
          "of_previous": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "step",
          "count",
          "of_previous"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "site",
    "period",
    "revenue_note",
    "profiles",
    "totals",
    "groups",
    "term",
    "users",
    "needs",
    "funnel"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/inquiry-originGet inquiry origin

Where one inquiry (lead) came from: the snapshot of the website visit it was created from (channel, referrer, UTM fields, landing page, pages read with marks) as origin, null when the origin is unknown (such an inquiry counts as „Unbekannt“ in the figures). manual is true when the channel was set by hand (then origin has no site, landing page or pages), heard_about is what the sender answered to „Wie haben Sie von uns erfahren?“.scope leads:read

Query

leadrequiredstringThe inquiry's (lead's) id.

Response 200

lead_idstring
originobject | null
origin.site_idstring | null
origin.channelstring
origin.referrer_hoststring | null
origin.utm_sourcestring | null
origin.utm_mediumstring | null
origin.utm_campaignstring | null
origin.utm_contentstring | null
origin.utm_termstring | null
origin.partner_tokenstring | null
origin.landing_pathstring | null
origin.campaign_idstring | null
origin.from_refboolean
origin.pageviewsnumber
origin.eventsnumber
origin.pages_read[]object[]
origin.pages_read[].pathstring
origin.pages_read[].marksstring[]
origin.atstring
origin.ended_atstring | null
origin.set_by_nameoptionalstring
heard_aboutstring | null
manualboolean
Schema
{
  "type": "object",
  "properties": {
    "lead_id": {
      "type": "string"
    },
    "origin": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "site_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "channel": {
              "type": "string"
            },
            "referrer_host": {
              "type": [
                "string",
                "null"
              ]
            },
            "utm_source": {
              "type": [
                "string",
                "null"
              ]
            },
            "utm_medium": {
              "type": [
                "string",
                "null"
              ]
            },
            "utm_campaign": {
              "type": [
                "string",
                "null"
              ]
            },
            "utm_content": {
              "type": [
                "string",
                "null"
              ]
            },
            "utm_term": {
              "type": [
                "string",
                "null"
              ]
            },
            "partner_token": {
              "type": [
                "string",
                "null"
              ]
            },
            "landing_path": {
              "type": [
                "string",
                "null"
              ]
            },
            "campaign_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "from_ref": {
              "type": "boolean"
            },
            "pageviews": {
              "type": "number"
            },
            "events": {
              "type": "number"
            },
            "pages_read": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string"
                  },
                  "marks": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "path",
                  "marks"
                ],
                "additionalProperties": false
              }
            },
            "at": {
              "type": "string"
            },
            "ended_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "set_by_name": {
              "type": "string"
            }
          },
          "required": [
            "site_id",
            "channel",
            "referrer_host",
            "utm_source",
            "utm_medium",
            "utm_campaign",
            "utm_content",
            "utm_term",
            "partner_token",
            "landing_path",
            "campaign_id",
            "from_ref",
            "pageviews",
            "events",
            "pages_read",
            "at",
            "ended_at"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "heard_about": {
      "type": [
        "string",
        "null"
      ]
    },
    "manual": {
      "type": "boolean"
    }
  },
  "required": [
    "lead_id",
    "origin",
    "heard_about",
    "manual"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/landing-pagesList landing pages

Landing pages of one registered website for a period, busiest first, 50 per page: sessions, bounce_rate, inquiries that started there, conversion, quotes, won orders and revenue_cents. Visitors are counted per day: in cookieless mode one person on three days counts 3, in consent mode only visitors who allowed „Statistik“ are counted; in combined mode visitors who allowed „Statistik“ are recognised across days and all others are counted per day without cookies. revenue_cents is the net of issued invoices of the inquiries received in the period (gestellte Rechnungen, netto), so it keeps growing after the period. Inquiries without a matched visit count as „Unbekannt“ (unknown). Figures exclude bots.scope leads:read

Query

sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
pageinteger1-based page of 50 rows. Omit for the first page.

Response 200

items[]object[]
items[].pathstring
items[].sessionsnumber
items[].bounce_ratenumber | null
items[].inquiriesnumber
items[].conversionnumber | null
items[].quotesnumber
items[].wonnumber
items[].revenue_centsnumber
pageinteger
totalinteger
has_moreboolean
sitestring
periodobject
period.fromstring
period.tostring
period.previousobject | null
period.previous.fromstring
period.previous.tostring
consent_modeone of cookieless, consent, combined
consent_rateoptionalnumber | null
consent_noteoptionalstring
revenue_notestring
Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "sessions": {
            "type": "number"
          },
          "bounce_rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "inquiries": {
            "type": "number"
          },
          "conversion": {
            "type": [
              "number",
              "null"
            ]
          },
          "quotes": {
            "type": "number"
          },
          "won": {
            "type": "number"
          },
          "revenue_cents": {
            "type": "number"
          }
        },
        "required": [
          "path",
          "sessions",
          "bounce_rate",
          "inquiries",
          "conversion",
          "quotes",
          "won",
          "revenue_cents"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "site": {
      "type": "string"
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "previous": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "previous"
      ],
      "additionalProperties": false
    },
    "consent_mode": {
      "type": "string",
      "enum": [
        "cookieless",
        "consent",
        "combined"
      ]
    },
    "consent_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "consent_note": {
      "type": "string"
    },
    "revenue_note": {
      "type": "string"
    }
  },
  "required": [
    "items",
    "page",
    "total",
    "has_more",
    "site",
    "period",
    "consent_mode",
    "revenue_note"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/partner-statsGet partner stats

One referral partner for a period: partner (code, name, status, rule: the version valid now with kind percent, fixed or both, rate_percent, duration_months, fixed_cents), link_sessions (visits through the partner's link; null without a named website or before raw data retention), inquiries (of the named website, or of all websites when none is named: then site is null and site_note says so), by_via (link, manual), new_customers (referrals starting in the period), revenue_cents, commission_cents and statements (month, state, commission_cents; all months). partner is the display code. state: draft (not released), released (released, not paid), paid, credit_note_cancelled (the credit note was cancelled). Revenue = net of the issued invoices of the referred Firmen (cancellations subtracted, items excluded from the commission still included). Commission = the lines of the commission statements for invoices dated in the period, drafts included. Link sessions only count visitors who allowed „Statistik“ on a website in consent mode. Statements cannot be created or released here. Payout and tax data of partners are not available to agents.scope leads:read

Query

partnerrequiredstringThe partner's display code.
sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
comparebooleanAlso return the previous period of the same length. Default true.

Response 200

partnerobject
partner.codestring
partner.namestring
partner.statusstring
partner.ruleobject | null
partner.rule.versionnumber
partner.rule.kindstring
partner.rule.rate_percentnumber | null
partner.rule.duration_monthsnumber | null
partner.rule.fixed_centsnumber | null
periodobject
period.fromstring
period.tostring
period.previousobject | null
period.previous.fromstring
period.previous.tostring
sitestring | null
site_noteoptionalstring
consent_modeoptionalone of cookieless, consent, combined
consent_rateoptionalnumber | null
consent_noteoptionalstring
link_sessionsnumber | null
inquiriesnumber
by_viaobject
by_via.linknumber
by_via.manualnumber
new_customersnumber
revenue_centsnumber
commission_centsnumber
statements[]object[]
statements[].monthstring
statements[].statestring
statements[].commission_centsnumber
Schema
{
  "type": "object",
  "properties": {
    "partner": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "rule": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "version": {
                  "type": "number"
                },
                "kind": {
                  "type": "string"
                },
                "rate_percent": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "duration_months": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "fixed_cents": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "version",
                "kind",
                "rate_percent",
                "duration_months",
                "fixed_cents"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "code",
        "name",
        "status",
        "rule"
      ],
      "additionalProperties": false
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "previous": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "previous"
      ],
      "additionalProperties": false
    },
    "site": {
      "type": [
        "string",
        "null"
      ]
    },
    "site_note": {
      "type": "string"
    },
    "consent_mode": {
      "type": "string",
      "enum": [
        "cookieless",
        "consent",
        "combined"
      ]
    },
    "consent_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "consent_note": {
      "type": "string"
    },
    "link_sessions": {
      "type": [
        "number",
        "null"
      ]
    },
    "inquiries": {
      "type": "number"
    },
    "by_via": {
      "type": "object",
      "properties": {
        "link": {
          "type": "number"
        },
        "manual": {
          "type": "number"
        }
      },
      "required": [
        "link",
        "manual"
      ],
      "additionalProperties": false
    },
    "new_customers": {
      "type": "number"
    },
    "revenue_cents": {
      "type": "number"
    },
    "commission_cents": {
      "type": "number"
    },
    "statements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "commission_cents": {
            "type": "number"
          }
        },
        "required": [
          "month",
          "state",
          "commission_cents"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "partner",
    "period",
    "site",
    "link_sessions",
    "inquiries",
    "by_via",
    "new_customers",
    "revenue_cents",
    "commission_cents",
    "statements"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/partnersList partners

Referral partners with their all-time figures: code, name, status (active, paused, ended), since, inquiries (discarded ones excluded), customers (referred Firmen), revenue_cents, commission_open_cents (commission of all statements not yet paid, drafts included) and open_statement (the earliest unpaid statement: month, state, commission_cents; null when none). state: draft (not released), released (released, not paid), paid, credit_note_cancelled (the credit note was cancelled). Without status it lists active and paused partners; status all lists every one. Revenue = net of the issued invoices of the referred Firmen (cancellations subtracted, items excluded from the commission still included). Commission = the lines of the commission statements for invoices dated in the period, drafts included. Link sessions only count visitors who allowed „Statistik“ on a website in consent mode. Statements cannot be created or released here. Payout and tax data of partners are not available to agents.scope leads:read

Query

statusone of active, paused, ended, allDefault active and paused.

Response 200

partners[]object[]
partners[].codestring
partners[].namestring
partners[].statusstring
partners[].sincestring
partners[].inquiriesnumber
partners[].customersnumber
partners[].revenue_centsnumber
partners[].commission_open_centsnumber
partners[].open_statementobject | null
partners[].open_statement.monthstring
partners[].open_statement.statestring
partners[].open_statement.commission_centsnumber
notestring
Schema
{
  "type": "object",
  "properties": {
    "partners": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "since": {
            "type": "string"
          },
          "inquiries": {
            "type": "number"
          },
          "customers": {
            "type": "number"
          },
          "revenue_cents": {
            "type": "number"
          },
          "commission_open_cents": {
            "type": "number"
          },
          "open_statement": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "month": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "commission_cents": {
                    "type": "number"
                  }
                },
                "required": [
                  "month",
                  "state",
                  "commission_cents"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "name",
          "status",
          "since",
          "inquiries",
          "customers",
          "revenue_cents",
          "commission_open_cents",
          "open_statement"
        ],
        "additionalProperties": false
      }
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "partners",
    "note"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/search-queriesList search queries

Google Search Console figures per search query of one registered website for a period, 50 per page: query, top_page (the page with most clicks for it), clicks, impressions, ctr, position and opportunity ({ kind, reason } or null). The result also names connected, error, data_until, range (the period clipped to the last day with data), median_ctr and totals over every matching query. Google lags 2 to 3 days, so the newest days are missing. position is the average weighted by impressions. Google leaves out anonymised queries, so the totals are below the Search Console UI. „Chance“ rules: rule 1 (kind position) = average position 4 to 15 with at least 100 impressions; rule 2 (kind ctr) = position 5 or better, at least 100 impressions and a CTR below half the website median CTR (the median over the queries at position 5 or better with at least 100 impressions; none with fewer than 3 such queries); rule 1 wins. Filter with page (a path) and opportunities_only; sort by clicks (default), impressions, ctr or position.scope leads:read

Query

sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
pagestringOnly the figures of this page, a path like /preise.
opportunities_onlybooleanOnly queries marked as „Chance“.
sortone of clicks, impressions, ctr, positionDefault clicks.
page_numberinteger1-based page of 50 rows. Omit for the first page.

Response 200

sitestring
connectedboolean
errorstring | null
data_untilstring | null
rangeobject | null
range.fromstring
range.tostring
median_ctrnumber | null
totalsobject
totals.queriesnumber
totals.clicksnumber
totals.impressionsnumber
totals.ctrnumber | null
totals.positionnumber | null
rows[]object[]
rows[].querystring
rows[].top_pagestring
rows[].clicksnumber
rows[].impressionsnumber
rows[].ctrnumber
rows[].positionnumber
rows[].opportunityobject | null
rows[].opportunity.kindone of position, ctr
rows[].opportunity.reasonstring
pageinteger
totalinteger
has_moreboolean
truncatedboolean
Schema
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string"
    },
    "connected": {
      "type": "boolean"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "data_until": {
      "type": [
        "string",
        "null"
      ]
    },
    "range": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "from": {
              "type": "string"
            },
            "to": {
              "type": "string"
            }
          },
          "required": [
            "from",
            "to"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "median_ctr": {
      "type": [
        "number",
        "null"
      ]
    },
    "totals": {
      "type": "object",
      "properties": {
        "queries": {
          "type": "number"
        },
        "clicks": {
          "type": "number"
        },
        "impressions": {
          "type": "number"
        },
        "ctr": {
          "type": [
            "number",
            "null"
          ]
        },
        "position": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "queries",
        "clicks",
        "impressions",
        "ctr",
        "position"
      ],
      "additionalProperties": false
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "top_page": {
            "type": "string"
          },
          "clicks": {
            "type": "number"
          },
          "impressions": {
            "type": "number"
          },
          "ctr": {
            "type": "number"
          },
          "position": {
            "type": "number"
          },
          "opportunity": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "position",
                      "ctr"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "reason"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "query",
          "top_page",
          "clicks",
          "impressions",
          "ctr",
          "position",
          "opportunity"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "site",
    "connected",
    "error",
    "data_until",
    "range",
    "median_ctr",
    "totals",
    "rows",
    "page",
    "total",
    "has_more",
    "truncated"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/marketing/web-statsGet web stats

Website figures of one registered website for a period: totals (visitors, sessions, pageviews, bounce_rate, inquiries, revenue_cents), the same for the previous period of equal length (previous, with compare), and groups by group_by: channel (default; sessions, share, inquiries, conversion, revenue per channel, unknown last), landing_page (top 50), event (non-pageview events such as tool use or form submits, needs raw data) or day (the daily trend) or captured_by (inquiries, share, quotes, won, revenue_cents per capture source) or campaign (sessions, inquiries, quotes, won, revenue_cents per nxva.base campaign as campaign_id, name, slug; campaign_id null = no campaign). captured_by = how the inquiry was taken (Formular, Assistent …), next to the traffic channel; website inquiries only. Visitors are counted per day: in cookieless mode one person on three days counts 3, in consent mode only visitors who allowed „Statistik“ are counted; in combined mode visitors who allowed „Statistik“ are recognised across days and all others are counted per day without cookies. revenue_cents is the net of issued invoices of the inquiries received in the period (gestellte Rechnungen, netto), so it keeps growing after the period. Inquiries without a matched visit count as „Unbekannt“ (unknown). Figures exclude bots. The result names consent_mode and, in consent mode, consent_rate.scope leads:read

Query

sitestringDomain of the website, like example.com. Optional when exactly one website is registered.
periodone of 7d, 28d, 90d, this_month, last_monthPeriod ending today (Europe/Berlin days). Default 28d. Ignored when from and to are given.
fromstringFirst day of a free range, YYYY-MM-DD. Needs to as well.
tostringLast day of a free range, YYYY-MM-DD. Needs from as well.
comparebooleanAlso return the previous period of the same length. Default true.
group_byone of channel, landing_page, event, day, captured_by, campaignHow to break the figures down. Default channel.

Response 200

sitestring
periodobject
period.fromstring
period.tostring
period.previousobject | null
period.previous.fromstring
period.previous.tostring
consent_modeone of cookieless, consent, combined
consent_rateoptionalnumber | null
consent_noteoptionalstring
totalsobject
totals.visitorsnumber
totals.sessionsnumber
totals.pageviewsnumber
totals.bounce_ratenumber | null
totals.inquiriesnumber
totals.revenue_centsnumber
previousoptionalobject
previous.visitorsnumber
previous.sessionsnumber
previous.pageviewsnumber
previous.bounce_ratenumber | null
previous.inquiriesnumber
previous.revenue_centsnumber
revenue_notestring
group_byone of channel, landing_page, event, day, captured_by, campaign
groups[]object[]
groups[].channelstring
groups[].sessionsnumber
groups[].sharenumber
groups[].inquiriesnumber
groups[].conversionnumber | null
groups[].revenue_centsnumber
groups_totaloptionalnumber
limited_fromoptionalstring | null
Schema
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string"
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "previous": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "previous"
      ],
      "additionalProperties": false
    },
    "consent_mode": {
      "type": "string",
      "enum": [
        "cookieless",
        "consent",
        "combined"
      ]
    },
    "consent_rate": {
      "type": [
        "number",
        "null"
      ]
    },
    "consent_note": {
      "type": "string"
    },
    "totals": {
      "type": "object",
      "properties": {
        "visitors": {
          "type": "number"
        },
        "sessions": {
          "type": "number"
        },
        "pageviews": {
          "type": "number"
        },
        "bounce_rate": {
          "type": [
            "number",
            "null"
          ]
        },
        "inquiries": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        }
      },
      "required": [
        "visitors",
        "sessions",
        "pageviews",
        "bounce_rate",
        "inquiries",
        "revenue_cents"
      ],
      "additionalProperties": false
    },
    "previous": {
      "type": "object",
      "properties": {
        "visitors": {
          "type": "number"
        },
        "sessions": {
          "type": "number"
        },
        "pageviews": {
          "type": "number"
        },
        "bounce_rate": {
          "type": [
            "number",
            "null"
          ]
        },
        "inquiries": {
          "type": "number"
        },
        "revenue_cents": {
          "type": "number"
        }
      },
      "required": [
        "visitors",
        "sessions",
        "pageviews",
        "bounce_rate",
        "inquiries",
        "revenue_cents"
      ],
      "additionalProperties": false
    },
    "revenue_note": {
      "type": "string"
    },
    "group_by": {
      "type": "string",
      "enum": [
        "channel",
        "landing_page",
        "event",
        "day",
        "captured_by",
        "campaign"
      ]
    },
    "groups": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "channel": {
                "type": "string"
              },
              "sessions": {
                "type": "number"
              },
              "share": {
                "type": "number"
              },
              "inquiries": {
                "type": "number"
              },
              "conversion": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "revenue_cents": {
                "type": "number"
              }
            },
            "required": [
              "channel",
              "sessions",
              "share",
              "inquiries",
              "conversion",
              "revenue_cents"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "day": {
                "type": "string"
              },
              "sessions": {
                "type": "number"
              },
              "previous_sessions": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "inquiries": {
                "type": "number"
              }
            },
            "required": [
              "day",
              "sessions",
              "previous_sessions",
              "inquiries"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "captured_by": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "inquiries": {
                "type": "number"
              },
              "share": {
                "type": "number"
              },
              "quotes": {
                "type": "number"
              },
              "won": {
                "type": "number"
              },
              "revenue_cents": {
                "type": "number"
              }
            },
            "required": [
              "captured_by",
              "label",
              "inquiries",
              "share",
              "quotes",
              "won",
              "revenue_cents"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "campaign_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sessions": {
                "type": "number"
              },
              "inquiries": {
                "type": "number"
              },
              "quotes": {
                "type": "number"
              },
              "won": {
                "type": "number"
              },
              "revenue_cents": {
                "type": "number"
              }
            },
            "required": [
              "campaign_id",
              "name",
              "slug",
              "sessions",
              "inquiries",
              "quotes",
              "won",
              "revenue_cents"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "sessions": {
                "type": "number"
              },
              "bounce_rate": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "inquiries": {
                "type": "number"
              },
              "conversion": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "quotes": {
                "type": "number"
              },
              "won": {
                "type": "number"
              },
              "revenue_cents": {
                "type": "number"
              }
            },
            "required": [
              "path",
              "sessions",
              "bounce_rate",
              "inquiries",
              "conversion",
              "quotes",
              "won",
              "revenue_cents"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "count": {
                "type": "number"
              },
              "sessions": {
                "type": "number"
              },
              "with_inquiry": {
                "type": "number"
              },
              "conversion": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "type",
              "name",
              "count",
              "sessions",
              "with_inquiry",
              "conversion"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "groups_total": {
      "type": "number"
    },
    "limited_from": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "site",
    "period",
    "consent_mode",
    "totals",
    "revenue_note",
    "group_by",
    "groups"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.