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"
}
🔵 POST - Invite Member
Invite Member
Invite a user to join your organization
POST
/
api
/
organizations
/
invite
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"
}
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
string
required
The Clerk organization ID
string
required
Email address to invite
string
default:"org:member"
Role for the invited user:
"org:admin" or "org:member"string
URL to redirect after signup (defaults to
/dashboard)Response
string
"success" if invitation was sentstring
Human-readable confirmation message
string
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"
}