> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finseo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Attribution erstellen

Erfasse eine selbstberichtete Attributionsantwort. Damit trackst du, wie Kunden deine Brand entdeckt haben — über AI Search, Organic, Social, Ads, Referrals oder einen beliebigen eigenen Kanal.

Benötigt den `write`-Scope auf deinem API-Key.

<ParamField path="projectId" type="string" required>
  Die Projekt-ID.
</ParamField>

<ParamField body="channelId" type="string" required>
  ID des Attributionskanals. Nutze Standard-IDs wie `ai_search`, `ai_chatgpt`, `ai_perplexity`, `google_search`, `social_media`, `paid_ads`, `referral`, `content` — oder einen beliebigen eigenen String.
</ParamField>

<ParamField body="respondentEmail" type="string">
  E-Mail-Adresse des Leads.
</ParamField>

<ParamField body="respondentName" type="string">
  Vollständiger Name des Leads.
</ParamField>

<ParamField body="respondentExternalId" type="string">
  Externe ID aus deinem CRM oder System.
</ParamField>

<ParamField body="dealValue" type="number">
  Umsatzbetrag, der diesem Lead zugeordnet wird.
</ParamField>

<ParamField body="dealCurrency" type="string" default="USD">
  ISO-Währungscode.
</ParamField>

<ParamField body="formId" type="string">
  ID des Quell-Formulars (z. B. Typeform form\_id, HubSpot-Formular-ID).
</ParamField>

<ParamField body="pageUrl" type="string">
  URL der Seite, auf der das Formular abgeschickt wurde.
</ParamField>

<ParamField body="metadata" type="object">
  Zusätzliche eigene Daten als Key-Value-Paare.
</ParamField>

<RequestExample>
  ```bash cURL theme={"system"}
  curl --request POST \
    --url https://api.finseo.ai/v1/projects/PROJECT_ID/attribution \
    --header 'Authorization: Bearer sk_live_xxxxxxxx' \
    --header 'Content-Type: application/json' \
    --data '{
      "channelId": "ai_search",
      "respondentEmail": "jane@company.com",
      "respondentName": "Jane Smith",
      "dealValue": 12000,
      "dealCurrency": "EUR",
      "formId": "signup_form_v2",
      "pageUrl": "https://example.com/signup"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={"system"}
  {
    "data": {
      "id": "a1b2c3d4-...",
      "channel_id": "ai_search",
      "channel_label": "AI Search (ChatGPT, Perplexity, etc.)",
      "channel_category": "ai_search",
      "respondent_email": "jane@company.com",
      "deal_value": 12000,
      "source": "api",
      "created_at": "2026-03-15T10:30:00Z"
    }
  }
  ```
</ResponseExample>
