POST
/api/public/v1/employee-invitationsInvite an employee
Invite a person to join your organization via SMS to their phone number.
Request Body
| Property | Type | Description |
|---|---|---|
phoneNumber | string | E.164 phone number. |
note | string | Personal message to include. |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/employee-invitations" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+15551234567",
"note": "Welcome aboard!"
}'200Example response
json
{
"message": "Invitation created successfully!",
"content": {
"invitation": {
"id": "inv_1",
"status": "PENDING"
}
}
}