Restore record
restore_recordBring back a soft-deleted contact or account by object_type + id — the undo of delete_record. Both come back whole: a contact with its account links and touch / note / task history intact (delete retains them), an account with its contacts, opportunities, subscriptions, touches, notes and tasks linked again (they kept their account_id). Only contact and account restore (other objects are re-created). Find a deleted record with get_record(include_archived:true) or the delete result's id. A record that isn't deleted, or an unknown id, is refused with the reason and nothing changes; the same scope as delete_record decides who may restore. Returns the restored record's full state with restored:true.
When to use: The user deleted a contact or account by mistake and wants it back.
Example: Restore the contact I deleted by mistake.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The deleted record's id — a uuid from the delete result or a get_record read with include_archived. A uuid. | |
| object_type | Yes | Which kind of deleted record to bring back: contact or account. One of: contact | account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | No | ||
| restored | No |