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.revoke({
organizationId: "<id>",
inviteId: "<id>",
body: {},
});
console.log(result);
}
run();{
"invite": {
"created_at": "2023-11-07T05:31:56Z",
"email": "dwight@dundermifflin.com",
"expires_at": "2023-11-07T05:31:56Z",
"id": "inv_01h2xcejqtf2nbrexx3vqjhp41",
"organization_id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"sender": {
"email": "jsmith@example.com",
"id": "user_01h2xcejqtf2nbrexx3vqjhp41",
"name": "<string>",
"family_name": "<string>",
"given_name": "<string>",
"profile_image_url": "<string>"
},
"status": "pending",
"accepted_at": "2023-11-07T05:31:56Z",
"accepted_by": {
"email": "jsmith@example.com",
"id": "user_01h2xcejqtf2nbrexx3vqjhp41",
"name": "<string>",
"family_name": "<string>",
"given_name": "<string>",
"profile_image_url": "<string>"
},
"message": "<string>"
}
}Revoke a pending invitation, preventing the recipient from joining. Requires permission to manage organization members.
import { Factify } from "@factify/sdk";
const factify = new Factify({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await factify.organizations.invites.revoke({
organizationId: "<id>",
inviteId: "<id>",
body: {},
});
console.log(result);
}
run();{
"invite": {
"created_at": "2023-11-07T05:31:56Z",
"email": "dwight@dundermifflin.com",
"expires_at": "2023-11-07T05:31:56Z",
"id": "inv_01h2xcejqtf2nbrexx3vqjhp41",
"organization_id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"sender": {
"email": "jsmith@example.com",
"id": "user_01h2xcejqtf2nbrexx3vqjhp41",
"name": "<string>",
"family_name": "<string>",
"given_name": "<string>",
"profile_image_url": "<string>"
},
"status": "pending",
"accepted_at": "2023-11-07T05:31:56Z",
"accepted_by": {
"email": "jsmith@example.com",
"id": "user_01h2xcejqtf2nbrexx3vqjhp41",
"name": "<string>",
"family_name": "<string>",
"given_name": "<string>",
"profile_image_url": "<string>"
},
"message": "<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. Pattern: org_[0-9a-hjkmnp-tv-z]{26}
^org_[0-9a-hjkmnp-tv-z]{26}$Invitation ID to revoke. Pattern: inv_[0-9a-hjkmnp-tv-z]{26}
^inv_[0-9a-hjkmnp-tv-z]{26}$RevokeOrganizationInviteRequest identifies an invitation to revoke.
Success
RevokeOrganizationInviteResponse contains the revoked invitation.
The revoked invitation with updated status.
Show child attributes