Restore record
restore_recordBring back a soft-deleted record by object_type + id — the undo of delete_record, for every type it archives (a quote with its lines, a subscription with its ARR, a file while its contents remain, an email_body by its activity id). List deleted records with search_records({object_type:"deleted_record"}) or read one with get_record(include_archived:true). The same scope as delete_record decides who may restore. Returns the restored record with restored:true.
When to use: The user deleted something by mistake and wants it back.
Example: Restore the contact I deleted by mistake.
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": {
"object_type": "<object_type>",
"id": "<id>"
},
"name": "restore_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A uuid. | |
| object_type | Yes | The deleted record's object_type, e.g. contact, note, quote or a custom key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| record | No | ||
| restored | No |