Team Management
Invite team members to your workspace with role-based access control.
Roles
| Role | Permissions |
|---|---|
| owner | Full access. Cannot be removed. One per workspace. |
| admin | Manage members, billing, webhooks, and all resources. |
| developer | Create, deploy, and manage services and databases. |
| viewer | Read-only access to all resources. |
Invite Flow
- Admins send invites by email from the Team page or API
- Invitee receives an email with a unique link (valid for 7 days)
- If the invitee has an account, they're added immediately on accept
- If not, they're prompted to sign up first, then auto-joined
API
# Invite a team member
curl -X POST https://railpush.com/api/v1/team/invites \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"email": "teammate@company.com", "role": "developer"}'
# List current members
curl https://railpush.com/api/v1/team/members \
-H "Authorization: Bearer <token>"
# List pending invites
curl https://railpush.com/api/v1/team/invites \
-H "Authorization: Bearer <token>"
# Accept an invite (public endpoint)
curl -X POST https://railpush.com/api/v1/invites/<token>/accept \
-H "Authorization: Bearer <your-token>"