API reference

Base URL: https://api.salespath.asia/v1. Authenticate with Authorization: Bearer spk_… (create keys in the app under API keys). Limit: 300 requests/minute per key. JSON in, JSON out.

Create / find a contact

POST /v1/contacts
{"email":"a@example.com","name":"Ann","source":"website"}

Record a marketing event

POST /v1/events
{"channel":"newsletter","campaign":"oct-launch","contact_id":"c...","occurred_at":"2026-10-01T08:00:00Z"}
channel: seo | social_organic | social_paid | newsletter | whatsapp | direct | referral | other

Link an anonymous visitor to a contact

Short links append sp_vid to the destination URL. Send it when the visitor identifies themselves.

POST /v1/identify
{"visitor_id":"v...","email":"a@example.com"}

Record a conversion

POST /v1/conversions
{"email":"a@example.com","value_cents":120000,"currency":"SGD"}

Attribution

GET /v1/attribution?model=linear&days=90
models: first_touch, last_touch, linear, time_decay, position

Not yet available

GraphQL, outbound webhooks, MCP connectors, Markov and Shapley models are planned.