Cancelling and deleting a document (API)

Modified on Sat, 3 Oct at 2:52 PM

⚠️ Deletion is irreversible. A deleted document and its signatures cannot be recovered in any way. Download completed documents before deleting them.

There are two endpoints for deletion — they differ in what remains afterwards.

Unfinished document (draft, pending…)

curl -X DELETE -H "x-api-key: VAS_API_KLIC" \
  https://api.signi.com/api/v1/contract/ID_DOKUMENTU

It cancels the sent signing invitations and deletes the document completely — including the envelope and all metadata. Nothing remains of the document.

Closed document (completed)

A closed document cannot be deleted completely — the first endpoint returns the error "A closed contract cannot be deleted!". Use:

curl -X DELETE -H "x-api-key: VAS_API_KLIC" \
  https://api.signi.com/api/v2/contract/ID_DOKUMENTU/delete

What is returned:

{ "status": "ok" }

Only the document PDF is deleted. The envelope and audit trail are always preserved — so a record remains that the legal act took place.

Where to go next

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article