Skip to content

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. Send Content-Type: application/json with a body.
  • PATCH changes only the fields you send. Leave a field out to keep it; send null where the reference says it clears a value.
  • A successful create answers 201, everything else 200. 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_profiles and list_workspaces show what your key reaches.

Lists and pagination

Lists take limit (up to the maximum the operation states) and cursor. They answer a page:

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_status answers the draft's revision and whether anything changed; preview_changes lists the differences.
  • publish_profile and approve_review need expectedRevision. If someone changed the draft since you looked, the answer is revision_conflict and nothing goes live.
  • Changing a username or who can see a page acts on the live page at once, so update_profile asks for confirmLiveChange: true before it does.
  • When a teammate must approve changes, use request_review instead 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.

Create once, even if the network drops
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 for Retry-After seconds. On unavailable or internal_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) with offset to step back, or from and to as YYYY-MM-DD. They go as far back as your plan allows; earlier days answer plan_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:// or http:// (plus mailto: and tel: where a block allows it). Unsafe addresses answer unsafe_url.
  • upload_image takes 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.