Hanzo AI
OpenapiSpace

Create spaces

Makes a new space for the caller's org and answers 201 with it.

POST /v1/space/spaces

Addresshttps://api.hanzo.ai/v1/space/spaces
MethodPOST
Operationpost_space_spaces
AuthAuthorization: Bearer $HANZO_API_KEY

Makes a new space for the caller's org and answers 201 with it.

The one bucket a space's files live in is derived from the caller's VALIDATED org, so an org can only ever create inside its own namespace and no request field can redirect that. A name already taken in the org is 409.

Billed per call: the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing created, and the debit lands only once the space exists.

Request

1 field, body application/json (required).

FieldInTypeRequiredDescription
namebodystringName is the space's name, matching ^a-z0-9?$ — the shape a drive name takes too, so a caller learns one rule.

Response

StatusBodyMeaning
201space.spaceItemcreated
defaultproblem-detailsrefused

201 body — 2 fields.

FieldInTypeAlwaysDescription
createdAtbodyinteger (int64)CreatedAt is when the space was made, in unix seconds.
namebodystringName is the space's name, as the org created it.

Failure carries the platform error shape — see Errors.

Examples

hanzo space spaces create

Space API · All Hanzo APIs · Interactive reference

How is this guide?

On this page