Skip to content

The projects of the organization: the namespace of its SVMs, snapshots, secrets, profiles and schedules

Resource, request and plan limits are listed on Limits.

Download OpenAPI specification · Version 0.1.0

List projects

GET
/projects

Returns every project of the organization of the key, oldest first. A new organization lists exactly its default project.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Response Body

Every project of the organization, oldest first; every organization has default, so the list is never empty.

application/json
  1. response

Every project of the organization, oldest first; every organization has default, so the list is never empty.

[index: integer]?

One project of the organization.

Example Request
curl -X GET 'https://api.slashinfra.com/projects'
Example Response
[  {    "created_ms": 1767225600000,    "id": "proj_6f1c0f0e8a",    "name": "staging"  }]

Create a project

POST
/projects

Creates a project within the max_projects of the plan. A project namespaces its SVMs, snapshots, secrets, profiles and schedules: a name repeats across projects, and a reference of one cannot name a resource of another.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Request Body

The name of the new project.

  1. body

The name of the new project.

name*string

The project name, ^[a-z][a-z0-9-]{0,31}$: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.

Response Body

One project of the organization.

application/json
  1. response

One project of the organization.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

id*string

The project id: proj_ and ten symbols of the SVM id alphabet.

name*string

The name of the project, unique in its organization.

Example Request
curl -X POST 'https://api.slashinfra.com/projects' \  -H 'Content-Type: application/json' \  -d '{  "name": "staging"}'
Example Response
{  "created_ms": 1767225600000,  "id": "proj_6f1c0f0e8a",  "name": "staging"}

Delete a project

DELETE
/projects/{ref}

Deletes a project that holds no machines, snapshots, secrets, profiles or schedules, and cannot be undone. The default project cannot be deleted.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The project id (proj_ and ten id symbols), or its name in the organization of the key.

Length1 <= length

Response Body

The project and its usage history are deleted; no body.

response?stringtext/plain

The project and its usage history are deleted; no body.

Example Request
curl -X DELETE 'https://api.slashinfra.com/projects/staging'
Example Response
"string"

Get a project

GET
/projects/{ref}

Returns one project of the caller's organization, by its id or by its name.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The project id (proj_ and ten id symbols), or its name in the organization of the key.

Length1 <= length

Response Body

One project of the organization.

application/json
  1. response

One project of the organization.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

id*string

The project id: proj_ and ten symbols of the SVM id alphabet.

name*string

The name of the project, unique in its organization.

Example Request
curl -X GET 'https://api.slashinfra.com/projects/staging'
Example Response
{  "created_ms": 1767225600000,  "id": "proj_6f1c0f0e8a",  "name": "staging"}

Rename a project

PATCH
/projects/{ref}

Changes the name of a project; its id and resources stay the same. The default project cannot be renamed.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The project id (proj_ and ten id symbols), or its name in the organization of the key.

Length1 <= length

Request Body

The new name of the project.

  1. body

The new name of the project.

name*string

The project name, ^[a-z][a-z0-9-]{0,31}$: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.

Response Body

One project of the organization.

application/json
  1. response

One project of the organization.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

id*string

The project id: proj_ and ten symbols of the SVM id alphabet.

name*string

The name of the project, unique in its organization.

Example Request
curl -X PATCH 'https://api.slashinfra.com/projects/staging' \  -H 'Content-Type: application/json' \  -d '{  "name": "staging"}'
Example Response
{  "created_ms": 1767225600000,  "id": "proj_6f1c0f0e8a",  "name": "staging"}