Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

getPendingOrganizationInvitationList()

Retrieves a list of organization invitations that have not yet been accepted.

const organizationId = 'my-organization-id'; const invitations = await clerkClient.organizations.getPendingOrganizationInvitationList({ organizationId });

GetPendingOrganizationInvitationListParams

NameTypeDescription
organizationIdstringThe ID of the organization to retrieve the list of pending invitations from.
limit?numberThe number of results to return. Must be an integer greater than zero and less than 500.
offset?numberThe number of results to skip.

Examples

getPendingOrganizationInvitationList({ limit })

Retrieves orgnanization invitation list that is filtered by the number of results.

const organizationId = 'my-organization-id'; const invitations = await clerkClient.organizations.getPendingOrganizationInvitationList({ organizationId, // returns the first 10 results limit: 10, });

getPendingOrganizationInvitationList({ offset })

Retrieves orgnanization invitation list that is filtered by the number of results to skip.

const organizationId = 'my-organization-id'; const invitations = await clerkClient.organizations.getPendingOrganizationInvitationList({ organizationId, // skips the first 10 results offset: 10, });

What did you think of this content?

Clerk © 2023