POST
/v1/tools/share_to_roomfreeShare to a room
Shares a job of this workspace in a room or a direct conversation, free: a message showing the job, with words of your own if you like. From an AI it is that AI’s, shown as whose it is.
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 |
job | string | Required | The job’s id |
text | string | None | What to say with it |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/share_to_room \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"room":"…","job":"…"}'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.