2026 customs changesWhat it means

Managing Teams

Invite team members, manage invitations, and change roles in your CargoLint organization through the API.

This page covers team management through the API. For the dashboard, see Managing Your Team.

These endpoints act for a person, so they take a signed-in Owner’s or Admin’s token (Authorization: Bearer <token>, see Authentication). The organization’s API key carries no role and is refused.

Inviting Team Members via API

curl -X POST https://api.cargolint.com/api/v1/team/invite \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "jane.smith@company.com",
    "role": "Member"
  }'

role is Admin or Member (the default). An Owner can invite either; an Admin can invite Members only. Invitations count against your plan’s seats and expire after 7 days.

You can also list, resend or cancel pending invitations:

# List pending invitations
curl -X GET https://api.cargolint.com/api/v1/team/invitations \
  -H "Authorization: Bearer YOUR_TOKEN"

# Resend an invitation (restarts its 7 days)
curl -X POST https://api.cargolint.com/api/v1/team/invitations/{id}/resend \
  -H "Authorization: Bearer YOUR_TOKEN"

# Cancel an invitation
curl -X DELETE https://api.cargolint.com/api/v1/team/invitations/{id} \
  -H "Authorization: Bearer YOUR_TOKEN"

Listing Members via API

curl -X GET https://api.cargolint.com/api/v1/team/members \
  -H "Authorization: Bearer YOUR_TOKEN"

Removing Members via API

curl -X DELETE https://api.cargolint.com/api/v1/team/members/{user_id} \
  -H "Authorization: Bearer YOUR_TOKEN"

You cannot remove yourself or the Owner, and an Admin can remove Members only. A removed member can no longer sign in.

Changing Roles via API

Only the Owner can change roles:

curl -X PUT https://api.cargolint.com/api/v1/team/members/{user_id}/role \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "Admin"}'

role is Admin or Member. Nobody can change their own role or the Owner’s.

Note: An Owner whose organization has other active members cannot delete their own account.