Classic APIs
ClassicOrganizationsApi
orgInvitations

orgInvitations

Gets a page of members for an organization.

Parameters

NameTypeDescription
orgIdOrgIdThe ID of the organization to get invitations for.
limit?numberThe maximum amount of roles to return.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: invitations } = await ClassicOrganizationsApi.orgInvitations({ orgId: "4244556007738484576" }); 

Example Data

[
  {
    id: "7659171709868310756",
    organizationId: "4244556007738484576",
    recipientUserId: "2655994471",
    senderUserId: "45348281",
    invitationStatusType: "Open",
    updatedTime: 2024-05-31T04:30:08.713Z,
  },
] 

Endpoint

GET /v1/organizations/{orgId}/users