Concepts
How requests work
The rules every endpoint follows: addresses, ids and usernames, lists, retries, dates, and how the draft becomes the live page.
Requests and answers
- Base URL
https://buzzkit.app/api/agent. Requests and answers are JSON with camelCase field names. SendContent-Type: application/jsonwith a body. PATCHchanges only the fields you send. Leave a field out to keep it; sendnullwhere the reference says it clears a value.- A successful create answers
201, everything else200. A delete answers{ "deleted": true, "id": "..." }; an action with nothing to return answers{ "ok": true }. - Every answer carries
X-Request-Id. Quote it when you contact support. - There is one version of the API: the one documented here. It changes with the site, and the OpenAPI document always describes what the server runs now.
Pages, ids and usernames
- Ids are UUIDs. Where a path has
{profileId}, you can also send the page's username, as in/profiles/jane/links. - Other ids in a path (a link, a product, a subscriber) must belong to that page. One from another page answers
not_found, never someone else's data. list_profilesandlist_workspacesshow what your key reaches.
Lists and pagination
Lists take limit (up to the maximum the operation states) and cursor. They answer a page:
{
"data": [ ... ],
"nextCursor": "eyJpZCI6..."
}Pass nextCursor back as cursor for the next page, with the same filters. null means there is nothing more. A cursor is opaque: do not build or edit one.
The draft and publishing
- Changes to links, blocks, the profile and the design go to the page's draft. Visitors see the live version until it is published.
get_publish_statusanswers the draft'srevisionand whether anything changed;preview_changeslists the differences.publish_profileandapprove_reviewneedexpectedRevision. If someone changed the draft since you looked, the answer isrevision_conflictand nothing goes live.- Changing a username or who can see a page acts on the live page at once, so
update_profileasks forconfirmLiveChange: truebefore it does. - When a teammate must approve changes, use
request_reviewinstead of publishing.
Retries and idempotency
Operations that create something accept an Idempotency-Key header (8 to 64 characters, for example a UUID you make). For 24 hours, a retry with the same key and body returns the first answer with Idempotent-Replayed: true instead of creating twice.
curl -X POST https://buzzkit.app/api/agent/profiles/<username>/links \
-H "Authorization: Bearer $BUZZKIT_API_KEY" \
-H "Idempotency-Key: 6f1d2c9e-0b7a-4d1e-9a52-3c1f0e8b7d44" \
-H "Content-Type: application/json" \
-d '{"type": "link", "title": "Shop", "url": "https://example.com"}'- The same key with a different body answers
conflict; so does a second call while the first is still running. - Endpoints marked Repeatable in the reference end in the same state however often they run, so they need no Idempotency-Key.
- On
rate_limited, wait forRetry-Afterseconds. Onunavailableorinternal_error, retry later with the same Idempotency-Key.
Dates, times and numbers
- Times are ISO 8601 in UTC, like
2026-11-16T09:30:00.000Z. Show them in your reader's own time zone. - Analytics take
days(7, 30, 90 or 365) withoffsetto step back, orfromandtoasYYYY-MM-DD. They go as far back as your plan allows; earlier days answerplan_limit. - Analytics are approximate: visitors are counted without cookies and bots are left out, as on the dashboard.
- Prices are whole minor units (
priceCents: 1500 is 15.00).
Links and pictures
- Link addresses must be
https://orhttp://(plusmailto:andtel:where a block allows it). Unsafe addresses answerunsafe_url. upload_imagetakes a public address that BuzzKit fetches, or base64 up to 10 MB. Pictures are re-encoded and stored by BuzzKit; use the address it returns.
More in errors and limits.
AI agents? Read this page as Markdown, or the API as OpenAPI.