client-reports

POST /v1/client-reports/clients

Add a client, the domains a report covers, who receives it and how often.

All client-reports endpoints

All developer docs →

Authentication

Send an API key as a bearer token. The key must carry the sites.create permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/client-reports/clients \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

⛔ Refused past the clients your plan covers (5 / 25 / 100, plus packs). Empty domains means the report covers everything this account tracks. locale is the CLIENT's language — the report and its e-mail are written in it. Requires sites.create.

Request body

NameTypeRequiredWhat it is
namestringNo—
brand_idobjectNo—
domainsstring[]No—
recipientsstring[]No—
localestringNoThe client's language — any enabled language code.
sectionsClientReportSectionKey[]No—
contact_namestringNo—
notesstringNoYour own notes; never printed.
cadenceClientReportCadenceNo—
send_emailbooleanNo—
activebooleanNo—

Response

NameTypeRequiredWhat it is
idstringYes—
namestringYes—
brand_idobjectYes—
domainsstring[]Yes—
recipientsstring[]Yes—
localestringYes—
sectionsClientReportSectionKey[]Yes—
contact_namestringYes—
notesstringYes—
cadenceClientReportCadenceYes—
send_emailbooleanYes—
activebooleanYes—
next_run_atobjectYes—
last_run_atobjectYes—
created_atstringYes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429