Start here

# Quickstart

From no key to a published change in about five minutes: make a key, check it, find your page, add a link to the draft, look at what changed and publish it.

## Steps

1. Make a key

Open [Account, API & MCP](https://buzzkit.app/account/developers) and choose **New key**. Pick **Full access** for this guide. The key is shown once; keep it in an environment variable, never in code you commit.

```
# Save the key for new terminals, then for this one
echo 'export BUZZKIT_API_KEY="bk_live_..."' >> ~/.zshrc   # ~/.bashrc on bash
export BUZZKIT_API_KEY="bk_live_..."
```

2. Check who the key is

`GET /me` answers the account behind the key, its plan, the limits that apply and how many requests it made today. Every later example reuses the small helper below.

```
curl https://buzzkit.app/api/agent/me \
  -H "Authorization: Bearer $BUZZKIT_API_KEY"
```

3. Find your page

`GET /profiles` lists the pages the key can reach. Paths take a page's id or its username.

```
curl https://buzzkit.app/api/agent/profiles \
  -H "Authorization: Bearer $BUZZKIT_API_KEY"
```

4. Add a link to the draft

The new link goes to the draft, so visitors do not see it yet. The `Idempotency-Key` makes a retry safe: if the network drops and you send it again, you still get one link.

```
curl -X POST https://buzzkit.app/api/agent/profiles/<username>/links \
  -H "Authorization: Bearer $BUZZKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"type": "link", "title": "Spring drop", "url": "https://shop.example"}'
```

5. See what would go live

The publish status gives the draft's `revision`. The changes list is what a person should see before you publish.

```
curl https://buzzkit.app/api/agent/profiles/<username>/publish \
  -H "Authorization: Bearer $BUZZKIT_API_KEY"

curl https://buzzkit.app/api/agent/profiles/<username>/publish/changes \
  -H "Authorization: Bearer $BUZZKIT_API_KEY"
```

6. Publish

Send the revision you showed. If anyone changed the draft in the meantime, the answer is `revision_conflict` and nothing is published: fetch the status again and show the new changes.

```
curl -X POST https://buzzkit.app/api/agent/profiles/<username>/publish \
  -H "Authorization: Bearer $BUZZKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expectedRevision": "<revision>"}'
```

## If a step fails

- `unauthorized`: the key is missing, mistyped, revoked or expired. Copy it again from a new key.
- `not_found` on your page: the key may be limited to other pages or another workspace, or you have no role on that page.
- `forbidden`: a read-only key, or a viewer or analyst role, tried to change something.
- `rate_limited`: wait for the number of seconds in `Retry-After`.

Every code is listed under [Errors](https://buzzkit.app/docs/errors).

## Where to go next

Prefer an assistant to code?

The same six steps work in plain words once BuzzKit is connected over MCP: ask it to add the link and publish, and it will show you the changes first. [Connect an assistant](https://buzzkit.app/docs/mcp)

- [Recipes](https://buzzkit.app/docs/recipes): a weekly report, a page built from a list, agency work across many pages.
- [API reference](https://buzzkit.app/docs/api): every endpoint with examples in each language.

---

Source: https://buzzkit.app/docs/quickstart
All docs in one file: https://buzzkit.app/llms-full.txt
