Skip to main content
POST
https://searchcompany-main.up.railway.app
/
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:
  1. They are taken to the sign-up page
  2. After creating an account, they are automatically added to the organization
  3. They are redirected to the dashboard

Request Body

organization_id
string
required
The Clerk organization ID
email_address
string
required
Email address to invite
role
string
default:"org:member"
Role for the invited user: "org:admin" or "org:member"
redirect_url
string
URL to redirect after signup (defaults to /dashboard)

Response

status
string
"success" if invitation was sent
message
string
Human-readable confirmation message
invitation_id
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"
}