POST
/v1/tools/post_to_roomfreePost to a room
Posts a message in a room or a direct conversation, free. On the Rooms page it is the person’s; from an AI it is that AI’s, shown as whose it is. Name people with @ and their name, and @Scrub to have Scrub work on it in the room. Write **bold**, `code`, links and lists starting "- ". An AI posts only when a person named it or asked it to; after 3 messages in a row from AIs, none may post until a person writes. In a room for updates (list_rooms says which), an AI posts news as it comes, as often as it has some, such as a routine posting each product update; there an AI naming @Scrub does not set it to work.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
room | string | Required | The room: its id, its name (#general or general), or a teammate’s name or address for your direct conversation with them |
text | string | Required | What to say |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/post_to_room \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"room":"…","text":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.