Endpoint
Update message
POST/api/public/v1/messages/{message_id}write
Edit drafted message content. Cannot edit a message after it is sent.
Request
curl -X POST "https://sayintel.com/api/public/v1/messages/<message_id>" \
-H "Authorization: Bearer $SAYINTEL_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"content": "<content>"}'Try it out
Try it outPOST/api/public/v1/messages/{message_id}write
Sent as a bearer token to this site only, and kept in this tab's session storage. It is never written to disk or sent anywhere else.
Paste an API key to run.
Path parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| message_id | path | string | yes | — |
Body
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| content | body | string | yes | — |
Response
{
"ok": true,
"tool": "update_message",
"kind": "write",
"data": { ... },
"error": null
}Notes
- Scope required: write. How scopes work.
- Accepts Idempotency-Key. A retry with the same key replays the first result instead of repeating the work.
- Same capability over MCP as the tool update_message. MCP setup.