Create a project. Reserves a tenant; does not start the engine.
POST
/v0/projects
const url = 'https://infra-hyphae.run/v0/projects';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://infra-hyphae.run/v0/projects \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Examplegenerated
{ "name": "example"}Responses
Section titled “ Responses ”Project created in state stopped.
Media typeapplication/json
object
id
required
string
name
required
string
state
required
string
created_at
required
RFC 3339, UTC.
string format: date-time
updated_at
required
RFC 3339, UTC.
string format: date-time
native
required
object
pin
required
string
data_plane
required
string
Example
{ "state": "stopped", "native": { "pin": "3.0.0", "data_plane": "/v2" }}Malformed or out-of-bounds input (invalid_request).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Missing, malformed, duplicate, or unknown credential (authentication_required).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”WWW-Authenticate
string
The host cannot run tenants right now — engine binary missing, wrong pin, or ports exhausted (orchestrator_unavailable).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}