cURL
curl --request POST \ --url https://api.example.com/api/teams/{id}/invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "invited_email": "user@example.com", "invited_user_id": "auth0|abc123", "role": "member" } '
{ "data": { "id": 123, "team_id": 123, "invited_email": "<string>", "invited_user_id": "<string>", "invited_by": "<string>", "role": "<string>", "status": "<string>", "token": "<string>", "created_at": "<string>", "expires_at": "<string>" } }
Invite a user to the team by email or user ID. Token-based — the frontend handles delivery.
Auth0 JWT access token
Team ID
^\d+$
"1"
Email of the person to invite
"user@example.com"
User ID to invite directly
1
"auth0|abc123"
Role to assign on acceptance
admin
member
"member"
Invitation created
Show child attributes