Manage organization membership and member activity.
Get member project memberships
/organizations/{id}/members/{memberId}/project-membershipsReturns a list of all projects in the organization along with the specified member's access level for each project. Each entry includes the project ID, name, and the member's role/permission level within that project (or null if they have no direct project membership). Useful for auditing a member's project access across the organization.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: memberships } = await gc.organizationMembers.getMemberProjectMemberships({ id: "organization-id", memberId: "member-id"});Get member activities
/organizations/{id}/members/{memberId}/activitiesReturns a paginated activity feed for a specific member within an organization. Activities include actions the member has performed such as project updates, document edits, member management changes, and settings modifications. Each activity entry includes the action type, resource details, and timestamp. Supports pagination via page and pageSize query parameters.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: activities } = await gc.organizationMembers.getOrganizationMemberActivities({ id: "org-id", memberId: "member-id"});Get a member by ID
/organizations/{id}/members/{memberId}Retrieves a single organization member by their member ID. Returns the member object including user profile (name, email, avatar), role, title, and join date. The 'id' param is the organization UUID and 'memberId' is the member UUID. Returns 404 if the member does not exist in this organization.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: member } = await gc.organizationMembers.getOrganizationMember({ id: "org_123", memberId: "mem_123"});Get organization members
/organizations/{id}/membersReturns a paginated list of all members in an organization. Each member object includes the member ID, user profile (name, email, avatar), role (owner, admin, member), title, and join date. Supports search by name or email, filtering by role, and sorting. Pagination is controlled via page and pageSize query parameters.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: members } = await gc.organizationMembers.getOrganizationMembers({ id: "org_123" });