Delete a draft document (move it to the Trash)
Moves a draft document to the workspace Trash. It disappears from every list and read (404 from then on) and can be restored in the web app for 30 days, after which it is permanently deleted with its fields and files. Only drafts can be deleted: a document with any envelope that is not a draft (sent, completed, sealed, voided...) is refused with 409 and is never deleted. An API key acts as a workspace integration, so it may delete only documents that no person uploaded (documents created through the API); a person's upload returns 403. Permanent deletion is not available on the API.
Moves a draft document to the workspace Trash. It disappears from every list and read (404 from then on) and can be restored in the web app for 30 days, after which it is permanently deleted with its fields and files. Only drafts can be deleted: a document with any envelope that is not a draft (sent, completed, sealed, voided...) is refused with 409 and is never deleted. An API key acts as a workspace integration, so it may delete only documents that no person uploaded (documents created through the API); a person's upload returns 403. Permanent deletion is not available on the API.
bearerAuthAuthorizationBearer <token>Workspace API key, e.g. "Authorization: Bearer aflo_live_<64 hex chars>". Keys are hashed at rest and shown only once at creation. A key has scopes: read (GET routes), draft (create or change documents, fields and templates) and send (send, void, remind and bulk send); a call outside them gets 403 insufficient_scope. A key may expire (401 api_key_expired). Keys made before scopes existed have full access.
id*stringDocument id.
Moved to the Trash.
application/json- response
success*booleandata*curl -X DELETE 'https://appliflo.com/api/v1/documents/string'{ "success": true, "data": { "id": "string", "name": "string", "deleted_at": "2019-08-24T14:15:22Z", "days_left": 0 }}