---
title: "Record the campaign that brought this account"
method: POST
path: "/api/me/attribution"
tags: ["me"]
---

# Record the campaign that brought this account

`POST /api/me/attribution`

## Request

- Base URL: `https://api.blackforge.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.blackforge.so/api/me/attribution`
- Auth: none declared

## Request body

- RecordAttributionDto
  - `source` string: utm_source of the visit that led to the signup.
  - `medium` string: utm_medium.
  - `campaign` string: utm_campaign.
  - `content` string: utm_content.
  - `term` string: utm_term.
  - `gclid` string: Google Ads click id. Stored only with marketingConsent.
  - `gbraid` string: Google Ads iOS click id (app-to-web).
  - `wbraid` string: Google Ads iOS click id (web-to-app).
  - `twclid` string: X Ads click id.
  - `marketingConsent` boolean: True only when the visitor allowed the Marketing category on blackforge.so. Without it every click id is discarded and only the campaign tags are kept.

## Response `204`

Accepted (set once).

---

[API](https://skmtc.dev/blackforge/apis/blackforge-data-api.md) · [All operations](https://skmtc.dev/blackforge/apis/blackforge-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/blackforge/apis/blackforge-data-api/revisions/04eadd230b1b?raw)
