Delete Message
twake.delete_message
ActionChat & messagingconnection required
Calls the Twake API with the connection's credentials.
Remove a message from a thread permanently.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Twake
- Secret shape
- {"app_id": "…", "app_secret": "…"} — the application's API settings
- Config it needs
- base_url, company_id, workspace_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
thread_id The thread to act on; twake.send_message returns it as 'id'. | string | Yes | — | — | 7f1c9a20-0000-1111-2222-333344445555 |
message_id The message to act on, as returned by twake.reply_to_thread or twake.list_messages. | string | Yes | — | — | 3e2d1c0b-9999-8888-7777-666655554444 |
company_id Twake company to act in; overrides the company set on the connection. | string | No | — | — | a1b2c3d4-1111-2222-3333-444455556666 |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"company_id": "a1b2c3d4-1111-2222-3333-444455556666",
"message_id": "3e2d1c0b-9999-8888-7777-666655554444",
"thread_id": "7f1c9a20-0000-1111-2222-333344445555"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
thread_id The thread the message was removed from. | string | — |
message_id The message that was removed. | string | — |
status The status Twake reported, normally 'success'. | string | — |
deleted True when Twake accepted the removal. | boolean | — |
{
"deleted": false,
"message_id": "",
"status": "",
"thread_id": ""
}See Delete Message run in a workflow.
In a technical demo we add the Twake connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.