POST
/api/v1/documents/{slug}/edit-secret/rotateRotate the edit secret
Replaces a document's edit secret, for when the old one leaked. The old secret stops working at once; the new one is in the response, once. Owner only.
API token required10 per minute per IP
Guide: If the secret leaks
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.