POST
/api/public/v1/employee-invitations

Invite an employee

Invite a person to join your organization via SMS to their phone number.

Request Body

PropertyTypeDescription
phoneNumberstringE.164 phone number.
notestringPersonal 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"
    }
  }
}