{"uid":"cap_WFn5VEEkT45La2bOlbwmt","slug":"multi-touch-marketing-attribution-api-ac1e8584","name":"Multi-Touch Marketing Attribution API","description":"Multi-touch attribution over conversion paths, five models at once: first-touch, last-touch, linear, time-decay, and position-based. Returns per-channel credit for each model plus a comparison. Pure computation over your inputs.","url":"https://api.agentstools.dev/marketing/attribution","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"object"},"description":"Conversion journeys; each has a path array of channel touches and optional conversions weight and days_before array"},"halflife_days":{"type":"number","description":"Half-life in days for time-decay, default 7"},"default_spacing_days":{"type":"number","description":"Assumed days between touches when no timestamps are supplied, default 1"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HIEPyqm-pP-Q2s7mnDLFd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes per-channel attribution credit across five models simultaneously (first-touch, last-touch, linear, time-decay, position-based) from a conversion path, returning a side-by-side model comparison.","exampleAgentPrompt":"Run all five attribution models on this conversion path — paid search, then email, then retargeted display, then organic social — and show me how much credit each channel gets under first-touch, last-touch, linear, time-decay, and position-based, plus a side-by-side comparison.","exampleUseCases":[{"title":"E-commerce funnel attribution audit","prompt":"I have a conversion path that went: Google Ads → email nurture → Facebook retargeting → direct visit → purchase. Run all five attribution models and show me how much credit each channel gets — I want to see which model favors paid vs owned channels."},{"title":"Justify marketing budget reallocation","prompt":"Our CFO wants to cut Facebook spend but last-touch says it drives most conversions. Can you run the full multi-touch attribution across first-touch, last-touch, linear, time-decay, and position-based on our typical journey (social ad → blog → email → Facebook ad → convert) so I can show the full picture?"},{"title":"Compare model disagreement for SEM vs SEO","prompt":"I want to see how much first-touch vs position-based attribution disagrees on giving credit to organic search vs paid search in this path: organic search → paid search → email → conversion — run all five models and compare the outputs."}],"resultDescription":"A structured response with per-channel credit allocations for each of the five attribution models (first-touch, last-touch, linear, time-decay, position-based), plus a comparative summary showing how credit distribution differs across models for each channel in the submitted conversion path.","failureModes":["Malformed or empty conversion path returns a 400 validation error","Conversion path with only one touchpoint may cause degenerate model outputs","Missing timestamps on touchpoints breaks time-decay model calculation","Invalid channel names or null entries may cause partial model failures","Exceeding path length limits returns an error indicating max touchpoints"],"whenToPreferThis":"Choose this endpoint when you need to compare multiple attribution models simultaneously rather than computing one at a time. It is ideal for marketing analysts who want a cross-model view in a single call, avoiding five separate API calls. Best when you have structured touchpoint data with timestamps and channel identifiers and need to present stakeholders with a model-agnostic view of channel contribution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:09.755Z","isFirstParty":false}