Developers
Influvia API
REST API for Enterprise brands · v1
Overview
The Influvia API lets Enterprise brands push conversions server-side, read their campaigns and analytics, and receive webhooks for key events. Base URL: https://influvia.cz. All responses are JSON. The API is available on the Enterprise plan.
Authentication
Create an API key in Settings → API (shown once). Send it on every request as a Bearer token or X-Api-Key header:
Authorization: Bearer cp_xxxxxxxx...
# or
X-Api-Key: cp_xxxxxxxx... Each key has scopes — a request without the required scope returns 403 insufficient_scope. Available scopes: conversions:write, campaigns:read, analytics:read, webhooks:manage. Keys are revoked automatically if the brand leaves the Enterprise plan.
POST /api/v1/conversions
Record a conversion server-side (scope conversions:write). The conversion runs through the same fraud-check + attribution pipeline as the pixel, and can only be attached to a campaign your brand owns.
POST /api/v1/conversions
Content-Type: application/json
{
"campaign_id": "uuid", // or "campaign_slug"
"order_ref": "ORDER-1234", // your order id (idempotency key)
"revenue_cents": 129900, // or "value": 1299.00
"currency": "CZK",
"event_type": "sale",
"attrib_token": "...", // optional — from the Influvia pixel
"discount_code": "CREATOR10" // optional — creator attribution
} Returns 202 {"status":"queued"} (or {"status":"already_processed"} for a repeated order_ref).
GET /api/v1/campaigns
List your campaigns (scope campaigns:read).
GET /api/v1/campaigns?status=live&limit=20&offset=0
{ "data": [ { "id", "title", "slug", "status", "budget_cents",
"currency", "payout_model", "created_at", "live_at", "ended_at" } ],
"pagination": { "limit", "offset", "total" } } GET /api/v1/analytics
Conversion + revenue summary (scope analytics:read). Defaults to the last 30 days; fraud-flagged conversions are excluded.
GET /api/v1/analytics?campaign_id=uuid&since=ISO&until=ISO
{ "since", "until", "campaigns", "conversions",
"revenue_cents", "credited_cents", "currency" } Webhooks
Register endpoints in Settings → API. We POST a JSON body to your URL when a subscribed event fires:
POST your-url
X-Influvia-Event: conversion.recorded
X-Influvia-Signature: <hex hmac-sha256 of the raw body>
{ "event": "conversion.recorded", "created_at": "ISO",
"data": { "campaign_id": "...", "conversion_id": "...", ... } } Events: application.received, campaign.ended, conversion.recorded (more reserved: application.approved, submission.approved, payout.completed).
Verify the signature by computing HMAC-SHA256(raw_body, your_signing_secret) as hex and comparing it (constant-time) to X-Influvia-Signature. The signing secret is shown once when you create the webhook.
Errors
Errors return a JSON {"error":"code"} with an HTTP status: 401 invalid_api_key / expired_api_key, 403 insufficient_scope / api_access_revoked / campaign_not_owned, 404 campaign_not_found, 400 validation_failed.
Support
Questions or higher rate limits? Email [email protected].