Accept an invitation to join an organization. User must be authenticated.
POST/v1/invitations/accept
email_key string required
Unique email key from invitation link
Returns the acceptance result with organization details.
- User must be authenticated
- Invitation must be valid and not expired
- User cannot already be a member of the organization
Requires authenticated user.
Bash
- Bash
- Python
- JavaScript
curl -X POST https://api.aitronos.com/v1/invitations/accept \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email_key": "unique_email_key_from_invitation"
}'Response:
{
"success": true,
"organization_id": "org_abc123",
"organization_name": "Acme Corp",
"role_id": "role_def456",
"role_name": "Member"
}