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.organizations.invites.accept({
organizationId: "<id>",
body: {
token: "<value>",
},
});
console.log(result);
}
run();{
"organization": {
"created_at": "2023-11-07T05:31:56Z",
"id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Acme Corporation",
"logo_image_url": "<string>"
}
}Accepts the invitation and adds the authenticated user as a member of the organization. The authenticated user’s verified email must match the invitation email (case-insensitive). Returns PERMISSION_DENIED if emails don’t match, FAILED_PRECONDITION if the user is already a member, or NOT_FOUND if the invitation is invalid/expired.
import { Factify } from "@factify/sdk";
const factify = new Factify({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await factify.organizations.invites.accept({
organizationId: "<id>",
body: {
token: "<value>",
},
});
console.log(result);
}
run();{
"organization": {
"created_at": "2023-11-07T05:31:56Z",
"id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Acme Corporation",
"logo_image_url": "<string>"
}
}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.
Organization the invitation belongs to (for validation). Pattern: org_[0-9a-hjkmnp-tv-z]{26}
^org_[0-9a-hjkmnp-tv-z]{26}$AcceptOrganizationInviteRequest contains the token to accept an invitation.
The invitation token from the email link.
128Success
AcceptOrganizationInviteResponse contains the organization the user joined.
The organization the user is now a member of.
Show child attributes