POST
/api/public/v1/businesses

Create a business

Create a new business in your organization.

Request Body

PropertyTypeDescription
displayNamestringDisplay name.
typestringBusiness type.
subdomainstringFree subdomain.
taglinestringTagline.
legalEntityIdstringLink to legal entity.
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/businesses" \
  -H "X-Organization-Id: your_org_id" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "displayName": "Acme Corp",
    "type": "SERVICES",
    "subdomain": "acme"
  }'
200Example response
json
{
  "message": "Business created successfully!",
  "content": {
    "business": {
      "id": "biz_abc123"
    }
  }
}