Skip to Content
REST APIEndpoint Reference

Endpoint Reference

Every v1 endpoint is scoped to the API key’s owner and lives under https://app.synaptyx.pro/api/v1. Most endpoints are read-only GETs; the write surface is POST /events (Server-Side Events) and the dashboard routes below, which let a script or an AI agent build a canvas for you. The interactive explorer at /api/v1/docs lets you try them live.

Full endpoint list

MethodPathScopePurpose
GET/conversionsread:conversionsCursor-paginated conversions (CPA + revenue merged)
GET/conversions/searchsearch:conversionsSubstring search across conversion + click fields
GET/clicksread:clicksCursor-paginated clicks (geo, device, sub-IDs)
GET/campaignsread:campaignsList campaigns (lean — no flow/graph)
GET/campaigns/:idread:campaignsA single campaign
GET/campaigns/searchsearch:campaignsSubstring search across campaigns
GET/offersread:offersList offers
GET/offers/:idread:offersA single offer
GET/landing-pagesread:landing-pagesList landing pages
GET/landing-pages/:idread:landing-pagesA single landing page
GET/traffic-sourcesread:traffic-sourcesList traffic sources
GET/traffic-sources/:idread:traffic-sourcesA single traffic source
GET/stats/overviewread:statsAggregate totals + resource counts over a window
GET/stats/dailyread:statsDaily clicks / conversions / revenue series
GET/reportsread:reportsGrouped performance report (CR, EPC, …)
POST/eventswrite:eventsIngest a server-side event (login/signup/checkout…) — never creates a conversion
GET/dashboardsread:dashboardsList the workspace’s custom dashboards (no layouts)
GET/dashboards/:idread:dashboardsOne dashboard and its full layout
GET/dashboards/schemaread:dashboardsThe builder vocabulary: widget types, options, dimensions, metrics, presets
POST/dashboards/queryread:dashboardsPreview the rows a widget query returns, without saving
POST/dashboardswrite:dashboardsCreate a dashboard (empty, or with a full layout)
PUT/dashboards/:idwrite:dashboardsRename, or replace the whole layout
DELETE/dashboards/:idwrite:dashboardsDelete a dashboard
POST/dashboards/:id/widgetswrite:dashboardsAdd one widget (only type is required)
PATCH/dashboards/:id/widgets/:widgetIdwrite:dashboardsChange one widget (merges into q / opt)
DELETE/dashboards/:id/widgets/:widgetIdwrite:dashboardsRemove one widget

Key parameters

Conversions — GET /conversions

ParamNotes
limit1–200 (default 50)
cursorOpaque pagination cursor
campaign_idFilter to one campaign
statusapproved, pending, declined, hold…
sourcecpa, revenue, or all
from / toDate range
include_test_modeInclude test conversions

Clicks — GET /clicks

ParamNotes
limit, cursorPagination
campaign_id, offer_idFilters
from / toDate range (clickedAt)
convertedOnly converted clicks

Stats — GET /stats/overview & /stats/daily

ParamNotes
days1–90 (default 30)
tzIANA timezone for daily (default UTC)
campaign_idFilter daily to one campaign

Reports — GET /reports

ParamNotes
group_byRequired. One of: campaign, country, device, os, browser, offer, landing, traffic_source, day
days1–365 (default 30)
from / toExplicit range
campaign_idFilter

Reports return up to the top 1,000 buckets, sorted by clicks descending.

Search — /conversions/search, /campaigns/search

ParamNotes
qThe query, 2–100 chars (%/_ are escaped, not wildcards)
fieldsComma-separated whitelist of fields to search
limit, cursorPagination
from / toDate range (conversions search)

Server-side events — POST /events

JSON body (not query params). Full guide: Server-Side Events.

FieldNotes
click_idAttribution key for paid traffic. Must resolve to a click your account owns (else 404). Required unless you send visitor_id.
visitor_id + campaign_idAttribution key for organic / direct traffic (no click). Read visitor_id from the _syx_vid cookie; the campaign must be yours (else 404).
event_nameRequired. ^[a-zA-Z][a-zA-Z0-9_]{0,63}$
value / currencyOptional numeric signal (not revenue) + ISO-4217 currency
propertiesOptional object — max 20 keys, primitive values only
event_idOptional idempotency key (24h dedup window)
timestampOptional ISO-8601; clamped to [now − 30d, now + 5m]

Returns 200 { "accepted": true }. Never writes a conversion.

Dashboards — building a canvas

The order that works, whether you drive it from a script or from Claude through the MCP server:

  1. GET /dashboards/schema — the vocabulary. Every widget type, the options it accepts and their allowed values, the dimensions and metrics of both sources (clicks and pixel), the range presets and the caps. It is generated from the same whitelists the validator uses, so anything it lists is accepted.
  2. POST /dashboards/query — preview. Send { "widgets": [{ "id": "probe", "spec": { … } }] } and read the rows back. Nothing is stored, and a bad spec answers with the same error a save would have given.
  3. POST /dashboards — create, then POST /dashboards/:id/widgets per panel. Only type is required; the id, the placement under the existing widgets and the query defaults are filled in. A day / hour / hourOfDay dimension additionally defaults to dimension order, so an hourly chart reads midnight-to-midnight rather than being ranked by value.
  4. PATCH /dashboards/:id/widgets/:widgetId — tune it. q, opt, g and inherit merge one level deep, so {"opt":{"colors":{"clicks":"#22d3ee"}}} changes a colour and nothing else. A null leaf clears that key.

Every write re-validates the whole document. A rejection names the field: { "error": "unknown_key", "path": "widgets[0].opt.colour", "message": "…" }. A workspace holds at most 20 dashboards and a dashboard at most 40 widgets.

Response shapes

List endpoints return a paginated envelope:

{ "data": [ /* … rows … */ ], "nextCursor": "eyJ0cyI6…", "hasMore": true }

Search endpoints add the query context and per-row match info:

{ "query": "acme", "searchedFields": ["name", "couponCode"], "data": [ { "id": "…", "name": "Acme FR", "matched": true, "matches": [{ "field": "name", "value": "Acme FR" }] } ], "nextCursor": null, "hasMore": false }

Examples

# Last 7 days overview curl "https://app.synaptyx.pro/api/v1/stats/overview?days=7" \ -H "Authorization: ApiKey syx_live_your_key_here" # Conversions for one campaign, paginated curl "https://app.synaptyx.pro/api/v1/conversions?campaign_id=abc&limit=100" \ -H "Authorization: ApiKey syx_live_your_key_here"

Single-item lookups (/:id) return 404 not_found for both nonexistent and not-owned rows — so the API never leaks whether another user’s resource exists.

Next