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.members.add({
organizationId: "<id>",
body: {
role: "member",
userId: "<id>",
},
});
console.log(result);
}
run();{
"member": {
"joined_at": "2023-11-07T05:31:56Z",
"role": "owner",
"user": {
"email": "jsmith@example.com",
"id": "user_01h2xcejqtf2nbrexx3vqjhp41",
"name": "<string>",
"family_name": "<string>",
"given_name": "<string>",
"profile_image_url": "<string>"
}
}
}Directly adds a user as a member of an organization. Requires manage permission (owner or admin).
import { Factify } from "@factify/sdk";
const factify = new Factify({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await factify.organizations.members.add({
organizationId: "<id>",
body: {
role: "member",
userId: "<id>",
},
});
console.log(result);
}
run();{
"member": {
"joined_at": "2023-11-07T05:31:56Z",
"role": "owner",
"user": {
"email": "jsmith@example.com",
"id": "user_01h2xcejqtf2nbrexx3vqjhp41",
"name": "<string>",
"family_name": "<string>",
"given_name": "<string>",
"profile_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 to add the member to. Pattern: org_[0-9a-hjkmnp-tv-z]{26}
^org_[0-9a-hjkmnp-tv-z]{26}$AddOrganizationMemberRequest identifies a user to add as a member.
Success
AddOrganizationMemberResponse contains the added member.
The newly added organization member.
Show child attributes