Sends an email invitation to join your organization (business). When the invited user clicks the link:
- They are taken to the sign-up page
- After creating an account, they are automatically added to the organization
- They are redirected to the dashboard
Request Body
The Clerk organization ID
role
string
default:"org:member"
Role for the invited user: "org:admin" or "org:member"
URL to redirect after signup (defaults to /dashboard)
Response
"success" if invitation was sent
Human-readable confirmation message
Clerk invitation ID for tracking
curl -X POST https://searchcompany-main.up.railway.app/api/organizations/invite \
-H "Content-Type: application/json" \
-d '{
"organization_id": "org_2abc123",
"email_address": "teammate@company.com",
"role": "org:member"
}'
{
"status": "success",
"message": "Invitation sent to teammate@company.com",
"invitation_id": "inv_2def456"
}