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.
curl https://app.userookery.com/api/v1/me \
-H "Authorization: Bearer $ROOKERY_API_KEY"{
"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
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
The agent the key acts as, named after the key. One of The agent's id, like False for a test key (200 An object.Fields
agentobjectRequiredFields
typestringRequiredagentidstringRequiredagt_….namestringRequiredscopesarray of stringsRequiredlivemodebooleanRequiredrookery_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 forRetry-Afterseconds, then try again. Codes:rate_limited.
REST only.
curl 'https://app.userookery.com/api/v1/me' \
-H "Authorization: Bearer $ROOKERY_API_KEY"const response = await fetch("https://app.userookery.com/api/v1/me", {
headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();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(){
"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
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
-
viewstringWhich conversations to list.
waitingmeans waiting on them (the people you wrote to);allis every status.One of
open,waiting,snoozed,closed,all· Defaultopen -
mailbox_idstringOnly this inbox: a
mbx_…id from list_mailboxes. -
qstringFull-text search.
Up to 200 characters
-
referencestringOnly conversations about this reference of your app's, like
order_8841, whatever its case. -
assignedstringmemeans assigned to this agent.One of
me,unassigned -
screeningstringOnly conversations in this place:
allowedthe inbox,pendingNew senders,blockedkept out.One of
allowed,pending,blocked -
prioritystringOnly conversations at this priority, counting Rook's suggestion where nobody has set one.
One of
urgent,high,normal,low -
target_statestringOnly conversations at this point of their reply target:
on_track,at_risk,overdueornone.One of
on_track,at_risk,overdue,none -
sortstringThe order:
newest,waited(waited longest first) ordue(due soonest first), each within priority. Without it, the inbox's default for the list.One of
newest,waited,due -
limitintegerHow many to return per page, from 1 to 100, in the list's order.
Default
25· 1 to 100 -
cursorstringnext_cursorfrom the page before, to continue from there. Leave it out for the first page.Up to 500 characters
Returns
The conversation's id, like The start of the latest message. One of The person outside the team the conversation is with. Can be null Can be null One of The inbox it's in. The inbox's id, like ISO 8601, UTC. Who the conversation is assigned to, or null. Can be null One of A The group it was handed to, while nobody in it has taken it ("Up for grabs in Billing"). Null otherwise. Can be null One of A The topic Rook sorted it under, or null. Can be null Your app's reference it's about, like Can be null Set by Rook when it sorts new mail. One of The conversation's priority. One of Who set it: One of Rook's suggestion while nobody has set a priority (only ever One of 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 Where it stands against its reply target: One of Rook's warning, like Can be null Where it sits: One of True when there's more after this page: pass Pass it as Can be null200 A page of the list: data, has_more and next_cursor (see Pagination).Fields
dataarray of objectsRequiredFields in each item
idstringRequiredcnv_….subjectstringRequiredsnippetstringRequiredstatusstringRequiredopen, waiting, closedcontactobjectRequiredFields
namestringRequiredemailstringRequiredkindstringperson 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.person, relay, teammailboxobjectRequiredFields
idstringRequiredmbx_….namestringRequiredaddressstringRequiredlast_message_attimestampRequiredmessage_countintegerRequiredassigneeobjectRequiredFields
typestringRequireduser, agentidstringRequiredusr_… or agt_… id.namestringRequiredqueueobjectRequiredFields
typestringRequiredgroupidstringRequiredgrp_… id.namestringRequiredtagsarray of stringsRequiredtopicstringRequiredreferencestringRequiredorder_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.urgencystringRequiredlow, normal, high · Can be nullpriorityobjectRequiredFields
levelstringRequiredurgent, high, normal (the default) or low.urgent, high, normal, lowset_bystringRequiredperson (a person or a key), rule (a routing rule), rook (a person kept Rook's suggestion), or null when nobody has.person, rule, rook, app · Can be nullsuggestedstringRequiredhigh). It already counts for the order of Your turn.urgent, high, normal, low · Can be nulldue_attimestampRequiredtarget_statestringRequiredon_track, at_risk (a quarter of the time left), overdue, or none (no clock).on_track, at_risk, overdue, noneriskstringRequiredphishing, or null when nothing looks wrong.screeningstringRequiredallowed in the inbox, pending waiting in New senders until someone lets the sender in, or blocked kept out because someone blocked the sender.allowed, pending, blockedhas_morebooleanRequirednext_cursor as cursor to get it.next_cursorstringRequiredcursor for the next page. Null on the last page.
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thereadscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: list_conversations. Connect with MCP
curl 'https://app.userookery.com/api/v1/conversations?view=open&limit=1' \
-H "Authorization: Bearer $ROOKERY_API_KEY"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();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(){
"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}
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
-
idstringRequiredThe conversation's id, like
cnv_….
Returns
The conversation's id, like One of The inbox it's in. The inbox's id, like The person outside the team the conversation is with. Can be null Can be null One of Who the conversation is assigned to, or null. Can be null One of A The group it was handed to, while nobody in it has taken it ("Up for grabs in Billing"). Null otherwise. Can be null One of A 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 One of A The topic Rook sorted it under, or null. Can be null Your app's reference it's about, like Can be null Set by Rook when it sorts new mail. One of The conversation's priority. One of Who set it: One of Rook's suggestion while nobody has set a priority (only ever One of 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 Where it stands against its reply target: One of Rook's warning, like Can be null Up to three plain reasons for Where it sits: One of Can be null What your app sent that this conversation answers, recorded with Can be null The Message-ID it went out with. Can be null ISO 8601, UTC. Its words when Rookery has them: sent with Can be null The message's id, like ISO 8601, UTC. One of Can be null For replies: where it stands. Null for mail that came in. One of For a draft ( Can be null ISO 8601, UTC. Who wrote it: a One of Can be null The event's id, like ISO 8601, UTC. Who did it: One of Can be null What happened, like The details, which differ by Why it happened, for changes people ask about (status, assigned, filed, snoozed…); null for the rest. Can be null What decided it, from what was stored at the time: One plain sentence, written by code from the codes, naming who did it. Who decided: One of One of A One of An Groups it can be handed to: someone in each can read it. Never on a private inbox. One of A 200 An object.Fields
idstringRequiredcnv_….subjectstringRequiredstatusstringRequiredopen, waiting, closedmailboxobjectRequiredFields
idstringRequiredmbx_….namestringRequiredaddressstringRequiredcontactobjectRequiredFields
namestringRequiredemailstringRequiredkindstringperson 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.person, relay, teamassigneeobjectRequiredFields
typestringRequireduser, agentidstringRequiredusr_… or agt_… id.namestringRequiredqueueobjectRequiredFields
typestringRequiredgroupidstringRequiredgrp_… id.namestringRequiredon_pointobjectRequiredFields
typestringRequireduseridstringRequiredusr_… id.namestringRequiredtagsarray of stringsRequiredtopicstringRequiredreferencestringRequiredorder_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.urgencystringRequiredlow, normal, high · Can be nullpriorityobjectRequiredFields
levelstringRequiredurgent, high, normal (the default) or low.urgent, high, normal, lowset_bystringRequiredperson (a person or a key), rule (a routing rule), rook (a person kept Rook's suggestion), or null when nobody has.person, rule, rook, app · Can be nullsuggestedstringRequiredhigh). It already counts for the order of Your turn.urgent, high, normal, low · Can be nulldue_attimestampRequiredtarget_statestringRequiredon_track, at_risk (a quarter of the time left), overdue, or none (no clock).on_track, at_risk, overdue, noneriskstringRequiredphishing, or null when nothing looks wrong.risk_reasonsarray of stringsRequiredrisk.screeningstringRequiredallowed in the inbox, pending waiting in New senders until someone lets the sender in, or blocked kept out because someone blocked the sender.allowed, pending, blockedsnoozed_untiltimestampRequiredapp_sentobjectRequiredrecord_sent or by a connected sending service. Null for most conversations.Fields
message_idstringRequiredreferencestringRequiredtoarray of stringsRequiredsubjectstringRequiredsent_attimestampRequiredtextstringRequiredrecord_sent, or fetched from a connected service.timelinearray of objectsRequiredWhen
type is messagetype"message"RequiredidstringRequiredmsg_….attimestampRequireddirectionstringRequiredinbound, outboundfromobjectRequiredFields
namestringRequiredemailstringRequiredstatusstringRequiredfailed: 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.draft, scheduled, sending, sent, failed, unconfirmed · Can be nulltextstringRequiredversionstringRequiredstatus: 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.attachmentsarray of objectsRequiredFields in each item
filenamestringRequiredcontent_typestringRequiredsizeintegerRequiredWhen
type is notetype"note"RequiredidstringRequiredattimestampRequiredauthorobjectRequiredperson, an app, or rook for Rook's answers.Fields
typestringRequiredperson, rule, rook, appidstringRequiredusr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.namestringRequiredbodystringRequiredWhen
type is eventtype"event"RequiredidstringRequiredevt_….attimestampRequiredactorobjectRequiredperson (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
typestringRequiredperson, rule, rook, appidstringRequiredusr_… for a person, rul_… for a rule, agt_… for an app or Rook; null for Rookery's own checks.namestringRequiredeventstringRequiredassigned or status. New kinds may appear.dataobjectRequiredevent. Keys are snake_case; new ones may appear.whyobjectRequiredFields
codesarray of stringsRequiredperson, 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.sentencestringRequiredbystringRequiredperson, rule (a routing rule), rook (Rook, including Rookery's own checks and code) or app (an app a workspace connected).person, rule, rook, appteamobjectRequiredFields
peoplearray of objectsRequiredFields in each item
typestringRequireduseridstringRequiredusr_… id.namestringRequiredagentsarray of objectsRequiredFields in each item
typestringRequiredagentidstringRequiredagt_… id.namestringRequiredgroupsarray of objectsRequiredFields in each item
typestringRequiredgroupidstringRequiredgrp_… id.namestringRequired
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thereadscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: get_conversation. Connect with MCP
curl 'https://app.userookery.com/api/v1/conversations/cnv_8k2m4q7rx9tbw3hd' \
-H "Authorization: Bearer $ROOKERY_API_KEY"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();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(){
"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
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
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
bodystringRequiredThe 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.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thewritescope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: add_note. Connect with MCP
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?"
}'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();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(){
"ok": true
}
Change status
POST/v1/conversations/{id}/status
Sets a conversation to open, waiting (on them) or closed.
Path
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
statusstringRequiredThe new status.
waitingmeans waiting on them.One of
open,waiting,closed
Returns
200 An object.Fields
oktrueRequired
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thewritescope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: set_status. Connect with MCP
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"
}'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();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(){
"ok": true
}
Tag or untag
POST/v1/conversations/{id}/tags
Adds tags to a conversation, or removes them. New tag names are created.
Path
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
addarray of stringsTag names to add.
Up to 10 items
-
removearray of stringsTag names to remove.
Up to 10 items
Returns
200 An object.Fields
oktrueRequired
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thewritescope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: tag_conversation. Connect with MCP
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"
]
}'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();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(){
"ok": true
}
Assign
POST/v1/conversations/{id}/assign
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
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
toobjectRequiredWho gets it:
{ "type": "user" | "agent" | "group", "id": "…" }, or"me"or"none".Fields
-
typestringRequiredOne of
user,agent,group -
idstringRequiredA
usr_…,agt_…orgrp_…id.Up to 80 characters
-
-
notestringA 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.paramnames 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: Anotewithnoneorme: 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 thewritescope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: assign_conversation. Connect with MCP
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?"
}'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();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(){
"ok": true
}
Set priority
POST/v1/conversations/{id}/priority
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
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
levelstringRequiredurgent,high,normalorlow.One of
urgent,high,normal,low
Returns
200 An object.Fields
oktrueRequired
Errors
400Something in the request is missing or not allowed.paramnames 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 thewritescope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: set_priority. Connect with MCP
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"
}'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();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(){
"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
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
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
bodystringRequiredThe reply, as plain text.
Up to 50,000 characters
-
sendbooleanFalse (the default) makes a draft for a person to approve. True sends it, and needs the
sendscope.Default
false -
tostringWho it's to. Defaults to whoever wrote the latest email. Must already be on the conversation.
Up to 254 characters
-
ccarray of stringsWho's copied in, in place of the default.
[]sends totoalone. Each must already be on the conversation.Up to 50 items
-
summarystringOne line for the person approving: what this reply does.
Up to 500 characters
-
documentsarray of objectsDocuments to ask them to upload.
Up to 20 items
Fields in each item
-
labelstringRequiredShort name, e.g. 'Proof of purchase'.
Up to 120 characters
-
descriptionstringWhat counts, in a sentence. Optional.
Up to 500 characters
-
requiredbooleanFalse marks it as nice to have.
Default
true
-
-
afterstringWhere the conversation goes once the reply actually leaves:
wait(the default) waits on them,donemarks it Done,openkeeps 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
The message's id, like One of When a sent reply leaves, after the 10-minute undo window. The document request's (the Ask's) id, like What happens next, in a sentence. Who the reply is to. Who's copied in.201 An object.Fields
message_idstringRequiredmsg_….statusstringRequireddraft waits for a person's yes; scheduled goes out on its own.draft, scheduledsends_attimestampask_idstringreq_….notestringtostringccarray of strings
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thedraftscope (orsend, 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: reply. Connect with MCP
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"
}'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();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(){
"message_id": "msg_7r3k9w2hq8mx4dtn",
"status": "draft",
"note": "Waiting for a person to approve it."
}
Ask for documents
POST/v1/conversations/{id}/document-requests
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
-
idstringRequiredThe conversation's id, like
cnv_….
Body
-
documentsarray of objectsRequiredWhat to ask for: up to 20 items.
Up to 20 items
Fields in each item
-
labelstringRequiredShort name, e.g. 'Proof of purchase'.
Up to 120 characters
-
descriptionstringWhat counts, in a sentence. Optional.
Up to 500 characters
-
requiredbooleanFalse marks it as nice to have.
Default
true
-
-
messagestringA short note above the checklist. Greet them.
Up to 5,000 characters
-
due_datestringYYYY-MM-DD
Matches
^\d{4}-\d{2}-\d{2}$ -
sendbooleanFalse (the default) makes a draft for a person to approve. True sends it, and needs the
sendscope.Default
false
Returns
The message's id, like One of When a sent reply leaves, after the 10-minute undo window. The document request's (the Ask's) id, like What happens next, in a sentence. Who the reply is to. Who's copied in.201 An object.Fields
message_idstringRequiredmsg_….statusstringRequireddraft waits for a person's yes; scheduled goes out on its own.draft, scheduledsends_attimestampask_idstringreq_….notestringtostringccarray of strings
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thedraftscope (orsend, 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: request_documents. Connect with MCP
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
}'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();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(){
"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
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
-
idstringRequiredThe conversation's id, like
cnv_…. -
message_idstringRequiredThe draft's id.
Matches
^msg_[0-9a-z]+$
Body
-
afterstringWhere 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
waitfor a draft without one.One of
wait,done,open -
versionstringRequiredRequired. The draft's
versionfrom Read a conversation, as it is: the words you read. Refused with409 conflictif the draft was written again since.Up to 64 characters
Returns
The message's id, like It goes out on its own after the undo window. When it leaves, after the undo window. Until then anyone on the team can stop it. Where the conversation stands once the reply has gone: One of The After sending choice it goes with. One of 200 An object.Fields
message_idstringRequiredmsg_….status"scheduled"Requiredsends_attimestampRequiredconversation_statusstringRequiredwaiting unless the draft or after said Done (closed) or Keep open (open). It changes when the reply leaves, after the undo window.open, waiting, closedafterstringRequiredwait, done, open · Can be null
Errors
400Something in the request is missing or not allowed.paramnames the field. Or: Noversion: read the conversation first and pass the draft'sversion. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have theapprovescope. 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 (versiondoesn'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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: approve_draft. Connect with MCP
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"
}'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();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(){
"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
Lists the inboxes, with how many conversations are open in each.
Query parameters
-
limitintegerHow many to return per page, from 1 to 100, in name order.
Default
25· 1 to 100 -
cursorstringnext_cursorfrom the page before, to continue from there. Leave it out for the first page.Up to 500 characters
Returns
The mailbox's id, like How many conversations are open in it. Groups on this inbox's access list, with what each member can do through the group. A One of True when there's more after this page: pass Pass it as Can be null200 A page of the list: data, has_more and next_cursor (see Pagination).Fields
dataarray of objectsRequiredFields in each item
idstringRequiredmbx_….addressstringRequirednamestringRequiredopen_countintegerRequiredgroupsarray of objectsRequiredFields in each item
idstringRequiredgrp_… id.namestringRequiredlevelstringRequiredread, draft, reply, managehas_morebooleanRequirednext_cursor as cursor to get it.next_cursorstringRequiredcursor for the next page. Null on the last page.
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thereadscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: list_mailboxes. Connect with MCP
curl 'https://app.userookery.com/api/v1/mailboxes' \
-H "Authorization: Bearer $ROOKERY_API_KEY"const response = await fetch("https://app.userookery.com/api/v1/mailboxes", {
headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();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(){
"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
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
-
limitintegerHow many to return per page, from 1 to 100, in name order.
Default
25· 1 to 100 -
cursorstringnext_cursorfrom the page before, to continue from there. Leave it out for the first page.Up to 500 characters
Returns
The group's id, like What follows @ in a note: One of A Inboxes you can see that the group is on the access list of, with its level there. A One of True when there's more after this page: pass Pass it as Can be null200 A page of the list: data, has_more and next_cursor (see Pagination).Fields
dataarray of objectsRequiredFields in each item
idstringRequiredgrp_….namestringRequiredhandlestringRequiredsupport-eu.membersarray of objectsRequiredFields in each item
typestringRequireduseridstringRequiredusr_… id.namestringRequiredinboxesarray of objectsRequiredFields in each item
idstringRequiredmbx_… id.addressstringRequiredlevelstringRequiredread, draft, reply, managehas_morebooleanRequirednext_cursor as cursor to get it.next_cursorstringRequiredcursor for the next page. Null on the last page.
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thereadscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: list_groups. Connect with MCP
curl 'https://app.userookery.com/api/v1/groups' \
-H "Authorization: Bearer $ROOKERY_API_KEY"const response = await fetch("https://app.userookery.com/api/v1/groups", {
headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();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(){
"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
Lists the tags in use and how many conversations have each.
Query parameters
-
limitintegerHow many to return per page, from 1 to 100, in name order.
Default
25· 1 to 100 -
cursorstringnext_cursorfrom the page before, to continue from there. Leave it out for the first page.Up to 500 characters
Returns
The tag's id, like How many conversations have it. True when there's more after this page: pass Pass it as Can be null200 A page of the list: data, has_more and next_cursor (see Pagination).Fields
dataarray of objectsRequiredFields in each item
idstringRequiredtag_….namestringRequiredconversation_countintegerRequiredhas_morebooleanRequirednext_cursor as cursor to get it.next_cursorstringRequiredcursor for the next page. Null on the last page.
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thereadscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: list_tags. Connect with MCP
curl 'https://app.userookery.com/api/v1/tags' \
-H "Authorization: Bearer $ROOKERY_API_KEY"const response = await fetch("https://app.userookery.com/api/v1/tags", {
headers: { Authorization: `Bearer ${process.env.ROOKERY_API_KEY}` },
});
const data = await response.json();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(){
"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
Searches the document library: invoices, receipts, contracts and other files, with extracted fields.
Query parameters
-
qstringWords in the title, file name or fields.
Up to 200 characters
-
kindstringOnly this kind of document.
One of
invoice,receipt,statement,contract,id,tax,photo,other -
limitintegerHow many to return per page, from 1 to 100, newest first.
Default
25· 1 to 100 -
cursorstringnext_cursorfrom the page before, to continue from there. Leave it out for the first page.Up to 500 characters
Returns
The document's id, like A readable title, or the file name. One of What Rook read from it. Any of these can be missing. Can be null Can be null Can be null Can be null Can be null Can be null Can be null ISO 8601, UTC. True when there's more after this page: pass Pass it as Can be null200 A page of the list: data, has_more and next_cursor (see Pagination).Fields
dataarray of objectsRequiredFields in each item
idstringRequireddoc_….titlestringRequiredfilenamestringRequiredkindstringRequiredinvoice, receipt, statement, contract, id, tax, photo, other · Can be nullfieldsobjectRequiredFields
vendorstringamountnumbercurrencystringdatestringdue_datestringreferencestringconversation_idstringRequiredcreated_attimestampRequiredhas_morebooleanRequirednext_cursor as cursor to get it.next_cursorstringRequiredcursor for the next page. Null on the last page.
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thereadscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: search_documents. Connect with MCP
curl 'https://app.userookery.com/api/v1/documents?q=acme&kind=invoice&limit=1' \
-H "Authorization: Bearer $ROOKERY_API_KEY"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();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(){
"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
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_idstringRequiredThe Message-ID it went out with, like
<abc123@mail.yourshop.com>.Up to 998 characters
-
referencestringYour app's id for what it's about, like
order_4502. Shown on the conversation and sent with its webhooks. -
toarray of stringsRequiredWho it went to.
Up to 50 items
-
fromstringThe address it was sent from.
Up to 254 characters
-
subjectstringIts subject.
Up to 998 characters
-
sent_attimestampWhen it was sent, ISO 8601. Defaults to now.
-
textstringIts words, as plain text. Optional: kept only with the outline.
Up to 50,000 characters
-
htmlstringOr its HTML, kept as plain text. Ignored when
textis given.Up to 200,000 characters
Returns
The outline's id, like The Message-ID, without angle brackets. Can be null When it goes if nobody replies. Null once someone has. Can be null The conversation a reply to it started, once there is one. Only for a key with the Can be null False when a test key recorded it: it's sandbox data.201 An object.Fields
idstringRequiredaml_….message_idstringRequiredreferencestringRequiredkept_untiltimestampRequiredconversation_idstringRequiredread scope that can see that conversation; null otherwise.livemodebooleanRequired
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have therecordscope. 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 forRetry-Afterseconds, then try again. Codes:rate_limited.
Also an MCP tool: record_sent. Connect with MCP
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"
}'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();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(){
"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
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
-
fromstringRequiredWho it's from: an address on
.test, likelee@acme.test.Up to 254 characters
-
namestringTheir name, as it shows on the email.
Up to 100 characters
-
subjectstringThe subject. Defaults to
Re:and the conversation's subject for a reply.Up to 500 characters
-
textstringRequiredThe email, as plain text.
Up to 50,000 characters
-
conversation_idstringA sandbox conversation to reply on. Leave it out to start a new conversation.
Matches
^cnv_[0-9a-z]+$
Returns
The conversation's id, like The new message's id, like True when it started a conversation; false when it joined one. Always false: this is sandbox data.201 An object.Fields
conversation_idstringRequiredcnv_….message_idstringRequiredmsg_….new_conversationbooleanRequiredlivemodefalseRequired
Errors
400Something in the request is missing or not allowed.paramnames the field. Codes:invalid_request,invalid_json.401No key, or the key is wrong or revoked. Codes:unauthorized.403The key doesn't have thewritescope. Or: It's a live key. Only test keys can simulate mail. Codes:missing_scope,test_key_only.404conversation_idisn'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 forRetry-Afterseconds, then try again. Or: The sandbox took 120 simulated emails this minute, across all test keys. Codes:rate_limited.
REST only.
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."
}'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();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(){
"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
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_idstringRequiredThe Ask, like
req_…for a document request. -
kindstringRequiredWhat was asked for.
documentstoday; more kinds will come. -
conversation_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
assigneeobjectRequiredWho has it now, or null when nobody does. A
groupmeans it was handed to that group: up for grabs there until someone in it takes it.Can be null
Fields
-
typestringRequiredOne of
user,agent,group -
idstringRequiredA
usr_…,agt_…orgrp_…id. -
namestringRequiredCan be null
-
-
assigned_byobjectRequiredFields
-
typestringRequiredperson(someone on the team),rule(a routing rule),rook(Rook, Rookery's helper, including Rookery's own checks) orapp(an API key or connected app).One of
person,rule,rook,app -
idstringRequiredusr_…for a person,rul_…for a rule,agt_…for an app or Rook; null for Rookery's own checks.Can be null
-
namestringRequired
-
-
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
turnstringRequiredours: your team's turn.theirs: waiting on them.done: closed.One of
ours,theirs,done -
previousstringRequiredThe turn before, or null the first time.
One of
ours,theirs,done· Can be null -
assigneeobjectRequiredWho it's assigned to, if anyone.
Can be null
Fields
-
typestringRequiredOne of
user,agent -
idstringRequired -
namestringRequiredCan be null
-
-
referencestringRequiredYour 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 fromrecord_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 -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
message_idstringRequiredThe approved reply, like
msg_…. It goes out after the undo window. -
drafted_byobjectRequiredWho wrote the draft:
rookfor Rook's,appfor a key's,personfor a teammate's.Fields
-
typestringRequiredperson(someone on the team),rule(a routing rule),rook(Rook, Rookery's helper, including Rookery's own checks) orapp(an API key or connected app).One of
person,rule,rook,app -
idstringRequiredusr_…for a person,rul_…for a rule,agt_…for an app or Rook; null for Rookery's own checks.Can be null
-
-
approved_byobjectRequiredFields
-
typestringRequiredperson(someone on the team),rule(a routing rule),rook(Rook, Rookery's helper, including Rookery's own checks) orapp(an API key or connected app).One of
person,rule,rook,app -
idstringRequiredusr_…for a person,rul_…for a rule,agt_…for an app or Rook; null for Rookery's own checks.Can be null
-
namestringRequired
-
-
editedbooleanRequiredTrue when the person changed the draft before approving it.
-
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
message_idstringRequiredTheir message, like
msg_…. -
mailbox_idstringRequiredThe inbox it arrived in, like
mbx_…. -
securebooleanRequiredTrue when they replied on their private page, not by email.
-
referencestringRequiredYour 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 fromrecord_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 -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
message_idstringRequiredThe email that went out, like
msg_…. -
mailbox_idstringRequiredThe inbox it went from, like
mbx_…. -
authorobjectRequiredWho wrote it:
rook(id null) for Rookery's own mail.Fields
-
typestringRequiredperson(someone on the team),rule(a routing rule),rook(Rook, Rookery's helper, including Rookery's own checks) orapp(an API key or connected app).One of
person,rule,rook,app -
idstringRequiredusr_…for a person,rul_…for a rule,agt_…for an app or Rook; null for Rookery's own checks.Can be null
-
-
securebooleanRequiredTrue when it was sent privately: the email carried a link to their page, not the message.
-
referencestringRequiredYour 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 fromrecord_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 -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe person they booked with, like
usr_…. -
conversation_idstringRequiredThe conversation it's part of, if any.
Can be null
-
starts_attimestampRequired -
ends_attimestampRequired -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe person they had booked with, like
usr_…. -
conversation_idstringRequiredThe conversation it's part of, if any.
Can be null
-
starts_attimestampRequired -
ends_attimestampRequired -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe conversation, like
cnv_…. Read it with the API. -
note_idstringRequiredThe note that asked, like
not_…. -
reply_note_idstringRequiredRook's answer in the thread, like
not_…. Null when the draft or its card speaks for itself.Can be null
-
intentstringRequiredWhat the note asked for.
refuse: something Rook doesn't do from a note, like sending or deleting.One of
question,draft,summary,refuse -
outcomestringRequiredWhat 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_byobjectRequiredWho wrote the note.
Fields
-
typestringRequiredperson(someone on the team),rule(a routing rule),rook(Rook, Rookery's helper, including Rookery's own checks) orapp(an API key or connected app).One of
person,rule,rook,app -
idstringRequiredusr_…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_idstringRequiredThe draft waiting for a yes, like
msg_…, when there is one.Can be null
-
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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
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_idstringRequiredThe webhook it was sent to, like
whk_…. -
summarystringRequiredOne line, in plain words. Never the email's own words. Empty for a conversation marked confidential.
Up to 200 characters
-
urlstringA link to the conversation in Rookery, when there is one.
{
"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."
}
}