DKBSignDocs

API reference

POSTRequires Bearer token

Clear an envelope box

/api/v4/envelopes/clear

Submit /api/v4/envelopes/clear. Authenticated routes need Authorization: Bearer {token} from POST /api/v1/login.

Path parameters

This endpoint has no path parameters.

Query parameters

This endpoint has no query parameters.

Request body

FieldTypeDescription
box
stringsent (default) or received.
e.g. "sent"

Responses

StatusMeaning
200Box cleared
401Missing or invalid Bearer token.

Request

curl
curl -X POST 'https://api.dkbsigns.com/api/v4/envelopes/clear' \
  -H 'Authorization: Bearer $DKBSIGN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"box":"sent"}'

Response 200

json
{
  "message": "Boîte vidée",
  "removed": 3
}