Forms
Form submissions as their own outcome: people, submissions and who booked, credited to campaigns, ad sets and ads under the client's attribution model.
A form submission is its own outcome in Atribu (form_submitted), apart from
leads: GoHighLevel forms and surveys, the Atribu tracker's form submits, and
forms a partner posts to POST /api/v1/events. Two
reads count them.
One counted form per person per 48 hours
The same submission often reaches Atribu by more than one path (the
GoHighLevel webhook, the tracker, your own POST /api/v1/events). Atribu
keeps one counted form per person per 48 hours, whichever paths reported
it: the person's earliest form opens a 48-hour window, every other form
inside it is stored but not counted, and the first form after the window
counts again. Both reads say so in meta.counted_rule: "one_per_person_per_48h".
Forms are never exported
No Conversion Sync rule sends a form to Meta, Google or any ad platform — these endpoints are reads. Forms are also not in any other total: lead counts, conversions, attribution coverage and Top Performers are unchanged.
Which ad gets the credit. The attribution model decides it. Pass model
(last_touch, first_touch, linear, time_decay, last_non_direct or
atribu); omitted, the profile's own model answers (its
default_attribution_model, what GET /api/v1/profile returns) — not
last_touch. meta.model says which model answered and meta.model_source
whether it came from the request (request) or the profile
(profile_default). Per form, the winning campaign is the one with the highest
summed credit (then a direct touch over an inherited one, then the latest
touch, then the lowest id) — the rule of
GET /api/v1/conversions/attribution — and within it
the ad set, and within that the ad, by the same rule.
Scope: analytics:read for both. Backfilled (historical) forms are
included: they are display data. No name, email or phone is ever returned.
Form totals
GET /api/v1/formsParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date_from | string | Yes | First day, YYYY-MM-DD, in the profile's timezone. |
date_to | string | Yes | Last day, inclusive. At most 366 days after date_from. |
model | string | No | Attribution model. Omitted: the profile's own model. |
grain | string | No | total (default) or day. |
group_by | string | No | none (default), campaign, ad_set or ad. |
Request
curl -H "Authorization: Bearer atb_live_YOUR_KEY" \
"https://api.atribu.app/api/v1/forms?date_from=2026-11-01&date_to=2026-11-30&group_by=campaign"Response
{
"data": [
{
"date": null,
"unattributed": false,
"campaign_external_id": "120200000000000001",
"campaign_name": "Implants — Form",
"ad_set_external_id": null,
"ad_set_name": null,
"ad_external_id": null,
"ad_name": null,
"people": 12,
"submissions": 13,
"booked": 3
},
{
"date": null,
"unattributed": true,
"campaign_external_id": null,
"campaign_name": null,
"ad_set_external_id": null,
"ad_set_name": null,
"ad_external_id": null,
"ad_name": null,
"people": 4,
"submissions": 4,
"booked": 0
}
],
"meta": {
"model": "first_touch",
"model_source": "profile_default",
"timezone": "America/Santiago",
"counted_rule": "one_per_person_per_48h",
"pending_forms": 0,
"credit_complete": true,
"grain": "total",
"group_by": "campaign",
"date_from": "2026-11-01",
"date_to": "2026-11-30",
"profile_id": "00000000-0000-4000-8000-0000000000aa"
}
}Response fields
| Field | Type | Description |
|---|---|---|
date | string | null | The day at grain=day; null at grain=total. |
unattributed | boolean | The row of forms no campaign gets credit for under the model. Only with a group_by. |
campaign_external_id | string | null | With group_by campaign, ad set or ad. |
ad_set_external_id | string | null | With group_by ad set or ad. null on an attributed row when the credited touches carry no ad set id. |
ad_external_id | string | null | With group_by=ad. |
*_name | string | null | The current name, else the name on the touch, else the id. |
people | integer | Distinct people with a counted form. Each person sits in ONE row — the day and group of their first form in the window — so people across rows sums to the total. |
submissions | integer | Counted forms, each in its own credited group and day. |
booked | integer | People of the row with a booked appointment (not cancelled) at or after their first form. |
No "wrote". Whether the person later started a conversation is not returned.
Atribu keeps one lead_created per person, so a conversation lead that arrives
after a GoHighLevel form's own lead is merged into it and leaves no trace, and
a partner linked as a guest cannot send a conversation event: the number would
be systematically low. Compute "of which wrote" from your own conversations.
Not final while meta.credit_complete is false. A new form is credited by
the next recompute of its profile (normally minutes). Until then it is counted
in the unattributed row and in meta.pending_forms. credit_complete is
true only when nothing is pending AND Atribu's change scan is current (it has
scanned the profile, was not stopped at a cap, and nothing was written after a
scan older than 30 minutes). Do not present the
attribution — in particular the unattributed row as "not from ads" — as final
while credit_complete is false.
People with a form
GET /api/v1/forms/peopleOne row per person with a counted form in the window, newest first form first.
credited is the campaign, ad set and ad that win the credit of the person's
first form in the window under model.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date_from | string | Yes | First day, YYYY-MM-DD, profile timezone. |
date_to | string | Yes | Last day, inclusive. |
model | string | No | Attribution model. Omitted: the profile's own model. |
external_customer_ids | string | No | Comma-separated ids (your user_traits.external_id) to narrow to; also external_customer_id= repeated. At most 500. |
limit | integer | No | People per page, 1–1000. Defaults to 200. |
cursor | string | No | pagination.cursor from the previous page, unchanged. |
Response
{
"data": [
{
"external_customer_id": "contact_8812",
"first_form_at": "2026-11-20T14:03:11+00:00",
"last_form_at": "2026-11-20T14:03:11+00:00",
"submissions": 1,
"credited": {
"campaign": { "external_id": "120200000000000001", "name": "Implants — Form" },
"ad_set": { "external_id": "120200000000000101", "name": "Santiago 30-55" },
"ad": { "external_id": "120200000000001001", "name": "Testimonial video" }
}
}
],
"pagination": { "has_next": false },
"meta": {
"model": "first_touch",
"model_source": "profile_default",
"timezone": "America/Santiago",
"counted_rule": "one_per_person_per_48h",
"pending_forms": 0,
"credit_complete": true,
"date_from": "2026-11-01",
"date_to": "2026-11-30",
"profile_id": "00000000-0000-4000-8000-0000000000aa"
}
}| Field | Type | Description |
|---|---|---|
external_customer_id | string | null | Your own id for the person (primary first, then the oldest). null when the person never carried one. |
first_form_at | string | The person's first counted form in the window. |
last_form_at | string | The person's last counted form in the window. |
submissions | integer | Counted forms in the window. |
credited | object | campaign, ad_set, ad — each { external_id, name } or null. All null when no campaign gets the credit. |
While pagination.has_next is true, pass pagination.cursor back as cursor
with the same date_from / date_to. The order is (first_form_at
descending, an opaque person key): a person who sends a first form while you
page sorts BEFORE the pages already read, so nothing is skipped or repeated;
only a person merge or a backdated earlier form can move someone between
pages. The cursor is opaque (it carries no customer or visitor id) and also
pins the model of the first page, so a walk stays consistent if the profile's model changes
mid-walk. An id this profile does not know returns no row.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_parameter | A missing or malformed date, an unknown model, grain or group_by, limit outside 1–1000, more than 500 ids, a cursor this endpoint did not issue or from another window or model. |
| 400 | invalid_date_range | date_from after date_to, or a span over 366 days. |
| 401 | — | Missing or invalid key. |
| 403 | insufficient_scope | The key does not hold analytics:read. |
A key reads only its own profile. A partner app linked to a clinic's profile as a guest reads that clinic's forms and nothing else.