API

Undo deletion

Reverse a DELETE by repeating it with undo=true — the record and its associations are restored.

Last updated Jul 13, 2026

Deleted the wrong record? Repeat the same DELETE request with undo=true and it’s restored.

ParameterTypeDescription
undobooleanWhen true, revert the delete instead of performing it

Example

Delete a contact:

curl -X DELETE -u "USER_ID:API_KEY" \
  "https://app.onepagecrm.com/api/v3/contacts/CONTACT_ID.json"

Undo that delete:

curl -X DELETE -u "USER_ID:API_KEY" \
  "https://app.onepagecrm.com/api/v3/contacts/CONTACT_ID.json?undo=true"

Tips

  • Same endpoint, same id. Undo is the delete request again with the undo=true flag — you don’t need a separate “restore” call.
  • Keep the id. You need the deleted record’s id to undo, so hold onto it if a reversible delete matters to your flow.
  • Contacts, actions, and relationships. These are the deletes the API can undo. Other records, like deals, can be restored from the Activity page in the app.
  • Undo is time-limited. The restore window depends on your account’s plan — from 1 day up to 60 days on higher plans. After the window closes, there is nothing left to restore and the request returns 404.
  • API reference — the delete endpoint for each resource.
  • Webhooksdeleted events fire on delete; an undo re-creates the record.