Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Create a company workspace

/api/v1/auth/companyPOST
Creates an organization and owner membership for a signed-in user without a company. Refreshes the organization-scoped session.
Examples are synthetic and illustrate response shape; IDs, signatures, and credentials are not usable authority.
Request Bodyapplication/jsonrequired
name *string
Min length: 2Max length: 100
Response
200 · Successful response. A paused run is an application outcome, not an HTTP error.
organizationId *string
400 · Request validation failed.
error *string
reasonCode?string
403 · Console requests must come from the local owner workspace.
error *string
reasonCode?string
500 · The local service could not complete this request.
error *string
reasonCode?string
Request example
curl -X POST "https://service.example.com/api/v1/auth/company" \ -H "x-halfspan-owner: 1" \ -H "Content-Type: application/json" \ -d '{ "name": "Example Company" }'
Response example
{ "organizationId": "org_example" }