Rookery
Developer docsAPI reference
API reference

The Rookery API

Read and work on your inbox from your own code. Every endpoint is a JSON call, made with an API key, that acts as its own teammate.

Every endpoint is under https://app.userookery.com/api/v1. Send your key in the Authorization header. Make one in Settings → Developers → API keys, and see Keys and scopes for what it can see and do.

Try it runs real requests with a key you paste. Make one with only Read to look around safely. Replies are tried as drafts and never sent.

Your first call
curl
curl https://app.userookery.com/api/v1/me \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
Response200
{
  "agent": {
    "type": "agent",
    "id": "agt_3n7q2wv9k4hxm8tr",
    "name": "Support bot"
  },
  "scopes": [
    "read",
    "draft"
  ],
  "livemode": false
}

Your key

Check which agent a key acts as, and what it may do.

Check your key

GET/v1/me

Any keySafe to retry

Returns the agent this key acts as and the scopes it has. A quick way to check a key works: any key may call it, whatever its scopes.

Returns

200 An object.

Fields
  • agentobjectRequired

    The agent the key acts as, named after the key.

    Fields
    • typestringRequired

      One of agent

    • idstringRequired

      The agent's id, like agt_….

    • namestringRequired
  • scopesarray of stringsRequired
  • livemodebooleanRequired

    False for a test key (rookery_test_…, or an old rk_test_…), which works only in the sandbox. True for a live key.

Errors

  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

REST only.

GET/v1/me
curl
curl 'https://app.userookery.com/api/v1/me' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/me", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/me",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
)
data = response.json()
Response200
{
  "agent": {
    "type": "agent",
    "id": "agt_3n7q2wv9k4hxm8tr",
    "name": "Support bot"
  },
  "scopes": [
    "read",
    "draft"
  ],
  "livemode": false
}

Conversations

Find, read and work on conversations: notes, status, tags and assignment.

List conversations

GET/v1/conversations

Needs readSafe to retry

Lists conversations in the inbox's order. Use view for open, waiting, snoozed, closed or all; sort for newest, waited longest or due soonest; query searches all mail text; reference finds the conversations about one of your app's records; screening: pending lists New senders.

You only see what the person who made the key can see: every team inbox, plus their own private inboxes.

Without screening, the list is the inbox: mail waiting in New senders and mail from blocked senders is left out. A query searches all of it, and each result's screening says where it sits. screening: pending lists New senders; blocked lists mail from blocked senders, which arrives closed, so pair it with view: closed.

sort orders it as the inbox's sort menu does. Every sort puts possible phishing first, then goes by priority, and orders within each priority: newest puts Overdue, then At risk, at the top, then newest first; waited puts whoever has waited longest first; due puts the soonest due first, then whoever has waited longest. Ties go by id.

Without sort, it's the inbox's default for that list: waited with assigned: unassigned (the team's queue), newest for the other open and waiting lists. Snoozed is soonest to wake first, and closed is newest first.

reference lists the conversations about one record of your app's, like order_8841, whatever its case: replies to an email your app sent with a plus tag on its reply address (support+order_8841@…), or one it recorded with Record what your app sent. Pair it with view: all to count every reply, done or not. See Send from your app, reply in Rookery.

Results come a page at a time, up to limit (at most 100). When has_more is true, pass next_cursor as cursor, with the same filters, for the next page. A cursor keeps the order it started with, so a page never repeats or skips a conversation that didn't change in between.

Query parameters

  • viewstring

    Which conversations to list. waiting means waiting on them (the people you wrote to); all is every status.

    One of open, waiting, snoozed, closed, all · Default open

  • mailbox_idstring

    Only this inbox: a mbx_… id from list_mailboxes.

  • qstring

    Full-text search.

    Up to 200 characters

  • referencestring

    Only conversations about this reference of your app's, like order_8841, whatever its case.

  • assignedstring

    me means assigned to this agent.

    One of me, unassigned

  • screeningstring

    Only conversations in this place: allowed the inbox, pending New senders, blocked kept out.

    One of allowed, pending, blocked

  • prioritystring

    Only conversations at this priority, counting Rook's suggestion where nobody has set one.

    One of urgent, high, normal, low

  • target_statestring

    Only conversations at this point of their reply target: on_track, at_risk, overdue or none.

    One of on_track, at_risk, overdue, none

  • sortstring

    The order: newest, waited (waited longest first) or due (due soonest first), each within priority. Without it, the inbox's default for the list.

    One of newest, waited, due

  • limitinteger

    How many to return per page, from 1 to 100, in the list's order.

    Default 25 · 1 to 100

  • cursorstring

    next_cursor from the page before, to continue from there. Leave it out for the first page.

    Up to 500 characters

Returns

200 A page of the list: data, has_more and next_cursor (see Pagination).

Fields
  • dataarray of objectsRequired
    Fields in each item
    • idstringRequired

      The conversation's id, like cnv_….

    • subjectstringRequired
    • snippetstringRequired

      The start of the latest message.

    • statusstringRequired

      One of open, waiting, closed

    • contactobjectRequired

      The person outside the team the conversation is with.

      Fields
      • namestringRequired

        Can be null

      • emailstringRequired

        Can be null

      • kindstring

        person for one person's address. relay for a service that passes on other people's messages from one address (name is the service's), team for several people at one company writing from one shared address (name is the team's). Each email still says who signed it.

        One of person, relay, team

    • mailboxobjectRequired

      The inbox it's in.

      Fields
      • idstringRequired

        The inbox's id, like mbx_….

      • namestringRequired
      • addressstringRequired
    • last_message_attimestampRequired

      ISO 8601, UTC.

    • message_countintegerRequired
    • assigneeobjectRequired

      Who the conversation is assigned to, or null.

      Can be null

      Fields
      • typestringRequired

        One of user, agent

      • idstringRequired

        A usr_… or agt_… id.

      • namestringRequired
    • queueobjectRequired

      The group it was handed to, while nobody in it has taken it ("Up for grabs in Billing"). Null otherwise.

      Can be null

      Fields
      • typestringRequired

        One of group

      • idstringRequired

        A grp_… id.

      • namestringRequired
    • tagsarray of stringsRequired
    • topicstringRequired

      The topic Rook sorted it under, or null.

      Can be null

    • referencestringRequired

      Your app's reference it's about, like order_8841: from the plus tag on the address they wrote to (support+order_8841@…, lowercased), or from record_sent. Null for most mail. It says which address they wrote to, not who wrote: check the conversation's contact against your record before acting on it.

      Can be null

    • urgencystringRequired

      Set by Rook when it sorts new mail.

      One of low, normal, high · Can be null

    • priorityobjectRequired

      The conversation's priority.

      Fields
      • levelstringRequired

        urgent, high, normal (the default) or low.

        One of urgent, high, normal, low

      • set_bystringRequired

        Who set it: person (a person or a key), rule (a routing rule), rook (a person kept Rook's suggestion), or null when nobody has.

        One of person, rule, rook, app · Can be null

      • suggestedstringRequired

        Rook's suggestion while nobody has set a priority (only ever high). It already counts for the order of Your turn.

        One of urgent, high, normal, low · Can be null

    • due_attimestampRequired

      When our reply is due by the inbox's reply target for its priority, counted in business hours and paused while snoozed. Null when it isn't waiting on us or there's no target.

      Can be null

    • target_statestringRequired

      Where it stands against its reply target: on_track, at_risk (a quarter of the time left), overdue, or none (no clock).

      One of on_track, at_risk, overdue, none

    • riskstringRequired

      Rook's warning, like phishing, or null when nothing looks wrong.

      Can be null

    • screeningstringRequired

      Where it sits: allowed in the inbox, pending waiting in New senders until someone lets the sender in, or blocked kept out because someone blocked the sender.

      One of allowed, pending, blocked

  • has_morebooleanRequired

    True when there's more after this page: pass next_cursor as cursor to get it.

  • next_cursorstringRequired

    Pass it as cursor for the next page. Null on the last page.

    Can be null

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the read scope. Codes: missing_scope.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: list_conversations. Connect with MCP

GET/v1/conversations
curl
curl 'https://app.userookery.com/api/v1/conversations?view=open&limit=1' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations?view=open&limit=1", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/conversations",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    params={
        "view": "open",
        "limit": 1,
    },
)
data = response.json()
Response200
{
  "data": [
    {
      "id": "cnv_8k2m4q7rx9tbw3hd",
      "subject": "Where is my order?",
      "snippet": "Order 4502 hasn't arrived and the tracking hasn't moved since Monday.",
      "status": "open",
      "contact": {
        "name": "Lee Park",
        "email": "lee@example.com",
        "kind": "person"
      },
      "mailbox": {
        "id": "mbx_6t2k9q4wm8xh3drn",
        "name": "Support",
        "address": "help@yourshop.com"
      },
      "last_message_at": "2026-10-09T14:32:05.000Z",
      "message_count": 2,
      "assignee": null,
      "queue": {
        "type": "group",
        "id": "grp_8k2m4q9wx7hd3rtn",
        "name": "Billing"
      },
      "tags": [
        "shipping"
      ],
      "topic": "order status",
      "reference": "order_4502",
      "urgency": "normal",
      "priority": {
        "level": "high",
        "set_by": "rule",
        "suggested": null
      },
      "due_at": "2026-10-13T13:14:02.118Z",
      "target_state": "on_track",
      "risk": null,
      "screening": "allowed"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJrIjpbMSwyLC0zLC0xNzkxNTU2MzI1MDAwLCJjbnZfOGsybTRxN3J4OXRidzNoZCJdfQ.9f2c4e1a7b3d5f60a8c2e4b6d8f0a1c3"
}

Read a conversation

GET/v1/conversations/{id}

Needs readSafe to retry

Reads a conversation: messages (quoted history removed), internal notes, events, tags and who's on the team.

The timeline is oldest first and mixes three kinds of item: message, note and event. Message text is plain text, with quoted history removed and anything past 8,000 characters cut.

An event a person might question (marked done, reopened, filed, snoozed, assigned, held, put on point) carries why: the reason codes stored when it happened and one sentence written from them. Never a model's guess after the fact: an old change with no stored reason has the code before_reasons.

team lists the people, agents and groups you can assign it to, as the { type, id } references assign_conversation takes.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Returns

200 An object.

Fields
  • idstringRequired

    The conversation's id, like cnv_….

  • subjectstringRequired
  • statusstringRequired

    One of open, waiting, closed

  • mailboxobjectRequired

    The inbox it's in.

    Fields
    • idstringRequired

      The inbox's id, like mbx_….

    • namestringRequired
    • addressstringRequired
  • contactobjectRequired

    The person outside the team the conversation is with.

    Fields
    • namestringRequired

      Can be null

    • emailstringRequired

      Can be null

    • kindstring

      person for one person's address. relay for a service that passes on other people's messages from one address (name is the service's), team for several people at one company writing from one shared address (name is the team's). Each email still says who signed it.

      One of person, relay, team

  • assigneeobjectRequired

    Who the conversation is assigned to, or null.

    Can be null

    Fields
    • typestringRequired

      One of user, agent

    • idstringRequired

      A usr_… or agt_… id.

    • namestringRequired
  • queueobjectRequired

    The group it was handed to, while nobody in it has taken it ("Up for grabs in Billing"). Null otherwise.

    Can be null

    Fields
    • typestringRequired

      One of group

    • idstringRequired

      A grp_… id.

    • namestringRequired
  • on_pointobjectRequired

    Who approves Rook's drafts here (the person on point): who its drafts wait for when nobody is assigned. The assignee, when there is one; null when Rook hasn't worked on it.

    Can be null

    Fields
    • typestringRequired

      One of user

    • idstringRequired

      A usr_… id.

    • namestringRequired
  • tagsarray of stringsRequired
  • topicstringRequired

    The topic Rook sorted it under, or null.

    Can be null

  • referencestringRequired

    Your app's reference it's about, like order_8841: from the plus tag on the address they wrote to (support+order_8841@…, lowercased), or from record_sent. Null for most mail. It says which address they wrote to, not who wrote: check the conversation's contact against your record before acting on it.

    Can be null

  • urgencystringRequired

    Set by Rook when it sorts new mail.

    One of low, normal, high · Can be null

  • priorityobjectRequired

    The conversation's priority.

    Fields
    • levelstringRequired

      urgent, high, normal (the default) or low.

      One of urgent, high, normal, low

    • set_bystringRequired

      Who set it: person (a person or a key), rule (a routing rule), rook (a person kept Rook's suggestion), or null when nobody has.

      One of person, rule, rook, app · Can be null

    • suggestedstringRequired

      Rook's suggestion while nobody has set a priority (only ever high). It already counts for the order of Your turn.

      One of urgent, high, normal, low · Can be null

  • due_attimestampRequired

    When our reply is due by the inbox's reply target for its priority, counted in business hours and paused while snoozed. Null when it isn't waiting on us or there's no target.

    Can be null

  • target_statestringRequired

    Where it stands against its reply target: on_track, at_risk (a quarter of the time left), overdue, or none (no clock).

    One of on_track, at_risk, overdue, none

  • riskstringRequired

    Rook's warning, like phishing, or null when nothing looks wrong.

    Can be null

  • risk_reasonsarray of stringsRequired

    Up to three plain reasons for risk.

  • screeningstringRequired

    Where it sits: allowed in the inbox, pending waiting in New senders until someone lets the sender in, or blocked kept out because someone blocked the sender.

    One of allowed, pending, blocked

  • snoozed_untiltimestampRequired

    Can be null

  • app_sentobjectRequired

    What your app sent that this conversation answers, recorded with record_sent or by a connected sending service. Null for most conversations.

    Can be null

    Fields
    • message_idstringRequired

      The Message-ID it went out with.

    • referencestringRequired

      Can be null

    • toarray of stringsRequired
    • subjectstringRequired
    • sent_attimestampRequired

      ISO 8601, UTC.

    • textstringRequired

      Its words when Rookery has them: sent with record_sent, or fetched from a connected service.

      Can be null

  • timelinearray of objectsRequired
    When type is message
    • type"message"Required
    • idstringRequired

      The message's id, like msg_….

    • attimestampRequired

      ISO 8601, UTC.

    • directionstringRequired

      One of inbound, outbound

    • fromobjectRequired
      Fields
      • namestringRequired

        Can be null

      • emailstringRequired
    • statusstringRequired

      For replies: where it stands. Null for mail that came in. failed: it did not go. unconfirmed: it was handed to the mail service and no answer came back, so it may have reached them; it is never sent again by itself, so check with them before you send it again.

      One of draft, scheduled, sending, sent, failed, unconfirmed · Can be null

    • textstringRequired
    • versionstringRequired

      For a draft (status: draft): an opaque token for its words as you read them here. Pass it as it is to Approve a draft, which needs it and refuses with 409 conflict if the draft was written again since. Don't compute or change it. Null for everything else, and for a draft whose text was cut short: read and approve that one in Rookery.

      Can be null

    • attachmentsarray of objectsRequired
      Fields in each item
      • filenamestringRequired
      • content_typestringRequired
      • sizeintegerRequired
    When type is note
    • type"note"Required
    • idstringRequired
    • attimestampRequired

      ISO 8601, UTC.

    • authorobjectRequired

      Who wrote it: a person, an app, or rook for Rook's answers.

      Fields
      • typestringRequired

        One of person, rule, rook, app

      • idstringRequired

        usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

        Can be null

      • namestringRequired
    • bodystringRequired
    When type is event
    • type"event"Required
    • idstringRequired

      The event's id, like evt_….

    • attimestampRequired

      ISO 8601, UTC.

    • actorobjectRequired

      Who did it: person (someone on the team), rule (a routing rule), rook (Rook, Rookery's helper, including Rookery's own checks) or app (an API key or connected app).

      Fields
      • typestringRequired

        One of person, rule, rook, app

      • idstringRequired

        usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

        Can be null

      • namestringRequired
    • eventstringRequired

      What happened, like assigned or status. New kinds may appear.

    • dataobjectRequired

      The details, which differ by event. Keys are snake_case; new ones may appear.

    • whyobjectRequired

      Why it happened, for changes people ask about (status, assigned, filed, snoozed…); null for the rest.

      Can be null

      Fields
      • codesarray of stringsRequired

        What decided it, from what was stored at the time: person, new_mail, from_a_person, from_a_machine, filed_by_kind, sender_rule, closing_habit, rules (Rookery's code), reader (Rook's model), before_reasons (done before reasons were kept) and more.

      • sentencestringRequired

        One plain sentence, written by code from the codes, naming who did it.

      • bystringRequired

        Who decided: person, rule (a routing rule), rook (Rook, including Rookery's own checks and code) or app (an app a workspace connected).

        One of person, rule, rook, app

  • teamobjectRequired
    Fields
    • peoplearray of objectsRequired
      Fields in each item
      • typestringRequired

        One of user

      • idstringRequired

        A usr_… id.

      • namestringRequired
    • agentsarray of objectsRequired
      Fields in each item
      • typestringRequired

        One of agent

      • idstringRequired

        An agt_… id.

      • namestringRequired
    • groupsarray of objectsRequired

      Groups it can be handed to: someone in each can read it. Never on a private inbox.

      Fields in each item
      • typestringRequired

        One of group

      • idstringRequired

        A grp_… id.

      • namestringRequired

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the read scope. Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: get_conversation. Connect with MCP

GET/v1/conversations/{id}
curl
curl 'https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
)
data = response.json()
Response200
{
  "id": "cnv_8k2m4q7rx9tbw3hd",
  "subject": "Where is my order?",
  "status": "open",
  "mailbox": {
    "id": "mbx_6t2k9q4wm8xh3drn",
    "name": "Support",
    "address": "help@yourshop.com"
  },
  "contact": {
    "name": "Lee Park",
    "email": "lee@example.com",
    "kind": "person"
  },
  "assignee": null,
  "queue": null,
  "on_point": {
    "type": "user",
    "id": "usr_7p3n5r8vz2kd6wtm",
    "name": "Sam"
  },
  "tags": [
    "shipping"
  ],
  "topic": "order status",
  "reference": "order_4502",
  "urgency": "normal",
  "priority": {
    "level": "normal",
    "set_by": null,
    "suggested": "high"
  },
  "due_at": "2026-10-14T09:14:02.118Z",
  "target_state": "on_track",
  "risk": null,
  "risk_reasons": [],
  "screening": "allowed",
  "snoozed_until": null,
  "app_sent": {
    "message_id": "0102019a3c4e-order-4502@mail.yourshop.com",
    "reference": "order_4502",
    "to": [
      "lee@example.com"
    ],
    "subject": "Your order 4502 has shipped",
    "sent_at": "2026-10-06T10:02:00.000Z",
    "text": null
  },
  "timeline": [
    {
      "type": "message",
      "id": "msg_5d9w2k7hq3mx8rtn",
      "at": "2026-10-09T14:32:05.000Z",
      "direction": "inbound",
      "from": {
        "name": "Lee Park",
        "email": "lee@example.com"
      },
      "status": null,
      "text": "Order 4502 hasn't arrived and the tracking hasn't moved since Monday.",
      "version": null,
      "attachments": []
    },
    {
      "type": "note",
      "id": "not_2h8q4w7m9kx3drtb",
      "at": "2026-10-09T14:40:11.000Z",
      "author": {
        "type": "person",
        "id": "usr_4k8m2q9wx7hd3rtn",
        "name": "Jess"
      },
      "body": "Carrier says it's at the depot. @Sam can you check?"
    },
    {
      "type": "event",
      "id": "evt_9k3m7q2wx8hd4rtn",
      "at": "2026-10-10T09:02:44.000Z",
      "actor": {
        "type": "rook",
        "id": null,
        "name": "Rook"
      },
      "event": "status",
      "data": {
        "from": "closed",
        "to": "open"
      },
      "why": {
        "codes": [
          "new_mail",
          "from_a_person"
        ],
        "sentence": "Rook reopened it because Lee wrote again.",
        "by": "rook"
      }
    }
  ],
  "team": {
    "people": [
      {
        "type": "user",
        "id": "usr_4k8m2q9wx7hd3rtn",
        "name": "Jess"
      }
    ],
    "agents": [
      {
        "type": "agent",
        "id": "agt_3n7q2wv9k4hxm8tr",
        "name": "Support bot"
      }
    ],
    "groups": [
      {
        "type": "group",
        "id": "grp_8k2m4q9wx7hd3rtn",
        "name": "Billing"
      }
    ]
  }
}

Add an internal note

POST/v1/conversations/{id}/notes

Needs write

Adds an internal note the team sees and the people you write to never do. Mention people with @FirstName, or a group with its @handle (everyone in it who can read the conversation is told). A note that mentions @Rook asks Rook, Rookery's helper, as the person who made the key: a question is answered in a new note, from only what everyone on the conversation can see; a draft request gets a draft that waits for a person's yes (never sent); a summary is a short note. Sending, deleting and changing settings are refused. The note.answered webhook says what it did.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • bodystringRequired

    The note, as plain text.

    Up to 10,000 characters

Returns

201 An object.

Fields
  • oktrueRequired

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the write scope. Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: add_note. Connect with MCP

POST/v1/conversations/{id}/notes
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/notes \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Tracking shows it'\''s at the depot. @Jess can you call the carrier?"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/notes", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "body": "Tracking shows it's at the depot. @Jess can you call the carrier?"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/notes",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "body": "Tracking shows it's at the depot. @Jess can you call the carrier?",
    },
)
data = response.json()
Response201
{
  "ok": true
}

Change status

POST/v1/conversations/{id}/status

Needs writeSafe to retry

Sets a conversation to open, waiting (on them) or closed.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • statusstringRequired

    The new status. waiting means waiting on them.

    One of open, waiting, closed

Returns

200 An object.

Fields
  • oktrueRequired

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the write scope. Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: set_status. Connect with MCP

POST/v1/conversations/{id}/status
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/status \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "waiting"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/status", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "status": "waiting"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/status",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "status": "waiting",
    },
)
data = response.json()
Response200
{
  "ok": true
}

Tag or untag

POST/v1/conversations/{id}/tags

Needs writeSafe to retry

Adds tags to a conversation, or removes them. New tag names are created.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • addarray of strings

    Tag names to add.

    Up to 10 items

  • removearray of strings

    Tag names to remove.

    Up to 10 items

Returns

200 An object.

Fields
  • oktrueRequired

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the write scope. Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: tag_conversation. Connect with MCP

POST/v1/conversations/{id}/tags
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/tags \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "add": [
    "vip"
  ],
  "remove": [
    "new"
  ]
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/tags", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "add": [
      "vip"
    ],
    "remove": [
      "new"
    ]
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/tags",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "add": [
            "vip",
        ],
        "remove": [
            "new",
        ],
    },
)
data = response.json()
Response200
{
  "ok": true
}

Assign

POST/v1/conversations/{id}/assign

Needs write

Assigns a conversation to a person or agent ({ "type": "user", "id": "usr_…" } or "agent", from get_conversation's team), to yourself with "me", or unassigns with "none". { "type": "group", "id": "grp_…" } hands it to a group: it's up for grabs there, and everyone in the group who can read it is told, until one of them takes it. Add a note to hand it over, as Hand to… does in the app: the person receiving it is put on point too, the note is in their notification, and the timeline says who handed it to whom.

Hand to. With note, it's a hand-off: the person receiving it becomes the person on point (when they can reply there), so Rook's drafts there wait for their yes even if they later unassign it. Their notification carries the note, and the timeline's assign event has handed: true and the note. Handed to Rook (type: agent, the writing helper's id), the note is its instruction for the draft. Handed to a group, the note goes to everyone in it who can read the conversation.

Only someone who can see the conversation's inbox can be given it: a private inbox only to its owner, a restricted inbox only to the people on its list, and a group only when someone in it can.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • toobjectRequired

    Who gets it: { "type": "user" | "agent" | "group", "id": "…" }, or "me" or "none".

    Fields
    • typestringRequired

      One of user, agent, group

    • idstringRequired

      A usr_…, agt_… or grp_… id.

      Up to 80 characters

  • notestring

    A line for whoever receives it, up to 1,000 characters. Makes it a hand-off (Hand to…).

    Up to 1,000 characters

Returns

200 An object.

Fields
  • oktrueRequired

Errors

  • 400Something in the request is missing or not allowed. param names the field. Or: The person, agent or group isn't on the team, or can't see this inbox (a group: nobody in it can), or it's a private inbox and the target is a group. Or: A note with none or me: a hand-off needs someone else to receive it. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the write scope. Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: assign_conversation. Connect with MCP

POST/v1/conversations/{id}/assign
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/assign \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": {
    "type": "user",
    "id": "usr_4k8m2q9wx7hd3rtn"
  },
  "note": "Can you check the VAT on this one?"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/assign", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "to": {
      "type": "user",
      "id": "usr_4k8m2q9wx7hd3rtn"
    },
    "note": "Can you check the VAT on this one?"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/assign",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "to": {
            "type": "user",
            "id": "usr_4k8m2q9wx7hd3rtn",
        },
        "note": "Can you check the VAT on this one?",
    },
)
data = response.json()
Response200
{
  "ok": true
}

Set priority

POST/v1/conversations/{id}/priority

Needs writeSafe to retry

Sets a conversation's priority: urgent, high, normal or low. It decides the order of Your turn. A person's (or a key's) choice wins over routing rules, which only run on new mail.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • levelstringRequired

    urgent, high, normal or low.

    One of urgent, high, normal, low

Returns

200 An object.

Fields
  • oktrueRequired

Errors

  • 400Something in the request is missing or not allowed. param names the field. Or: The key's maker can read this inbox but not reply in it. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the write scope. Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: set_priority. Connect with MCP

POST/v1/conversations/{id}/priority
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/priority \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "level": "urgent"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/priority", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "level": "urgent"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/priority",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "level": "urgent",
    },
)
data = response.json()
Response200
{
  "ok": true
}

Replies

Write to the customer. Replies are drafts for a person to approve unless the key may send.

Reply

POST/v1/conversations/{id}/replies

Needs draftsend to send

Writes a reply on the conversation. Without to or cc it goes to everyone on the latest email, as the reply composer shows it: whoever wrote it in To, the others in Cc, never your own addresses. With send: false (the default) it's a draft a person approves under Needs your yes. With send: true it goes out after a 10-minute undo window; that needs the send scope. To ask for documents, list them in documents: a private upload link and checklist go under the reply, and reminders follow. Don't write the link yourself.

Who it goes to. By default, the person who wrote the latest email is in To and everyone else on it (its From, To and Cc) is in Cc, without repeats and never your own inboxes or aliases. Mailing lists and no-reply or bounce addresses are never copied in. Some replies start with only the sender: a thread of 10 or more people, list or automatic mail, mail about a payment or a sign-in, an inbox set to reply to the sender, and a reply that asks for documents. People a teammate took off replies stay off. The answer says who it goes to in to and cc.

Choosing. Pass to and cc to choose yourself. Each address must already be on the conversation (on any of its emails); to copy in someone new, draft it and let a person add them in the reply.

A draft lands in Needs your yes, next to Rook's, with your summary on top. Nothing reaches them until a person approves it.

With send: true the reply is scheduled and leaves after a 10-minute undo window, during which anyone on the team can stop it.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • bodystringRequired

    The reply, as plain text.

    Up to 50,000 characters

  • sendboolean

    False (the default) makes a draft for a person to approve. True sends it, and needs the send scope.

    Default false

  • tostring

    Who it's to. Defaults to whoever wrote the latest email. Must already be on the conversation.

    Up to 254 characters

  • ccarray of strings

    Who's copied in, in place of the default. [] sends to to alone. Each must already be on the conversation.

    Up to 50 items

  • summarystring

    One line for the person approving: what this reply does.

    Up to 500 characters

  • documentsarray of objects

    Documents to ask them to upload.

    Up to 20 items

    Fields in each item
    • labelstringRequired

      Short name, e.g. 'Proof of purchase'.

      Up to 120 characters

    • descriptionstring

      What counts, in a sentence. Optional.

      Up to 500 characters

    • requiredboolean

      False marks it as nice to have.

      Default true

  • afterstring

    Where the conversation goes once the reply actually leaves: wait (the default) waits on them, done marks it Done, open keeps it open. Applied after the undo window, so stopping the reply changes nothing. On a draft, it's the choice the person approving sees.

    One of wait, done, open

Returns

201 An object.

Fields
  • message_idstringRequired

    The message's id, like msg_….

  • statusstringRequired

    draft waits for a person's yes; scheduled goes out on its own.

    One of draft, scheduled

  • sends_attimestamp

    When a sent reply leaves, after the 10-minute undo window.

  • ask_idstring

    The document request's (the Ask's) id, like req_….

  • notestring

    What happens next, in a sentence.

  • tostring

    Who the reply is to.

  • ccarray of strings

    Who's copied in.

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the draft scope (or send, to send). Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: reply. Connect with MCP

POST/v1/conversations/{id}/replies
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/replies \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Hi Lee, thanks for your patience. Your parcel is at the local depot and should reach you tomorrow.",
  "send": false,
  "summary": "Tells Lee the parcel arrives tomorrow"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/replies", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "body": "Hi Lee, thanks for your patience. Your parcel is at the local depot and should reach you tomorrow.",
    "send": false,
    "summary": "Tells Lee the parcel arrives tomorrow"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/replies",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "body": "Hi Lee, thanks for your patience. Your parcel is at the local depot and should reach you tomorrow.",
        "send": False,
        "summary": "Tells Lee the parcel arrives tomorrow",
    },
)
data = response.json()
Response201
{
  "message_id": "msg_7r3k9w2hq8mx4dtn",
  "status": "draft",
  "note": "Waiting for a person to approve it."
}

Ask for documents

POST/v1/conversations/{id}/document-requests

Needs draftsend to send

Asks the conversation's contact to upload documents through a private page with a checklist; reminders follow on days 2, 4 and 7, and each upload is checked. A draft for approval by default; with send: true (needs the send scope) it goes out after a 10-minute undo window.

Path

  • idstringRequired

    The conversation's id, like cnv_….

Body

  • documentsarray of objectsRequired

    What to ask for: up to 20 items.

    Up to 20 items

    Fields in each item
    • labelstringRequired

      Short name, e.g. 'Proof of purchase'.

      Up to 120 characters

    • descriptionstring

      What counts, in a sentence. Optional.

      Up to 500 characters

    • requiredboolean

      False marks it as nice to have.

      Default true

  • messagestring

    A short note above the checklist. Greet them.

    Up to 5,000 characters

  • due_datestring

    YYYY-MM-DD

    Matches ^\d{4}-\d{2}-\d{2}$

  • sendboolean

    False (the default) makes a draft for a person to approve. True sends it, and needs the send scope.

    Default false

Returns

201 An object.

Fields
  • message_idstringRequired

    The message's id, like msg_….

  • statusstringRequired

    draft waits for a person's yes; scheduled goes out on its own.

    One of draft, scheduled

  • sends_attimestamp

    When a sent reply leaves, after the 10-minute undo window.

  • ask_idstring

    The document request's (the Ask's) id, like req_….

  • notestring

    What happens next, in a sentence.

  • tostring

    Who the reply is to.

  • ccarray of strings

    Who's copied in.

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the draft scope (or send, to send). Codes: missing_scope.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: request_documents. Connect with MCP

POST/v1/conversations/{id}/document-requests
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/document-requests \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "documents": [
    {
      "label": "Proof of purchase"
    },
    {
      "label": "Photo of the damage",
      "required": false
    }
  ],
  "message": "Hi Lee, could you send these so we can sort out the refund?",
  "due_date": "2026-11-01",
  "send": false
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/document-requests", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "documents": [
      {
        "label": "Proof of purchase"
      },
      {
        "label": "Photo of the damage",
        "required": false
      }
    ],
    "message": "Hi Lee, could you send these so we can sort out the refund?",
    "due_date": "2026-11-01",
    "send": false
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/document-requests",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "documents": [
            {
                "label": "Proof of purchase",
            },
            {
                "label": "Photo of the damage",
                "required": False,
            },
        ],
        "message": "Hi Lee, could you send these so we can sort out the refund?",
        "due_date": "2026-11-01",
        "send": False,
    },
)
data = response.json()
Response201
{
  "message_id": "msg_9q2w7k4hx3mr8dtb",
  "status": "draft",
  "note": "Waiting for a person to approve it. The upload link is added when it's approved."
}

Approve a draft

POST/v1/conversations/{id}/drafts/{message_id}/approve

Needs approve

Approves a helper's draft waiting in Needs your yes, as the person who made the key, the way they'd approve it in Rookery. It goes out after the usual undo window, through the Outbox, and the conversation then waits on them. Needs the approve scope. Never a draft this key or that person wrote, never on a confidential conversation, never one that offers times from someone's calendar, and only where that inbox lets replies go out without a person in Rookery.

Find drafts in Read a conversation: timeline messages with status: draft. Pass the conversation's id and the draft's message_id.

The key approves as the person who made it: the reply goes out under their name, and the log says so: “Maya approved Rook's draft, via key ‘Claude Desktop’”.

It's refused (403) when the key or its person wrote the draft, when the conversation is marked confidential, when the draft offers times from someone's calendar (a person approves those in Rookery), and when the inbox's limit for what Rook may send stops at a draft (private inboxes start there). The same checks as in Rookery apply too: a draft on mail Rook is holding, or with blanks to fill in, answers 400.

Approve what you read. version is required: read the conversation first with Read a conversation and pass the draft's version as it is (it's opaque: don't compute it). Without it the approval answers 400. If Rook wrote the draft again after you read it, it's refused with 409 conflict and nothing is sent: read the conversation again and decide on the new words. A draft too long to return in full has version: null, so it can only be approved in Rookery.

Path

  • idstringRequired

    The conversation's id, like cnv_….

  • message_idstringRequired

    The draft's id.

    Matches ^msg_[0-9a-z]+$

Body

  • afterstring

    Where the conversation goes once it leaves. Leave it out to use the helper's own choice for the draft (its reason shows on the card), or wait for a draft without one.

    One of wait, done, open

  • versionstringRequired

    Required. The draft's version from Read a conversation, as it is: the words you read. Refused with 409 conflict if the draft was written again since.

    Up to 64 characters

Returns

200 An object.

Fields
  • message_idstringRequired

    The message's id, like msg_….

  • status"scheduled"Required

    It goes out on its own after the undo window.

  • sends_attimestampRequired

    When it leaves, after the undo window. Until then anyone on the team can stop it.

  • conversation_statusstringRequired

    Where the conversation stands once the reply has gone: waiting unless the draft or after said Done (closed) or Keep open (open). It changes when the reply leaves, after the undo window.

    One of open, waiting, closed

  • afterstringRequired

    The After sending choice it goes with.

    One of wait, done, open · Can be null

Errors

  • 400Something in the request is missing or not allowed. param names the field. Or: No version: read the conversation first and pass the draft's version. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the approve scope. Or: The key or its person wrote the draft, the conversation is confidential, or the inbox needs a person to approve in Rookery. Codes: missing_scope, not_allowed.
  • 404There's no such conversation, or the key can't see it (someone's private inbox). Or: There's no such draft on this conversation. Codes: not_found.
  • 409The draft was written again after you read it (version doesn't match). Codes: conflict.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: approve_draft. Connect with MCP

POST/v1/conversations/{id}/drafts/{message_id}/approve
curl
curl -X POST https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/drafts/msg_7r3k9w2hq8mx4dtn/approve \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "version": "4k.1xq9z3m"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/drafts/msg_7r3k9w2hq8mx4dtn/approve", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "version": "4k.1xq9z3m"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd/drafts/msg_7r3k9w2hq8mx4dtn/approve",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "version": "4k.1xq9z3m",
    },
)
data = response.json()
Response200
{
  "message_id": "msg_7r3k9w2hq8mx4dtn",
  "status": "scheduled",
  "sends_at": "2026-10-09T14:32:20.000Z",
  "conversation_status": "waiting",
  "after": "wait"
}

Try it can't approve drafts: approving sends a real reply. Use a test key from your own code to try it in the sandbox.

Workspace

The inboxes and tags in this workspace.

List mailboxes

GET/v1/mailboxes

Needs readSafe to retry

Lists the inboxes, with how many conversations are open in each.

Query parameters

  • limitinteger

    How many to return per page, from 1 to 100, in name order.

    Default 25 · 1 to 100

  • cursorstring

    next_cursor from the page before, to continue from there. Leave it out for the first page.

    Up to 500 characters

Returns

200 A page of the list: data, has_more and next_cursor (see Pagination).

Fields
  • dataarray of objectsRequired
    Fields in each item
    • idstringRequired

      The mailbox's id, like mbx_….

    • addressstringRequired
    • namestringRequired
    • open_countintegerRequired

      How many conversations are open in it.

    • groupsarray of objectsRequired

      Groups on this inbox's access list, with what each member can do through the group.

      Fields in each item
      • idstringRequired

        A grp_… id.

      • namestringRequired
      • levelstringRequired

        One of read, draft, reply, manage

  • has_morebooleanRequired

    True when there's more after this page: pass next_cursor as cursor to get it.

  • next_cursorstringRequired

    Pass it as cursor for the next page. Null on the last page.

    Can be null

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the read scope. Codes: missing_scope.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: list_mailboxes. Connect with MCP

GET/v1/mailboxes
curl
curl 'https://app.userookery.com/api/v1/mailboxes' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/mailboxes", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/mailboxes",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
)
data = response.json()
Response200
{
  "data": [
    {
      "id": "mbx_6t2k9q4wm8xh3drn",
      "address": "help@yourshop.com",
      "name": "Support",
      "open_count": 12,
      "groups": [
        {
          "id": "grp_8k2m4q9wx7hd3rtn",
          "name": "Billing",
          "level": "reply"
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null
}

List groups

GET/v1/groups

Needs readSafe to retry

Lists the team's groups (like Billing or Support EU): who is in each, and the inboxes you can see that each group can use. Hand a conversation to one with assign_conversation's { "type": "group", "id": "grp_…" }, or mention it in a note as @handle.

Query parameters

  • limitinteger

    How many to return per page, from 1 to 100, in name order.

    Default 25 · 1 to 100

  • cursorstring

    next_cursor from the page before, to continue from there. Leave it out for the first page.

    Up to 500 characters

Returns

200 A page of the list: data, has_more and next_cursor (see Pagination).

Fields
  • dataarray of objectsRequired
    Fields in each item
    • idstringRequired

      The group's id, like grp_….

    • namestringRequired
    • handlestringRequired

      What follows @ in a note: support-eu.

    • membersarray of objectsRequired
      Fields in each item
      • typestringRequired

        One of user

      • idstringRequired

        A usr_… id.

      • namestringRequired
    • inboxesarray of objectsRequired

      Inboxes you can see that the group is on the access list of, with its level there.

      Fields in each item
      • idstringRequired

        A mbx_… id.

      • addressstringRequired
      • levelstringRequired

        One of read, draft, reply, manage

  • has_morebooleanRequired

    True when there's more after this page: pass next_cursor as cursor to get it.

  • next_cursorstringRequired

    Pass it as cursor for the next page. Null on the last page.

    Can be null

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the read scope. Codes: missing_scope.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: list_groups. Connect with MCP

GET/v1/groups
curl
curl 'https://app.userookery.com/api/v1/groups' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/groups", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/groups",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
)
data = response.json()
Response200
{
  "data": [
    {
      "id": "grp_8k2m4q9wx7hd3rtn",
      "name": "Billing",
      "handle": "billing",
      "members": [
        {
          "type": "user",
          "id": "usr_4k8m2q9wx7hd3rtn",
          "name": "Jess"
        }
      ],
      "inboxes": [
        {
          "id": "mbx_6t2k9q4wm8xh3drn",
          "address": "help@yourshop.com",
          "level": "reply"
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null
}

List tags

GET/v1/tags

Needs readSafe to retry

Lists the tags in use and how many conversations have each.

Query parameters

  • limitinteger

    How many to return per page, from 1 to 100, in name order.

    Default 25 · 1 to 100

  • cursorstring

    next_cursor from the page before, to continue from there. Leave it out for the first page.

    Up to 500 characters

Returns

200 A page of the list: data, has_more and next_cursor (see Pagination).

Fields
  • dataarray of objectsRequired
    Fields in each item
    • idstringRequired

      The tag's id, like tag_….

    • namestringRequired
    • conversation_countintegerRequired

      How many conversations have it.

  • has_morebooleanRequired

    True when there's more after this page: pass next_cursor as cursor to get it.

  • next_cursorstringRequired

    Pass it as cursor for the next page. Null on the last page.

    Can be null

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the read scope. Codes: missing_scope.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: list_tags. Connect with MCP

GET/v1/tags
curl
curl 'https://app.userookery.com/api/v1/tags' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/tags", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/tags",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
)
data = response.json()
Response200
{
  "data": [
    {
      "id": "tag_2m8k4q9wx3hd7rtn",
      "name": "shipping",
      "conversation_count": 18
    },
    {
      "id": "tag_9w3k7q2hm4xd8rtb",
      "name": "vip",
      "conversation_count": 4
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Documents

The document library: invoices, receipts, contracts and other files, with what Rook read from them.

Search documents

GET/v1/documents

Needs readSafe to retry

Searches the document library: invoices, receipts, contracts and other files, with extracted fields.

Query parameters

  • qstring

    Words in the title, file name or fields.

    Up to 200 characters

  • kindstring

    Only this kind of document.

    One of invoice, receipt, statement, contract, id, tax, photo, other

  • limitinteger

    How many to return per page, from 1 to 100, newest first.

    Default 25 · 1 to 100

  • cursorstring

    next_cursor from the page before, to continue from there. Leave it out for the first page.

    Up to 500 characters

Returns

200 A page of the list: data, has_more and next_cursor (see Pagination).

Fields
  • dataarray of objectsRequired
    Fields in each item
    • idstringRequired

      The document's id, like doc_….

    • titlestringRequired

      A readable title, or the file name.

    • filenamestringRequired
    • kindstringRequired

      One of invoice, receipt, statement, contract, id, tax, photo, other · Can be null

    • fieldsobjectRequired

      What Rook read from it. Any of these can be missing.

      Fields
      • vendorstring

        Can be null

      • amountnumber

        Can be null

      • currencystring

        Can be null

      • datestring

        Can be null

      • due_datestring

        Can be null

      • referencestring

        Can be null

    • conversation_idstringRequired

      Can be null

    • created_attimestampRequired

      ISO 8601, UTC.

  • has_morebooleanRequired

    True when there's more after this page: pass next_cursor as cursor to get it.

  • next_cursorstringRequired

    Pass it as cursor for the next page. Null on the last page.

    Can be null

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the read scope. Codes: missing_scope.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: search_documents. Connect with MCP

GET/v1/documents
curl
curl 'https://app.userookery.com/api/v1/documents?q=acme&kind=invoice&limit=1' \
  -H "Authorization: Bearer $ROOKERY_API_KEY"
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/documents?q=acme&kind=invoice&limit=1", {
  headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();
Python
import os
import requests

response = requests.get(
    "https://app.userookery.com/api/v1/documents",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    params={
        "q": "acme",
        "kind": "invoice",
        "limit": 1,
    },
)
data = response.json()
Response200
{
  "data": [
    {
      "id": "doc_4h8q2w9k7mx3drtn",
      "title": "Acme Supplies invoice 1182",
      "filename": "INV-1182.pdf",
      "kind": "invoice",
      "fields": {
        "vendor": "Acme Supplies",
        "amount": 412.5,
        "currency": "USD",
        "due_date": "2026-10-30",
        "reference": "1182"
      },
      "conversation_id": "cnv_8k2m4q7rx9tbw3hd",
      "created_at": "2026-10-09T14:32:05.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJrIjpbLTE3OTE1NTYzMjUwMDAsImRvY180aDhxMnc5azdteDNkcnRuIl19.9f2c4e1a7b3d5f60a8c2e4b6d8f0a1c3"
}

Your app's mail

For an app that sends its own mail: tell Rookery what it sent, so replies arrive linked to your records.

Record what your app sent

POST/v1/app-mail

Needs recordSafe to retry

Tells Rookery about an email your app sent through its own sending service (Resend, Postmark, SES or any other): its Message-ID, your reference, who it went to and the subject. When someone it went to replies, the reply threads to it by its headers and starts a conversation with "What your app sent" and your reference. Nothing is sent, and it shows in no inbox until someone replies. Needs the record scope: a key with only that scope can call record_sent and get_me (which shows only the key) and nothing else, so it reads no mail.

Rookery keeps the outline (who, when, subject, Message-ID and reference) for 30 days, and for as long as the conversation once someone replies. A text or html body you send is kept with it, and goes with it. Each workspace keeps up to 50,000 outlines without a reply; past that, the oldest go first.

Recording the same message_id again updates its outline, so a retry is safe. Once someone has replied, the outline is what that conversation shows, so recording it again only fills in what it was missing: the reference, recipients and subject stay as they were.

Only a reply from one of the to addresses (or from someone already on that conversation), signed by its sender's domain (DMARC), starts or joins a conversation with this outline. Anyone else who names its Message-ID gets a conversation of their own, without your reference. Use Message-IDs nobody can guess: the ones Resend, Postmark and SES give are; one built from an order number isn't.

Pass the Message-ID your sending service gave the email, with or without angle brackets: Resend, Postmark and SES each return or set one. Many apps don't need this call at all: a plus tag on the reply address (support+order_4502@…) carries the reference by itself. See Send from your app, reply in Rookery.

A test key records into the sandbox: only replies simulated there can answer it.

Body

  • message_idstringRequired

    The Message-ID it went out with, like <abc123@mail.yourshop.com>.

    Up to 998 characters

  • referencestring

    Your app's id for what it's about, like order_4502. Shown on the conversation and sent with its webhooks.

  • toarray of stringsRequired

    Who it went to.

    Up to 50 items

  • fromstring

    The address it was sent from.

    Up to 254 characters

  • subjectstring

    Its subject.

    Up to 998 characters

  • sent_attimestamp

    When it was sent, ISO 8601. Defaults to now.

  • textstring

    Its words, as plain text. Optional: kept only with the outline.

    Up to 50,000 characters

  • htmlstring

    Or its HTML, kept as plain text. Ignored when text is given.

    Up to 200,000 characters

Returns

201 An object.

Fields
  • idstringRequired

    The outline's id, like aml_….

  • message_idstringRequired

    The Message-ID, without angle brackets.

  • referencestringRequired

    Can be null

  • kept_untiltimestampRequired

    When it goes if nobody replies. Null once someone has.

    Can be null

  • conversation_idstringRequired

    The conversation a reply to it started, once there is one. Only for a key with the read scope that can see that conversation; null otherwise.

    Can be null

  • livemodebooleanRequired

    False when a test key recorded it: it's sandbox data.

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the record scope. Or: The workspace's plan doesn't include the API (it's on Pro and Team). Codes: missing_scope, plan_required.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Codes: rate_limited.

Also an MCP tool: record_sent. Connect with MCP

POST/v1/app-mail
curl
curl -X POST https://app.userookery.com/api/v1/app-mail \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "message_id": "<0102019a3c4e-order-4502@mail.yourshop.com>",
  "reference": "order_4502",
  "to": [
    "lee@example.com"
  ],
  "subject": "Your order 4502 has shipped",
  "sent_at": "2026-10-06T10:02:00.000Z"
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/app-mail", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "message_id": "<0102019a3c4e-order-4502@mail.yourshop.com>",
    "reference": "order_4502",
    "to": [
      "lee@example.com"
    ],
    "subject": "Your order 4502 has shipped",
    "sent_at": "2026-10-06T10:02:00.000Z"
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/app-mail",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "message_id": "<0102019a3c4e-order-4502@mail.yourshop.com>",
        "reference": "order_4502",
        "to": [
            "lee@example.com",
        ],
        "subject": "Your order 4502 has shipped",
        "sent_at": "2026-10-06T10:02:00.000Z",
    },
)
data = response.json()
Response201
{
  "id": "aml_6t2k9q4wm8xh3drn",
  "message_id": "0102019a3c4e-order-4502@mail.yourshop.com",
  "reference": "order_4502",
  "kept_until": "2026-11-05T10:02:01.000Z",
  "conversation_id": null,
  "livemode": true
}

Sandbox

Test keys only: put mail into the sandbox to test against. Everything else works in the sandbox too, with a test key.

Simulate an incoming email

POST/v1/sandbox/inbound

Needs write

Test keys only. Delivers an email to the sandbox inbox through the real pipeline: it's threaded, checked for scams and stored, and webhooks fire to your test endpoints. It comes from a .test address, so the sandbox never touches a real contact. With conversation_id, it's a reply on that sandbox conversation.

Use it to start a test: simulate someone writing in, then read, tag, draft or reply with the same key. Replies to magic .test addresses simulate a bounce, a complaint or a reply.

In the sandbox the helpers don't run (no sorting, drafts or document reading), so the same calls give the same answers every time.

Body

  • fromstringRequired

    Who it's from: an address on .test, like lee@acme.test.

    Up to 254 characters

  • namestring

    Their name, as it shows on the email.

    Up to 100 characters

  • subjectstring

    The subject. Defaults to Re: and the conversation's subject for a reply.

    Up to 500 characters

  • textstringRequired

    The email, as plain text.

    Up to 50,000 characters

  • conversation_idstring

    A sandbox conversation to reply on. Leave it out to start a new conversation.

    Matches ^cnv_[0-9a-z]+$

Returns

201 An object.

Fields
  • conversation_idstringRequired

    The conversation's id, like cnv_….

  • message_idstringRequired

    The new message's id, like msg_….

  • new_conversationbooleanRequired

    True when it started a conversation; false when it joined one.

  • livemodefalseRequired

    Always false: this is sandbox data.

Errors

  • 400Something in the request is missing or not allowed. param names the field. Codes: invalid_request, invalid_json.
  • 401No key, or the key is wrong or revoked. Codes: unauthorized.
  • 403The key doesn't have the write scope. Or: It's a live key. Only test keys can simulate mail. Codes: missing_scope, test_key_only.
  • 404conversation_id isn't a sandbox conversation. Codes: not_found.
  • 429More than about 120 requests in a minute with this key, or more than 10 wrong keys in a minute from one address. Wait for Retry-After seconds, then try again. Or: The sandbox took 120 simulated emails this minute, across all test keys. Codes: rate_limited.

REST only.

POST/v1/sandbox/inbound
curl
curl -X POST https://app.userookery.com/api/v1/sandbox/inbound \
  -H "Authorization: Bearer $ROOKERY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "from": "reply+lee@acme.test",
  "name": "Lee Park",
  "subject": "Where'\''s my order?",
  "text": "Hi, I ordered a lamp last week and haven'\''t heard anything. Order 1182."
}'
JavaScript
const response = await fetch("https://app.userookery.com/api/v1/sandbox/inbound", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.ROOKERY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "from": "reply+lee@acme.test",
    "name": "Lee Park",
    "subject": "Where's my order?",
    "text": "Hi, I ordered a lamp last week and haven't heard anything. Order 1182."
  }),
});
const data = await response.json();
Python
import os
import requests

response = requests.post(
    "https://app.userookery.com/api/v1/sandbox/inbound",
    headers={"Authorization": f"Bearer {os.environ['ROOKERY_API_KEY']}"},
    json={
        "from": "reply+lee@acme.test",
        "name": "Lee Park",
        "subject": "Where's my order?",
        "text": "Hi, I ordered a lamp last week and haven't heard anything. Order 1182.",
    },
)
data = response.json()
Response201
{
  "conversation_id": "cnv_8k2m4q7rx9tbw3hd",
  "message_id": "msg_5k2q8w3hx9mr7dtn",
  "new_conversation": true,
  "livemode": false
}

Webhook events

What Rookery POSTs to your webhook. Every event has the same envelope; these are the fields in each one's data. Set up, verify and retry: Webhooks.

Ask completed

POSTask.completed

Version 1

Everything you asked a client for is in (documents today). Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • ask_idstringRequired

    The Ask, like req_… for a document request.

  • kindstringRequired

    What was asked for. documents today; more kinds will come.

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "ask.completed",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "ask_id": "req_8k2m4q7rx9tbw3hd",
    "kind": "documents",
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "summary": "Everything you asked for is in",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Conversation assigned

POSTconversation.assigned

Version 1

A conversation was given to someone, or to nobody. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • assigneeobjectRequired

    Who has it now, or null when nobody does. A group means it was handed to that group: up for grabs there until someone in it takes it.

    Can be null

    Fields
    • typestringRequired

      One of user, agent, group

    • idstringRequired

      A usr_…, agt_… or grp_… id.

    • namestringRequired

      Can be null

  • assigned_byobjectRequired
    Fields
    • typestringRequired

      person (someone on the team), rule (a routing rule), rook (Rook, Rookery's helper, including Rookery's own checks) or app (an API key or connected app).

      One of person, rule, rook, app

    • idstringRequired

      usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

      Can be null

    • namestringRequired
  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "conversation.assigned",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "assignee": {
      "type": "user",
      "id": "usr_4k8m2q9wx7hd3rtn",
      "name": "Jess"
    },
    "assigned_by": {
      "type": "app",
      "id": "agt_3n7q2wv9k4hxm8tr",
      "name": "Support bot"
    },
    "summary": "Assigned to Jess",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Turn changed

POSTturn.changed

Version 1

Whose turn it is changed: yours, theirs, or done. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • turnstringRequired

    ours: your team's turn. theirs: waiting on them. done: closed.

    One of ours, theirs, done

  • previousstringRequired

    The turn before, or null the first time.

    One of ours, theirs, done · Can be null

  • assigneeobjectRequired

    Who it's assigned to, if anyone.

    Can be null

    Fields
    • typestringRequired

      One of user, agent

    • idstringRequired
    • namestringRequired

      Can be null

  • referencestringRequired

    Your app's reference the conversation is about, like order_8841: from the plus tag your app's reply address carried (support+order_8841@…, lowercased) or from record_sent. Null when there's none. It says which address they wrote to, not who wrote: check the conversation's contact against your record before acting on it.

    Default null · Can be null

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "turn.changed",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "turn": "ours",
    "previous": "theirs",
    "assignee": {
      "type": "user",
      "id": "usr_4k8m2q9wx7hd3rtn",
      "name": "Jess"
    },
    "reference": "order_8841",
    "summary": "Jess's turn",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Draft approved

POSTdraft.approved

Version 1

A person approved a helper's or an agent's draft. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • message_idstringRequired

    The approved reply, like msg_…. It goes out after the undo window.

  • drafted_byobjectRequired

    Who wrote the draft: rook for Rook's, app for a key's, person for a teammate's.

    Fields
    • typestringRequired

      person (someone on the team), rule (a routing rule), rook (Rook, Rookery's helper, including Rookery's own checks) or app (an API key or connected app).

      One of person, rule, rook, app

    • idstringRequired

      usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

      Can be null

  • approved_byobjectRequired
    Fields
    • typestringRequired

      person (someone on the team), rule (a routing rule), rook (Rook, Rookery's helper, including Rookery's own checks) or app (an API key or connected app).

      One of person, rule, rook, app

    • idstringRequired

      usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

      Can be null

    • namestringRequired
  • editedbooleanRequired

    True when the person changed the draft before approving it.

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "draft.approved",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "message_id": "msg_9q2w7k4hx3mr8dtb",
    "drafted_by": {
      "type": "app",
      "id": "agt_3n7q2wv9k4hxm8tr"
    },
    "approved_by": {
      "type": "person",
      "id": "usr_4k8m2q9wx7hd3rtn",
      "name": "Jess"
    },
    "edited": true,
    "summary": "Jess approved a draft",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Email received

POSTmessage.received

Version 1

Someone wrote back on a conversation, by email or on their private page, or answered your app's email; never the first email of any other new conversation. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • message_idstringRequired

    Their message, like msg_….

  • mailbox_idstringRequired

    The inbox it arrived in, like mbx_….

  • securebooleanRequired

    True when they replied on their private page, not by email.

  • referencestringRequired

    Your app's reference the conversation is about, like order_8841: from the plus tag your app's reply address carried (support+order_8841@…, lowercased) or from record_sent. Null when there's none. It says which address they wrote to, not who wrote: check the conversation's contact against your record before acting on it.

    Default null · Can be null

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "message.received",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "message_id": "msg_7h2kq9m3x1c8v5bn",
    "mailbox_id": "mbx_d56zb3gp9g8qj3qt",
    "secure": false,
    "reference": "order_8841",
    "summary": "Dana Wu replied",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Email sent

POSTmessage.sent

Version 1

An email went out. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • message_idstringRequired

    The email that went out, like msg_….

  • mailbox_idstringRequired

    The inbox it went from, like mbx_….

  • authorobjectRequired

    Who wrote it: rook (id null) for Rookery's own mail.

    Fields
    • typestringRequired

      person (someone on the team), rule (a routing rule), rook (Rook, Rookery's helper, including Rookery's own checks) or app (an API key or connected app).

      One of person, rule, rook, app

    • idstringRequired

      usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

      Can be null

  • securebooleanRequired

    True when it was sent privately: the email carried a link to their page, not the message.

  • referencestringRequired

    Your app's reference the conversation is about, like order_8841: from the plus tag your app's reply address carried (support+order_8841@…, lowercased) or from record_sent. Null when there's none. It says which address they wrote to, not who wrote: check the conversation's contact against your record before acting on it.

    Default null · Can be null

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "message.sent",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "message_id": "msg_9q2w7k4hx3mr8dtb",
    "mailbox_id": "mbx_d56zb3gp9g8qj3qt",
    "author": {
      "type": "person",
      "id": "usr_4k8m2q9wx7hd3rtn"
    },
    "secure": false,
    "reference": null,
    "summary": "Email sent",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Booking made

POSTbooking.created

Version 1

Someone booked a time with you. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • booking_idstringRequired
  • booking_type_idstringRequired
  • host_user_idstringRequired

    The person they booked with, like usr_….

  • conversation_idstringRequired

    The conversation it's part of, if any.

    Can be null

  • starts_attimestampRequired
  • ends_attimestampRequired
  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "booking.created",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "booking_id": "bkg_2m8k4q9wx3hd7rtn",
    "booking_type_id": "bkt_6t2k9q4wm8xh3drn",
    "host_user_id": "usr_4k8m2q9wx7hd3rtn",
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "starts_at": "2026-10-14T15:00:00.000Z",
    "ends_at": "2026-10-14T15:30:00.000Z",
    "summary": "Dana Wu booked Intro call",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Booking cancelled

POSTbooking.cancelled

Version 1

A booking was cancelled. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • booking_idstringRequired
  • booking_type_idstringRequired
  • host_user_idstringRequired

    The person they had booked with, like usr_….

  • conversation_idstringRequired

    The conversation it's part of, if any.

    Can be null

  • starts_attimestampRequired
  • ends_attimestampRequired
  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "booking.cancelled",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "booking_id": "bkg_2m8k4q9wx3hd7rtn",
    "booking_type_id": "bkt_6t2k9q4wm8xh3drn",
    "host_user_id": "usr_4k8m2q9wx7hd3rtn",
    "conversation_id": null,
    "starts_at": "2026-10-14T15:00:00.000Z",
    "ends_at": "2026-10-14T15:30:00.000Z",
    "summary": "Dana Wu cancelled Intro call"
  }
}

Held by Rook

POSTconversation.held

Version 1

Rook held a likely scam. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "conversation.held",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "summary": "Held by Rook: The sender asks you to pay a new bank account.",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Rook answered a note

POSTnote.answered

Version 1

Rook answered an @Rook note: a question, a draft for a yes, a summary, or a no. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • conversation_idstringRequired

    The conversation, like cnv_…. Read it with the API.

  • note_idstringRequired

    The note that asked, like not_….

  • reply_note_idstringRequired

    Rook's answer in the thread, like not_…. Null when the draft or its card speaks for itself.

    Can be null

  • intentstringRequired

    What the note asked for. refuse: something Rook doesn't do from a note, like sending or deleting.

    One of question, draft, summary, refuse

  • outcomestringRequired

    What happened. drafted: a draft waits for the asker's yes (it is never sent by itself). asked_back: Rook asked a question before drafting.

    One of answered, not_found, drafted, suggested, asked_back, no_draft, summarized, declined, failed

  • asked_byobjectRequired

    Who wrote the note.

    Fields
    • typestringRequired

      person (someone on the team), rule (a routing rule), rook (Rook, Rookery's helper, including Rookery's own checks) or app (an API key or connected app).

      One of person, rule, rook, app

    • idstringRequired

      usr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.

      Can be null

    • namestringRequired
  • draft_message_idstringRequired

    The draft waiting for a yes, like msg_…, when there is one.

    Can be null

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "note.answered",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "conversation_id": "cnv_zys19vqj63sb1z4v",
    "note_id": "not_6w2k9q4hm8xr3dtn",
    "reply_note_id": "not_3h8m2q7kx9wd4rtb",
    "intent": "draft",
    "outcome": "drafted",
    "asked_by": {
      "type": "person",
      "id": "usr_4k8m2q9wx7hd3rtn",
      "name": "Jess"
    },
    "draft_message_id": "msg_9q2w7k4hx3mr8dtb",
    "summary": "Rook drafted a reply for Jess's yes",
    "url": "https://app.userookery.com/c/cnv_zys19vqj63sb1z4v"
  }
}

Test event

POSTwebhook.test

Version 1

Sent when you press Send test event. Rookery POSTs it to every webhook that ticked it and may see it. See Webhooks for the headers, verification and retries.

Fields in data

  • endpoint_idstringRequired

    The webhook it was sent to, like whk_….

  • summarystringRequired

    One line, in plain words. Never the email's own words. Empty for a conversation marked confidential.

    Up to 200 characters

  • urlstring

    A link to the conversation in Rookery, when there is one.

Example bodyPOST
{
  "id": "evt_4pj6sy63n8spf4h9",
  "type": "webhook.test",
  "version": 1,
  "created_at": "2026-10-13T09:14:02.118Z",
  "workspace_id": "wsp_0qadwjbmg1dw6wws",
  "livemode": true,
  "data": {
    "endpoint_id": "whk_5d9w2k7hq3mx8rtn",
    "summary": "A test event from Rookery. If you can read this, it works."
  }
}