---
title: "Consumer Attribution"
method: GET
path: "/api/v1/gtm/consumers/attribution"
tags: ["GTM - Consumers"]
---

# Consumer Attribution

`GET /api/v1/gtm/consumers/attribution`

## Request

- Base URL: `https://api.gemstoneaiapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gemstoneaiapp.com/api/v1/gtm/consumers/attribution`
- Auth: none declared

Signups in the window grouped by first-touch install attribution.

Attribution is write-once from the Android Play referrer or an attributed
deep link (LNK-ATTR); iOS store installs arrive unattributed, so iOS
per-campaign counts come from App Store Connect campaign tokens instead.
scanned = at least one own scan (outreach scans excluded). paid = latest
subscription paid or cancelled-but-active, from local status only.

## Query parameters

- `days` integer

## Headers

- `x-admin-key` string, nullable

## Response `200`

Successful Response

- ConsumerAttribution
  - `days` integer, required
  - `since` string, date-time, required
  - `total_signups` integer, required
  - `buckets` AttributionBucket[], required
    - `campaign` string, required
    - `source` string, required
    - `medium` string, required
    - `signups` integer, required
    - `scanned` integer, required
    - `paid` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api.md) · [All operations](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/revisions/fcb441f55161?raw)
