# Multi-Touch Marketing Attribution API

> Multi-Touch Marketing Attribution API is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://api.agentstools.dev/marketing/attribution
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/multi-touch-marketing-attribution-api-ac1e8584
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WFn5VEEkT45La2bOlbwmt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability multi-touch-marketing-attribution-api-ac1e8584 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/multi-touch-marketing-attribution-api-ac1e8584/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
