Workspace and team
Workspace and team API
Manage dimmi workspace settings, teammates, invitations, teams, custom roles, permissions, SSO domains, and API tokens via the dimmi REST API.
Roles and permissionsManage teammates, teams, invitations, and role permissions.
Invitations
4 endpointsGETList invitations
/invitationsLists the workspace's invitations, newest first. Only pending ones unless filter[status] asks. Returns a page of invitations with email, role, status...POSTInvite people/invitationsEmails up to 50 people an invitation to join the workspace as admin or member. Each address gets its own answer; inviting someone already invited sends them...POSTResend an invitation/invitations/{invitation}/deliveriesEmails a pending invitation again with a fresh link, which stops the old one working and restarts its expiry. Allowed a few times a day per invitation.DELETEWithdraw an invitation/invitations/{invitation}DELETE /invitations/{invitation}: Withdraws a pending invitation, so its link stops working. The person can be invited again. Returns nothing.Members
4 endpointsGETList teammates
/membersLists the people in the workspace, by name by default, with role, status, availability, conversation access and custom role. Use it to find a teammate's id...GETGet a teammate/members/{member}Reads one member of the workspace. Pass me for your own membership. Returns the member with role, status, availability, conversation access and custom role.PATCHChange a teammate/members/{member}Changes one member's role (admin or member), deactivates or reactivates them, gives or takes away a custom role, or sets what conversations they see...PATCHChange several teammates/membersGives up to 100 members the same role (admin or member) or custom role, such as moving everyone off a custom role before it is deleted. Each member is...Permissions
1 endpointRoles
2 endpointsGETList roles
/rolesLists the built-in roles (owner, admin, member), then the workspace's custom roles by name. A custom role narrows the admin or member role it is based on.GETGet a custom role/roles/{role}Reads one custom role. Built-in roles have no id; read them with GET /roles. Returns the role with its base role, permissions and member count.Teams
7 endpointsGETList teams
/teamsLists the workspace's teams by name. Teams group teammates and can hold conversations. Returns a page of teams with their member counts, and next_cursor...POSTCreate a team/teamsPOST /teams: Creates a team. Two teams cannot share a name, whatever the letter case. Returns the new team. dimmi REST API reference.POSTAdd teammates to a team/teams/{team}/membersPuts up to 100 members in a team. They are told they joined, and teammates whose access follows their teams start seeing its conversations. Deactivated...GETGet a team/teams/{team}GET /teams/{team}: Reads one team. Returns the team with its member count. dimmi REST API reference.PATCHRename a team/teams/{team}PATCH /teams/{team}: Renames a team. Two teams cannot share a name, whatever the letter case. Returns the team as it now is. dimmi REST API reference.DELETEDelete a team/teams/{team}Deletes a team. Its conversations, open, snoozed and closed, move to the team or teammate named, or are left without a team when neither is.DELETERemove a teammate from a team/teams/{team}/members/{member}DELETE /teams/{team}/members/{member}: Takes one member out of a team. Their access to the team's conversations may end with it. Returns nothing.Workspace
6 endpointsGETGet the workspace
/workspaceReads the workspace this connection works in: its name, address, time zone and main settings. Every tool acts inside this one workspace. Returns the workspace.GETGet the API limits/workspace/entitlementsGET /workspace/entitlements: Reads how many API requests a minute this workspace may make; zero means no limit. Returns the workspace's request limits.GETGet the sign-in rules/workspace/access-policyReads how people may sign in to the workspace: allowed sign-in methods and Google domains, session limits, IP allowlists for the dashboard and the API...PATCHChange workspace settings/workspaceChanges the workspace's name, address (slug), language, time zone, the name customers see, composer options, link checks and how long data is kept.PUTUpload the workspace logo/workspace/logoReplaces the workspace's logo with an uploaded image. It needs a file sent as a multipart form in the field named logo, and the settings:write permission.DELETERemove the workspace logo/workspace/logoDELETE /workspace/logo: Takes the workspace logo down, so customers see the workspace without one. Removing it twice is fine. Returns nothing.