Managing Teams
Set up your organization, invite team members, and configure role-based access for your CargoLint workspace.
This content has moved. See Managing Your Team for dashboard instructions, or continue reading for API-based team management.
Inviting Team Members via API
Programmatically invite team members:
curl -X POST https://api.cargolint.com/api/v1/team/invite \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "jane.smith@company.com",
"role": "member"
}'
You can also resend or cancel pending invitations:
# List pending invitations
curl -X GET https://api.cargolint.com/api/v1/team/invitations \
-H "Authorization: Bearer YOUR_API_KEY"
# Resend an invitation
curl -X POST https://api.cargolint.com/api/v1/team/invitations/{id}/resend \
-H "Authorization: Bearer YOUR_API_KEY"
# Cancel an invitation
curl -X DELETE https://api.cargolint.com/api/v1/team/invitations/{id} \
-H "Authorization: Bearer YOUR_API_KEY"
Removing Members via API
curl -X DELETE https://api.cargolint.com/api/v1/team/members/{user_id} \
-H "Authorization: Bearer YOUR_API_KEY"
Changing Roles via API
curl -X PUT https://api.cargolint.com/api/v1/team/members/{user_id}/role \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"role": "admin"}'
Note: Users cannot change their own role. Owners with other members must transfer ownership before deleting their account.