Rookery
Rook chases documents

Make an API key

Updated Updated
View as Markdown

An API key lets your own app, script or AI agent work in Rookery. Each key joins your team as its own agent, named after the key. Everything it does shows up under that name, the way Rook's work shows up as Rook.

Make a key

  1. Go to Settings → Developers → API keys. Only owners and admins can open it.
  2. Give the key a Name, after the app that will use it, like "Support bot". A key can't be named after Rook or Rookery, so nobody mistakes an app for Rook.
  3. Under Works on, choose Your real mail, or The sandbox for a test key while you build. A test key sees only the sandbox inbox, and nothing it sends leaves Rookery (Testing and the sandbox).
  4. Under It may, choose what it's allowed to do:
    • Read: conversations, messages, notes, documents and the team
    • Work on conversations: notes, tags, status and assignment
    • Draft replies: drafts wait for a person to approve them
    • Send replies: replies go out after a 10-minute undo window
    • Record app mail: for an app that sends its own email (receipts, shipping updates). It tells Rookery what it sent, so a customer's reply arrives with that email above it. On its own, it reads no mail: a key with only this can record what your app sent and check itself, nothing else, and it never sends anything.
    • Approve drafts: says yes to a draft from Rook or another key as you, never to one this key or you wrote. It's off unless you choose it.
  5. Click Create key.
  6. Copy the key now. It starts with rookery_live_ (or rookery_test_ for a test key), and it won't be shown again. Keep it in your password manager or secret manager, and give it to your app in an environment variable named ROOKERY_API_KEY.

Use the key

Send the key in a header with every request:

Authorization: Bearer rookery_live_…

The API lives at https://app.userookery.com/api/v1. Settings → Developers → API keys shows ready-to-run commands that read the key from ROOKERY_API_KEY, so it never lands in your terminal's history. Every endpoint, with examples in curl, JavaScript and Python, is in the developer docs, where you can try each one with a read-only key.

To check a key works, call GET /api/v1/me: it answers with the key's name and what it may do. Any key can call it, whatever it's allowed to do.

What you can do:

  • List and read conversations, and search them
  • Add internal notes, change status, tag and assign
  • Draft or send replies
  • Ask for documents, with Rookery's upload link and Rook's reminders
  • List inboxes and tags, and search the document library

Revoke a key

  1. In Settings → Developers → API keys, find the key.
  2. Click Revoke. It stops working right away.

Good to know

  • Read comes with Work on conversations, Draft replies, Send replies and Approve drafts, because each starts with reading the conversation. Record app mail doesn't bring it: give your app's sending service a key with only Record app mail, so a leak there can't read your mail.
  • Keys made up to 19 October 2026 with only Read and Record app mail now have Record app mail alone, because Read used to come with it. If your app also needs to read, make a new key with Read and Record app mail.
  • Give each app its own key, with only what it needs. Most start with Read and Draft replies, so a person approves every reply.
  • Drafts from your agents land in Needs your yes, next to Rook's.
  • A key with Approve drafts approves as you, only where you could approve in Rookery, and only in an inbox that lets replies go out without a person. Never on a conversation marked confidential, and never a draft that suggests times from someone's calendar: you approve those in Rookery. The conversation says so: "Maya approved Rook's draft, via key 'Claude Desktop'".
  • Each key can make about 120 requests a minute.
  • The list shows when each key was last used, and the start and last 4 characters of each key, so you can tell them apart.
  • A key marked Old format starts with rk_ and was made before Rookery's own format. It still works. When you can, make a new key for that app, switch the app to it, then revoke the old one.
  • A key with a typo in it is turned away at once, so check you copied all of it.
  • You can't change a key's permissions. Make a new key and revoke the old one.
  • To connect an AI assistant like Claude, see Connect with MCP.
  • To have Rookery tell your other apps when something happens, see Webhooks.
  • Building something? Start with the developer quickstart.