D
Druckling
Docs

Revoke a share link

DELETE
/documents/{id}/share_links/{share_link_id}

The link stops working immediately (410 Gone).

Authorization

headerAuthorizationBearer <token>

Authorization: Bearer dr_live_… or dr_test_…

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
object*unknown
document*string
url*|

The public link. Returned only when the link is created: Druckling keeps a hash of it, not the link itself.

hint*string

Last four characters of the link, to tell links apart.

status*string
Value in"active""expired""revoked"
expires_at*string
Formatdate-time
revoked_at*|null
test_mode*boolean
created_at*string
Formatdate-time
Example Request
curl -X DELETE 'https://druckling-nine.vercel.app/v1/documents/string/share_links/string'
Example Response200
{  "id": "string",  "object": "share_link",  "document": "string",  "url": "string",  "hint": "string",  "status": "active",  "expires_at": "2019-08-24T14:15:22Z",  "revoked_at": "2019-08-24T14:15:22Z",  "test_mode": true,  "created_at": "2019-08-24T14:15:22Z"}