---
title: "Which outreach sourced a cohort"
method: GET
path: "/cohorts/attribution"
tags: ["Cohort Analysis"]
---

# Which outreach sourced a cohort

`GET /cohorts/attribution`

First-touch attribution for one cohort: which automations first reached its creators, with each automation's ``creators_sourced`` and ``share`` of the cohort. Single-shop only.

## Query parameters

- `cohort_month` string, date, required — Cohort start month (YYYY-MM-01).
- `product_id` string, nullable — Optional product filter (match the grid).

## Response `200`

Successful Response

- CohortAttributionResponse — Which outreach sourced a cohort, under a first-touch rule.
  - `cohort_month` string, date, required
  - `cohort_size` integer — Total creators in the cohort.
  - `attributed` integer — Cohort members traced to an automation.
  - `unattributed` integer — Cohort members with no automation touch on record — organic, or reached before the 13-month outreach horizon. Reported rather than hidden: a near-total value means the join drifted, not that the shop ran no automations.
  - `automations` CohortAttributionRow[]
    - `automation_id` integer, required
    - `automation_name` string, nullable
    - `automation_type` string, nullable
    - `creators_sourced` integer — Cohort members first touched by this automation.
    - `share` number — creators_sourced as a share of the cohort (0-100).
    - `first_run` string, date, nullable
    - `last_run` string, date, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/reacherapp/apis/reacher-data-api.md) · [All operations](https://skmtc.dev/reacherapp/apis/reacher-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/reacherapp/reacher-data-api/revisions/d4fe3e380424/schema)
