Create a space

View as Markdown

Create a space. Name, region, and environment are optional; omitted values use server defaults.

Authentication

AuthorizationBearer

Use Bearer <api-key>.

Headers

BCTRL-Subaccount-IdstringOptional
Optional effective subaccount context for organization API keys. Subaccount API keys are already scoped and cannot use this header to act as another subaccount.

Request

This endpoint expects an object.
environmentobjectOptional
namestringOptional1-200 characters
regionenumOptional

Response

Created
createdAtdatetime
RFC 3339 timestamp with a UTC offset.
environmentobject
idstring
Unique space identifier generated by BCTRL.
isDefaultboolean
namestring1-200 characters
regionenum
updatedAtdatetime
RFC 3339 timestamp with a UTC offset.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error