Enable instant replies
cooper_enable_instant_repliesUse this when an owner message should wake the agent within seconds. Idempotent. Requires auth. Inputs: inbox_id (required), url (public http or https URL, required unless enabled is false), headers (optional; up to 5 extra headers named Authorization or X-*; omit them on a later call to keep the stored headers; pass an empty object to clear them), enabled (optional boolean; false deletes the wake webhook). Returns {object:"inbox_wake", inbox_id, enabled:true, webhook} on create (HTTP 201, secret revealed once) or update (HTTP 200, secret redacted). enabled false returns {object:"inbox_wake", inbox_id, enabled:false, deleted}. The hook is registered for task.received, owner.reply, and chat.message on that inbox. One owner message produces one POST of task.received. The body includes related [{type, id}] for owner.reply and, for an app message, chat.message. The event log still stores each type. A webhook created with POST /api/v1/webhooks still receives every event it lists. A second call for the same inbox updates the same hook. Localhost and private addresses are rejected. If this client can receive a callback, events/subscribe for message.received is cheaper and needs no URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inbox_id": "<inbox_id>"
},
"name": "cooper_enable_instant_replies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL that receives the wake POST. Required unless enabled is false. | |
| enabled | No | Set false to delete the wake webhook for this inbox. Omit or true to register or update it. | |
| headers | No | Up to 5 extra headers sent on delivery. Names must be Authorization or X-*. Omit to keep stored headers. An empty object clears them. Values are stored encrypted and returned as redacted. | |
| inbox_id | Yes | Inbox id (inb_…), username, or full email address |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | No | Object type name, such as list, message, or thread. | |
| deleted | No | True when the object was deleted. | |
| enabled | No | True when the object is active. | |
| webhook | No | The wake webhook. The secret is shown in full only on create. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. |