Factify API is currently in Beta.
TypeScript
import { Factify } from "@factify/sdk"; const factify = new Factify({ bearerAuth: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await factify.sharing.revoke({ documentId: "<id>", recipientId: "<id>", }); console.log(result); } run();
{ "error": "<string>", "success": true }
Revoke access from a recipient.
Bearer authentication header of the form Bearer , where is your auth token.
Document ID.
^doc_[0-9a-hjkmnp-tv-z]{26}$
Recipient ID (TypeID: user_xxx or bot_xxx).
^(user|bot)_[0-9a-hjkmnp-tv-z]{26}$
Success
RevokeDocumentAccessResponse contains the result of revoking access.
Error message if the revocation failed.
Whether the revocation succeeded.