Authentication
Invitations
The Invitations card under Application → Authentication lets you (or your customers' admins) onboard users by email. The user clicks the link, sets up their account, and lands inside the application with whatever roles you pre-assigned.
curl -X POST https://your-app.authaz.io/api/v1/invitations \
-H "X-API-Key: $AUTHAZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "newhire@yourcompany.com",
"roleIds": ["role_member"],
"metadata": { "department": "Engineering" }
}'{
"id": "inv_01h...",
"email": "newhire@yourcompany.com",
"status": "pending",
"expiresAt": "2026-05-13T15:30:00Z",
"invitedBy": "user_01h..."
}