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.grant({ documentId: "<id>", body: {}, }); console.log(result); } run();
{ "document_id": "<string>", "failed": 123, "results": [ { "error": "<string>", "recipient": "<string>", "success": true } ], "successful": 123, "total": 123 }
Grant access to one or more recipients.
Bearer authentication header of the form Bearer , where is your auth token.
Document ID.
^doc_[0-9a-hjkmnp-tv-z]{26}$
GrantDocumentAccessRequest grants access to one or more recipients.
Custom message to include in the notification email.
Recipients to grant access to (1-50).
1 - 50
Show child attributes
Whether to send email notifications.
Success
GrantDocumentAccessResponse contains the results of granting access.
Number of failed grants.
Results for each recipient.
Number of successful grants.
Total number of recipients processed.