POST
/api/public/v1/businessesCreate a business
Create a new business in your organization.
Request Body
| Property | Type | Description |
|---|---|---|
displayName | string | Display name. |
type | string | Business type. |
subdomain | string | Free subdomain. |
tagline | string | Tagline. |
legalEntityId | string | Link 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"
}
}
}