REST API endpoints for Organization Invitations
List pending invitations
Section titled “List pending invitations”/orgs/{orgId}/invitations List all pending invitations for an organization.
Authentication is required.
The authenticated member must have member:create permission in the organization.
orgIdstringRequiredThe slug or ID of the organization.
This API endpoint returns standard API response format. The following fields are fields of the data object. Learn more
Pending invitations. Each item is an OrganizationMemberPrivate with accepted set to false.
idstringRequiredThe unique identifier of the user.
namestringRequiredThe display name of the user.
usernamestringRequiredThe username of the user.
created_atstringRequiredISO 8601 timestamp of when the user was created.
rolestringRequiredThe role of the user. Can be user, moderator or admin.
avatar_urlstringThe URL of the user avatar.
biostringThe short bio of the user.
is_ownerbooleanRequiredWhether the user is the owner of the organization.
member_rolestringRequiredThe role of the member in the organization.
permissionsarray<string>RequiredThe permissions that the member has in the organization.
acceptedbooleanRequiredWhether the membership invitation has been accepted.
List organization invitations for a user
Section titled “List organization invitations for a user”/users/{userId}/org_invitations List pending organization invitations for the current authenticated user.
Authentication is required.
The authenticated user must match userId.
userIdstringRequiredThe ID or username of the user. Use @me for the current authenticated user.
This API endpoint returns standard API response format. The following fields are fields of the data object. Learn more
Pending organization invitations for the user.
organizationobjectRequiredThe inviting organization.
inviteeobjectRequiredThe invited member record, including whether the invitation has been accepted.
Create an invitation
Section titled “Create an invitation”/orgs/{orgId}/invitations Invite a user to join an organization.
Authentication is required.
The authenticated member must have member:create permission in the organization.
orgIdstringRequiredThe slug or ID of the organization.
Permissions use organization member permission values: member:create, member:update, member:delete, project:create, project:read, project:update, project:delete, project:channel:create, project:channel:update, project:channel:delete, project:version:create, project:version:update, project:version:delete.
inviteestringRequiredThe username or 8-character user ID of the user to invite.
rolestringThe role of the user in the organization. Minimum 1 and maximum 32 characters.
permissionsarray<string>The permissions that the user will have in the organization.
Accept an invitation
Section titled “Accept an invitation”/orgs/{orgId}/invitations/{userId} Accept a pending invitation. Only the invited user can accept their own invitation.
orgIdstringRequiredThe slug or ID of the organization.
userIdstringRequiredThe username or ID of the invited user. Must match the authenticated user.
Cancel or reject an invitation
Section titled “Cancel or reject an invitation”/orgs/{orgId}/invitations/{userId} Cancel a pending invitation by an authorized member or reject an invitation by the invitee.
Authentication is required.
Must be the invited user or a member with member:create permission.
orgIdstringRequiredThe slug or ID of the organization.
userIdstringRequiredThe username or ID of the invited user.