"Best analytics tool I've used in 14 years"

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
EndpointMethodPathPermissionPurpose
List team membersGET/websites/{websiteId}/teamteam:readList team members
Invite team memberPOST/websites/{websiteId}/teamteam:write + owner roleInvite a team member
Remove team memberDELETE/websites/{websiteId}/teamteam:write + owner roleRemove 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.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown

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"}'
Success response
{
  "status": "success",
  "data": [
    {
      "message": "Invitation created. Send the invite link to the user.",
      "invitationId": "665f0b3c4d2e1a0012345678",
      "email": "member@example.com",
      "role": "viewer"
    }
  ]
}