Team
Team write actions require both
team:write permission and owner role on the website.Use the team API when building onboarding or internal admin tools. Invitations are created for an email address and role, then the invited user can accept from DataFast.
Base path:
https://datafa.st/api/v1/admin| Endpoint | Method | Path | Permission | Purpose |
|---|---|---|---|---|
| List team members | GET | /websites/{websiteId}/team | team:read | List team members |
| Invite team member | POST | /websites/{websiteId}/team | team:write + owner role | Invite a team member |
| Remove team member | DELETE | /websites/{websiteId}/team | team:write + owner role | Remove a team member |
Invite a team member
curl -X POST "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/team" \
-H "Authorization: Bearer dft_xxx" \
-H "Content-Type: application/json" \
-d '{"email":"member@example.com","role":"viewer"}'
Roles are
viewer and member. You cannot remove yourself with this endpoint.