API
Organization and teams endpoints
These endpoints work on a whole organization. Reading needs org:read. Changing members and teams needs org:write and an admin or an owner.
Last updated . This guide belongs to API access and data export.
Which endpoints are there?
| Request | Result |
|---|---|
GET /organizations/:organizationId/sites | The sites you can open, with sessions in the last 24 hours and the plan's event limit |
POST /organizations/:organizationId/sites | Adds a site from domain and name. Status 201. Needs sites:write |
GET /organizations/:organizationId/members | The members with role, site access and teams |
GET /organizations/:organizationId/teams | The teams with their members and sites |
POST /organizations/:organizationId/teams | Creates a team from name, memberUserIds and siteIds. Status 201 |
PUT /organizations/:organizationId/teams/:teamId | Changes a team. A list you send replaces the stored one |
DELETE /organizations/:organizationId/teams/:teamId | Deletes a team |
A member sees only the sites and teams they belong to. An admin, an owner and an organization key see all of them.
How many sites can you add?
| Plan | Websites |
|---|---|
| Starter | 5 |
| Business | 50 |
| Agency | 500 |
A request over the limit returns status 403.
What does the members list return?
{ "success": true, "data": [ { "id": "Mb3k", "role": "member", "userId": "usr_2q", "user": { "name": "Kari Nordmann", "email": "[email protected]" }, "siteAccess": { "hasRestrictedSiteAccess": true, "siteIds": [42] }, "teams": [] } ] }
role is owner, admin or member.