Factify API is currently in Beta.
import { Factify } from "@factify/sdk";
const factify = new Factify({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await factify.sharing.update({
documentId: "doc_01h2xcejqtf2nbrexx3vqjhp41",
recipientId: "user_01h2xcejqtf2nbrexx3vqjhp41",
body: {
documentRole: "admin",
},
});
console.log(result);
}
run();{
"error": "<string>",
"success": true
}Update a recipient’s role.
import { Factify } from "@factify/sdk";
const factify = new Factify({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await factify.sharing.update({
documentId: "doc_01h2xcejqtf2nbrexx3vqjhp41",
recipientId: "user_01h2xcejqtf2nbrexx3vqjhp41",
body: {
documentRole: "admin",
},
});
console.log(result);
}
run();{
"error": "<string>",
"success": true
}Documentation Index
Fetch the complete documentation index at: https://developers.factify.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer , where is your auth token.
Document ID.
^doc_[0-9a-hjkmnp-tv-z]{26}$"doc_01h2xcejqtf2nbrexx3vqjhp41"
Recipient ID (TypeID: user_xxx or bot_xxx).
^(user|bot)_[0-9a-hjkmnp-tv-z]{26}$"user_01h2xcejqtf2nbrexx3vqjhp41"
UpdateDocumentAccessRequest updates a single recipient's role.
New role to assign.
viewer, commenter, collaborator, admin, owner