Team Management APIs
PixieBrix Team Management APIs Overviews
This page details the most import APIs for team management, e.g., integration with a workforce management (WFM) system or identity provider. For a complete list of team management API endpoints, see OpenAPI Specification
Team Management
List Team Memberships
GET /api/organizations/:organizationId/memberships/
This endpoint must be paginated, see Pagination.
Service accounts are included by default. To exclude them, use the following param: user__service_account=true
Deployment key accounts are included by default. To exclude them, use the following param: user__deployment_key_account=true
Remove User From Team
DELETE /api/memberships/:id/
This endpoint can be used to remove a member from a team. For more information, view our OpenAPI Specification.
Group Management
List Groups
GET /api/organizations/:organizationId/groups/
Create a Group
POST /api/organizations/:organizationId/groups/
The payload should include the group name. For example:
List Group Memberships
To get the current memberships:
GET /api/groups/:groupId/memberships/
Add or Update Group Memberships
POST /api/groups/:groupId/memberships/: Add one or more members to a GroupPUT /api/groups/:groupId/memberships/: Replace the members in a Group
The payload should consist of one or more registered user ids or emails.
To include an email, the user must be either: 1) already a member of your team, or 2) have an email domain that has been verified for your team. To verify an email domain for your team, contact [email protected].
Example payload:
Delete Group Membership
To delete a single group membership, call the DELETE method on the membership resource.
DELETE /api/groups/:groupId/memberships/:membershipId/
Campaign Management
List Campaigns
GET /api/organizations/:organizationId/campaigns/
Update Campaign
To update a campaign's name, use the following endpoint:
GET /api/organizations/:organizationId/campaigns/:campaignId/
Example payload:
List Campaign Memberships
To list membership information for a given campaign, use the following endpoint:
GET /api/organizations/:organizationId/campaigns/:campaignId/members/
Add or Update Campaign Memberships
POST /api/organizations/:organizationId/campaigns/:campaignId/members/: Add one or more members to a CampaignPUT /api/organizations/:organizationId/campaigns/:campaignId/members/: Replace the members in a Campaign
To include an email, the user must be either: 1) already a member of your team, or 2) have an email domain that’s been verified for your team. To verify an email domain for your team, contact [email protected]
The users list supports a data property where you can provide custom master data about the users for reporting, e.g., Location, Organization Unit, etc.
Example payload:
Audit Log
You must have the Admin or Manager role on the team to use these endpoints. Events are sorted newest first. For the meaning of each field, see Audit Log.
List Team Audit Events
GET /api/audit/organizations/:organizationId/
If the team has more than 1,000 events, you must paginate this endpoint. Without pagination, the request fails. To paginate, send API version 2.0 in the Accept header, then follow the next link in the Link response header. See Making an API Request. For example:
List Group Audit Events
GET /api/audit/groups/:groupId/
List Deployment Audit Events
GET /api/audit/deployments/:deploymentId/
Last updated
Was this helpful?