{
  "components": {
    "schemas": {},
    "securitySchemes": {
      "apiKey": {
        "description": "An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](/docs/reference/api).",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Create and manage projects, SVMs, their sizes and lifecycle, preview ports, disk snapshots, schedules and email inboxes, and read a project's usage and the organization's plan. Every request sends an API key as a bearer token. The control API also runs the `start`, `stop` and `pause` actions; an SVM that does not answer is still reachable here.",
    "title": "SlashInfra control API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/agent-sessions": {
      "get": {
        "description": "Returns the agent sessions of the organization, newest change first, at most 200; a `working` or `blocked` session of an SVM that is not running reads `paused`. Without the `project` query, the call returns every project that the key reads.",
        "operationId": "getAgent-sessions",
        "parameters": [
          {
            "description": "The project id or name to list; without it the call lists every project that the key reads. An unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name to list; without it the call lists every project that the key reads. An unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The endpoint of this browser's push subscription, which marks only that subscription as seen so the person's other browsers still get the push; without it nothing is marked.",
            "in": "query",
            "name": "seen",
            "required": false,
            "schema": {
              "description": "The endpoint of this browser's push subscription, which marks only that subscription as seen so the person's other browsers still get the push; without it nothing is marked.",
              "examples": [
                "https://fcm.googleapis.com/fcm/send/abc123"
              ],
              "maxLength": 2048,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The agent sessions that the credential reads.",
                  "properties": {
                    "sessions": {
                      "description": "The sessions of the organization, newest change first, at most 200.",
                      "items": {
                        "description": "One agent session of an SVM.",
                        "properties": {
                          "agent": {
                            "description": "The name of the coding agent.",
                            "examples": [
                              "claude"
                            ],
                            "type": "string"
                          },
                          "at_ms": {
                            "description": "The guest's report time in milliseconds since the Unix epoch, clamped to control's time.",
                            "examples": [
                              1767225600000
                            ],
                            "type": "integer"
                          },
                          "changed_ms": {
                            "description": "Control's time of the last state, kind or message change in milliseconds since the Unix epoch.",
                            "examples": [
                              1767225600000
                            ],
                            "type": "integer"
                          },
                          "cwd": {
                            "description": "The working directory of the session.",
                            "examples": [
                              "/home/user/project"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "The agent session id.",
                            "examples": [
                              "ags_0123456789ab"
                            ],
                            "type": "string"
                          },
                          "kind": {
                            "description": "What a blocked session waits for.",
                            "enum": [
                              "permission",
                              "question",
                              "auth"
                            ],
                            "examples": [
                              "permission"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "message": {
                            "description": "One line of what the session waits for.",
                            "examples": [
                              "May I edit src/main.rs?"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "project": {
                            "description": "The id of the project of the SVM.",
                            "examples": [
                              "proj_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "session": {
                            "description": "The agent's session name.",
                            "examples": [
                              "term-1234/build"
                            ],
                            "type": "string"
                          },
                          "state": {
                            "description": "`working`, `blocked`, `done` or `error`; a `working` or `blocked` session of an SVM that is not running reads `paused`.",
                            "enum": [
                              "working",
                              "blocked",
                              "done",
                              "error",
                              "paused"
                            ],
                            "examples": [
                              "blocked"
                            ],
                            "type": "string"
                          },
                          "svm": {
                            "description": "The id of the SVM that runs the agent.",
                            "examples": [
                              "6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "svm_name": {
                            "description": "The name of the SVM.",
                            "examples": [
                              "build-1"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "svm_state": {
                            "description": "The runtime state of the SVM, as `GET /svms` reports it.",
                            "enum": [
                              "running",
                              "paused",
                              "stopped",
                              "unknown",
                              "deleting"
                            ],
                            "examples": [
                              "running"
                            ],
                            "type": "string"
                          },
                          "terminal": {
                            "description": "The hc terminal id.",
                            "examples": [
                              "t3"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "svm",
                          "svm_name",
                          "svm_state",
                          "project",
                          "agent",
                          "session",
                          "state",
                          "kind",
                          "message",
                          "cwd",
                          "terminal",
                          "at_ms",
                          "changed_ms"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "sessions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The agent sessions that the credential reads."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List agent sessions",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/agent-sessions\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/agent-sessions/{id}": {
      "delete": {
        "description": "Deletes one agent session of the organization. An unknown id, or the id of another organization, is 404 `not_found`.",
        "operationId": "deleteAgent-sessionsById",
        "parameters": [
          {
            "description": "The agent session id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The agent session id.",
              "examples": [
                "ags_0123456789ab"
              ],
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The agent session is deleted, with no body.",
                  "type": "string"
                }
              }
            },
            "description": "The agent session is deleted, with no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`not_found`: Nothing exists at this address.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`not_found`: Nothing exists at this address."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete an agent session",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/agent-sessions/ags_0123456789ab\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/audit": {
      "get": {
        "description": "Returns the mutations of the organization, newest first, with the actor, action, target, time and client address of each. Filters combine with AND; each query parameter narrows the list.",
        "operationId": "getAudit",
        "parameters": [
          {
            "description": "The most rows to return: 1 to 200, 50 by default; any other value answers 400 `invalid_limit`.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "The most rows to return: 1 to 200, 50 by default; any other value answers 400 `invalid_limit`.",
              "examples": [
                "50"
              ],
              "type": "string"
            }
          },
          {
            "description": "The `next_cursor` of the previous page; an unreadable value answers 400 `invalid_cursor`.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "description": "The `next_cursor` of the previous page; an unreadable value answers 400 `invalid_cursor`.",
              "examples": [
                "MTc2NzIyNTYwMDAwMCw2ZjFjMGYwZThh"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only the rows of this action, such as `project.create`; omitted, every action is listed.",
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "description": "Only the rows of this action, such as `project.create`; omitted, every action is listed.",
              "examples": [
                "project.create"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only the rows of this actor, exactly: `user:<id>`, `key:<id>`, `node:<name>`, `operator` or `system`; an empty value answers 400 `invalid_actor`, and an omitted one lists every actor.",
            "in": "query",
            "name": "actor",
            "required": false,
            "schema": {
              "description": "Only the rows of this actor, exactly: `user:<id>`, `key:<id>`, `node:<name>`, `operator` or `system`; an empty value answers 400 `invalid_actor`, and an omitted one lists every actor.",
              "examples": [
                "user:8Xk2mQ4pLd",
                "key:6f1c0f0e8a"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only the rows at or after this time, in Unix epoch milliseconds; a value that is not a non-negative whole number answers 400 `invalid_range`.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "description": "Only the rows at or after this time, in Unix epoch milliseconds; a value that is not a non-negative whole number answers 400 `invalid_range`.",
              "examples": [
                "1767225600000"
              ],
              "type": "string"
            }
          },
          {
            "description": "Only the rows before this time, in Unix epoch milliseconds; a value that is not a non-negative whole number answers 400 `invalid_range`.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "description": "Only the rows before this time, in Unix epoch milliseconds; a value that is not a non-negative whole number answers 400 `invalid_range`.",
              "examples": [
                "1767312000000"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One page of the audit log of the organization.",
                  "properties": {
                    "entries": {
                      "description": "The audit rows of the organization, newest first; a row older than 90 days is deleted by the daily sweep.",
                      "items": {
                        "description": "One mutation of the organization: who changed what, when and from where.",
                        "properties": {
                          "action": {
                            "description": "What changed, as `<resource>.<verb>`.",
                            "examples": [
                              "project.create",
                              "project.rename",
                              "storage.rotate",
                              "join_token.mint",
                              "apikey.revoke",
                              "member.role_update"
                            ],
                            "type": "string"
                          },
                          "actor": {
                            "description": "Who made the change: `user:<id>` for a session, `key:<id>` for an API key, `node:<name>` for a node, or `operator`.",
                            "examples": [
                              "user:8Xk2mQ4pLd",
                              "key:6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "at_ms": {
                            "description": "The time of the change in Unix epoch milliseconds.",
                            "examples": [
                              1767225600000
                            ],
                            "type": "integer"
                          },
                          "details": {
                            "description": "The fields that the action needs, such as the name or the new limits; the column never holds a secret: no token, key or password.",
                            "examples": [
                              {
                                "name": "staging"
                              }
                            ],
                            "patternProperties": {
                              "^.*$": {}
                            },
                            "type": "object"
                          },
                          "id": {
                            "description": "The id of the row: ten symbols of the id alphabet.",
                            "examples": [
                              "6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "ip": {
                            "description": "The client address of the request (`cf-connecting-ip`), or `null` when the request had none.",
                            "examples": [
                              "203.0.113.9"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "target": {
                            "description": "The row that changed, as `<resource>:<id>`.",
                            "examples": [
                              "project:proj_6f1c0f0e8a"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "actor",
                          "action",
                          "target",
                          "ip",
                          "at_ms",
                          "details"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "description": "The opaque cursor of the next page, or `null` on the last page; send it back as `cursor`.",
                      "examples": [
                        "MTc2NzIyNTYwMDAwMCw2ZjFjMGYwZThh"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "entries",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One page of the audit log of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_limit`: The limit is not valid.\n`invalid_cursor`: The cursor is not valid.\n`invalid_actor`: The actor is not valid.\n`invalid_range`: The time range is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_limit`: The limit is not valid.\n`invalid_cursor`: The cursor is not valid.\n`invalid_actor`: The actor is not valid.\n`invalid_range`: The time range is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read the audit log",
        "tags": [
          "Audit"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/audit?limit=50&action=project.create\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/connections": {
      "get": {
        "description": "Returns every OAuth connection of the organization with its provider, account and refresh state; the tokens stay in the vault and never appear in an answer. An injection rule names a connection as `connection:<id>`.",
        "operationId": "getConnections",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Every connection of the organization, newest first; `[]` when there are none.",
                  "items": {
                    "description": "One connection of the organization, which holds no token.",
                    "properties": {
                      "account": {
                        "description": "The account at the provider, for display.",
                        "examples": [
                          "ada"
                        ],
                        "type": "string"
                      },
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "id": {
                        "description": "The connection id: `conn_` and ten symbols of the SVM id alphabet.",
                        "examples": [
                          "conn_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "provider": {
                        "description": "The provider id of the vault registry.",
                        "examples": [
                          "github"
                        ],
                        "type": "string"
                      },
                      "status": {
                        "description": "`active` after the callback, or `error` after a refresh failed; a token that is still valid keeps working.",
                        "enum": [
                          "active",
                          "error"
                        ],
                        "examples": [
                          "active"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "provider",
                      "account",
                      "status",
                      "created_ms"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Every connection of the organization, newest first; `[]` when there are none."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List connections",
        "tags": [
          "Connections"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/connections\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Starts a connection flow for one provider: OAuth2 gets an authorize URL built with PKCE, and the GitHub App gets its install URL. The provider sends the person back to `GET /connections/callback`, which stores the connection.",
        "operationId": "postConnections",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The provider to connect.",
                "properties": {
                  "provider": {
                    "description": "The provider id of the registry, such as `github`; a provider whose kind is not enabled answers 400 `provider_unavailable`.",
                    "examples": [
                      "github"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "provider"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The provider to connect.",
                "properties": {
                  "provider": {
                    "description": "The provider id of the registry, such as `github`; a provider whose kind is not enabled answers 400 `provider_unavailable`.",
                    "examples": [
                      "github"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "provider"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The provider to connect.",
                "properties": {
                  "provider": {
                    "description": "The provider id of the registry, such as `github`; a provider whose kind is not enabled answers 400 `provider_unavailable`.",
                    "examples": [
                      "github"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "provider"
                ],
                "type": "object"
              }
            }
          },
          "description": "The provider to connect.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The authorize URL of the provider; the connection exists only after its callback.",
                  "properties": {
                    "authorize_url": {
                      "description": "The URL to send the person to; its signed `state` names the organization, the provider, a ten-minute expiry and a single-use nonce.",
                      "examples": [
                        "https://github.com/login/oauth/authorize?response_type=code&client_id=...&state=..."
                      ],
                      "type": "string"
                    },
                    "id": {
                      "description": "The id that the connection gets when the flow finishes: `GET /connections/:id` answers 404 `connection_not_found` until then, so a client polls it to learn when the person approved.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "authorize_url"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The authorize URL of the provider; the connection exists only after its callback."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unknown_provider`: This provider is not supported.\n`provider_unavailable`: This provider is not available.\n`connection_failed`: The connection could not be completed.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unknown_provider`: This provider is not supported.\n`provider_unavailable`: This provider is not available.\n`connection_failed`: The connection could not be completed."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Start a connection",
        "tags": [
          "Connections"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org connection add github"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/connections\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"provider\":\"github\"}'"
          }
        ]
      }
    },
    "/connections/{id}": {
      "delete": {
        "description": "Deletes the connection and its tokens; an active SVM whose rules reference `connection:<id>` answers 409 `connection_in_use`, so remove those rules first. Profiles do not block the delete.",
        "operationId": "deleteConnectionsById",
        "parameters": [
          {
            "description": "The connection id, `conn_` and ten id symbols.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The connection id, `conn_` and ten id symbols.",
              "examples": [
                "conn_6f1c0f0e8a"
              ],
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The connection and its tokens are deleted, with no body.",
                  "type": "string"
                }
              }
            },
            "description": "The connection and its tokens are deleted, with no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`connection_not_found`: This connection does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`connection_not_found`: This connection does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`connection_in_use`: This connection is in use.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`connection_in_use`: This connection is in use."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a connection",
        "tags": [
          "Connections"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/connections/conn_6f1c0f0e8a\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "get": {
        "description": "Returns one connection and the rules that attach it to an SVM: the provider's `inject` list, expanded with `secret_id` = `connection:<id>`. Submit those rules in `POST /svms` or a profile.",
        "operationId": "getConnectionsById",
        "parameters": [
          {
            "description": "The connection id, `conn_` and ten id symbols.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The connection id, `conn_` and ten id symbols.",
              "examples": [
                "conn_6f1c0f0e8a"
              ],
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One connection with the rules that attach it to an SVM: the preset expansion of its provider.",
                  "properties": {
                    "account": {
                      "description": "The account at the provider, for display.",
                      "examples": [
                        "ada"
                      ],
                      "type": "string"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "env": {
                      "description": "The environment that the rules need: `GH_TOKEN=injected` for GitHub, so `gh` sends a header for the vault to replace.",
                      "examples": [
                        {
                          "GH_TOKEN": "injected"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "id": {
                      "description": "The connection id: `conn_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "provider": {
                      "description": "The provider id of the vault registry.",
                      "examples": [
                        "github"
                      ],
                      "type": "string"
                    },
                    "secret_id": {
                      "description": "The reference that an injection rule names: `connection:<id>`.",
                      "examples": [
                        "connection:conn_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "secret_injections": {
                      "description": "The expanded `inject` rules of the provider, with `secret_id` set to this connection: submit them in a create or a profile.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "status": {
                      "description": "`active` after the callback, or `error` after a refresh failed; a token that is still valid keeps working.",
                      "enum": [
                        "active",
                        "error"
                      ],
                      "examples": [
                        "active"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "provider",
                    "account",
                    "status",
                    "created_ms",
                    "secret_id",
                    "secret_injections",
                    "env"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One connection with the rules that attach it to an SVM: the preset expansion of its provider."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`connection_not_found`: This connection does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`connection_not_found`: This connection does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a connection",
        "tags": [
          "Connections"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/connections/conn_6f1c0f0e8a\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/databases": {
      "get": {
        "description": "Returns every database of one project with its branches, its connection without the password and the RPO. A branch is a machine of its own: the branch names come from its `si.branch` label, of the machines with `si.db=<name>`.",
        "operationId": "getDatabases",
        "parameters": [
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Every database of the project, newest first; a project with none gets `[]`.",
                  "items": {
                    "description": "One Postgres database of the project and its branches.",
                    "properties": {
                      "branches": {
                        "description": "The branches of the database, `main` first; each is a machine of its own.",
                        "examples": [
                          [
                            "main",
                            "dev"
                          ]
                        ],
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "connection": {
                        "description": "How a client reaches the database; its URL and password are never part of it after the create answer.",
                        "properties": {
                          "forward": {
                            "description": "The `si port forward` command that opens a local TCP port to the database, for a client that speaks Postgres directly.",
                            "examples": [
                              "si port forward 6f1c0f0e8a 5432"
                            ],
                            "type": "string"
                          },
                          "internal": {
                            "description": "The private name of the machine inside its project, with the Postgres port: any SVM of the same project reaches it without a key.",
                            "examples": [
                              "db-app.default.internal:5432"
                            ],
                            "type": "string"
                          },
                          "user": {
                            "description": "The Postgres role of the database, in every branch.",
                            "examples": [
                              "user"
                            ],
                            "type": "string"
                          },
                          "wss": {
                            "description": "The WebSocket endpoint of the database through its node: `wss://<WSPROXY_PORT>-<id>.<machine domain>/v1?address=127.0.0.1:5432`, public because Postgres SCRAM authenticates.",
                            "examples": [
                              "wss://6543-6f1c0f0e8a.slashinfra.dev/v1?address=127.0.0.1:5432"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "wss",
                          "internal",
                          "forward",
                          "user"
                        ],
                        "type": "object"
                      },
                      "id": {
                        "description": "The machine id of the main branch: ten symbols of the SVM id alphabet.",
                        "examples": [
                          "6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "description": "The name of the database, unique in its project.",
                        "examples": [
                          "app"
                        ],
                        "type": "string"
                      },
                      "project": {
                        "description": "The id of the project of the database.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "rpo": {
                        "description": "The recovery point objective: the last checkpoint of the disk, at most 60 s or 512 MiB of writes behind; dev and preview only.",
                        "examples": [
                          "last checkpoint (≤ 60 s or 512 MiB of writes); dev/preview only"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "project",
                      "branches",
                      "connection",
                      "rpo"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Every database of the project, newest first; a project with none gets `[]`."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List databases",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/databases?project=staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Creates a Postgres 19 database `db-<name>` with a public wsproxy port on 6543; its password is in the secret `db:<name>:main` and is answered once, with the URL. Dev and preview only; see [Postgres](/docs/platform/postgres).",
        "operationId": "postDatabases",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The name and optional size of the new database.",
                "properties": {
                  "name": {
                    "description": "The name of the database, unique in its project: `db-<name>` must fit the SVM name rules (`^[a-z][a-z0-9-]{0,31}$`).",
                    "examples": [
                      "app"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name that the database belongs to; `default` when omitted.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "size": {
                    "description": "The base memory of every branch in MiB, a whole number from 512 to 16384 in steps of 512; 512 (the `xs` size) when absent.",
                    "examples": [
                      512
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The name and optional size of the new database.",
                "properties": {
                  "name": {
                    "description": "The name of the database, unique in its project: `db-<name>` must fit the SVM name rules (`^[a-z][a-z0-9-]{0,31}$`).",
                    "examples": [
                      "app"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name that the database belongs to; `default` when omitted.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "size": {
                    "description": "The base memory of every branch in MiB, a whole number from 512 to 16384 in steps of 512; 512 (the `xs` size) when absent.",
                    "examples": [
                      512
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The name and optional size of the new database.",
                "properties": {
                  "name": {
                    "description": "The name of the database, unique in its project: `db-<name>` must fit the SVM name rules (`^[a-z][a-z0-9-]{0,31}$`).",
                    "examples": [
                      "app"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name that the database belongs to; `default` when omitted.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "size": {
                    "description": "The base memory of every branch in MiB, a whole number from 512 to 16384 in steps of 512; 512 (the `xs` size) when absent.",
                    "examples": [
                      512
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "description": "The name and optional size of the new database.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "A new database, with its connection and the password that is answered once.",
                  "properties": {
                    "branches": {
                      "description": "The branches of the new database: `main`.",
                      "examples": [
                        [
                          "main"
                        ]
                      ],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "connection": {
                      "description": "The connection of a new database or branch, with the URL and password that it answers once.",
                      "properties": {
                        "forward": {
                          "description": "The `si port forward` command that opens a local TCP port to the database.",
                          "type": "string"
                        },
                        "internal": {
                          "description": "The private name of the machine inside its project, with the Postgres port.",
                          "type": "string"
                        },
                        "password": {
                          "description": "The generated password of the role: 32 random bytes, base64url; it is never part of a later answer.",
                          "type": "string"
                        },
                        "url": {
                          "description": "The Postgres URL of the branch, `postgresql://<user>:<password>@<machine>.<project>.internal:5432/postgres`, with the password percent-encoded; it is answered once, here.",
                          "examples": [
                            "postgresql://user:s3cret@db-app.default.internal:5432/postgres"
                          ],
                          "type": "string"
                        },
                        "user": {
                          "description": "The Postgres role of the database, in every branch.",
                          "type": "string"
                        },
                        "wss": {
                          "description": "The WebSocket endpoint of the database through its node.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "wss",
                        "internal",
                        "url",
                        "forward",
                        "user",
                        "password"
                      ],
                      "type": "object"
                    },
                    "id": {
                      "description": "The machine id of the main branch.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the database.",
                      "examples": [
                        "app"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the database.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "rpo": {
                      "description": "The recovery point objective of a database; dev and preview only.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "project",
                    "branches",
                    "connection",
                    "rpo"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A new database, with its connection and the password that is answered once."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_size`: The size is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_size`: The size is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`databases_not_allowed`: Your plan does not include databases.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`databases_not_allowed`: Your plan does not include databases."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`size_unavailable`: This size is not available.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`size_unavailable`: This size is not available."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`database_create_failed`: The database could not be created.\n`database_init_failed`: The database did not start.\n`no_capacity`: There is no free capacity right now.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`database_create_failed`: The database could not be created.\n`database_init_failed`: The database did not start.\n`no_capacity`: There is no free capacity right now."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a database",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/databases\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"app\",\"size\":512}'"
          }
        ]
      }
    },
    "/databases/{name}": {
      "delete": {
        "description": "Deletes every branch machine of the database, its `backup` snapshots and its `db:<name>:*` secrets, and writes the `database.delete` audit row. The delete of a machine is confirmed by its node, as for any SVM.",
        "operationId": "deleteDatabasesByName",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "Every branch machine is deleting, and its backup snapshots and password secrets are gone; no body.",
                  "type": "string"
                }
              }
            },
            "description": "Every branch machine is deleting, and its backup snapshots and password secrets are gone; no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a database",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/databases/app\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "get": {
        "description": "Returns one database of the project with its branches, its connection without the password and the RPO. The password is never part of this answer.",
        "operationId": "getDatabasesByName",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One Postgres database of the project and its branches.",
                  "properties": {
                    "branches": {
                      "description": "The branches of the database, `main` first; each is a machine of its own.",
                      "examples": [
                        [
                          "main",
                          "dev"
                        ]
                      ],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "connection": {
                      "description": "How a client reaches the database; its URL and password are never part of it after the create answer.",
                      "properties": {
                        "forward": {
                          "description": "The `si port forward` command that opens a local TCP port to the database, for a client that speaks Postgres directly.",
                          "examples": [
                            "si port forward 6f1c0f0e8a 5432"
                          ],
                          "type": "string"
                        },
                        "internal": {
                          "description": "The private name of the machine inside its project, with the Postgres port: any SVM of the same project reaches it without a key.",
                          "examples": [
                            "db-app.default.internal:5432"
                          ],
                          "type": "string"
                        },
                        "user": {
                          "description": "The Postgres role of the database, in every branch.",
                          "examples": [
                            "user"
                          ],
                          "type": "string"
                        },
                        "wss": {
                          "description": "The WebSocket endpoint of the database through its node: `wss://<WSPROXY_PORT>-<id>.<machine domain>/v1?address=127.0.0.1:5432`, public because Postgres SCRAM authenticates.",
                          "examples": [
                            "wss://6543-6f1c0f0e8a.slashinfra.dev/v1?address=127.0.0.1:5432"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "wss",
                        "internal",
                        "forward",
                        "user"
                      ],
                      "type": "object"
                    },
                    "id": {
                      "description": "The machine id of the main branch: ten symbols of the SVM id alphabet.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the database, unique in its project.",
                      "examples": [
                        "app"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the database.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "rpo": {
                      "description": "The recovery point objective: the last checkpoint of the disk, at most 60 s or 512 MiB of writes behind; dev and preview only.",
                      "examples": [
                        "last checkpoint (≤ 60 s or 512 MiB of writes); dev/preview only"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "project",
                    "branches",
                    "connection",
                    "rpo"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One Postgres database of the project and its branches."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a database",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/databases/app\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/databases/{name}/backups": {
      "get": {
        "description": "Returns the `backup` snapshots of every branch of the database, newest first, with their state and sizes. A database without a backup gets `[]`.",
        "operationId": "getDatabasesByNameBackups",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The `backup` snapshots of the database, newest first; a database without a backup gets `[]`.",
                  "items": {
                    "description": "One disk-only snapshot.",
                    "properties": {
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1762747200000
                        ],
                        "type": "integer"
                      },
                      "error": {
                        "description": "The catalog code of a failed capture.",
                        "examples": [
                          "timeout"
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "expires_ms": {
                        "description": "When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.",
                        "examples": [
                          1765339200000
                        ],
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "id": {
                        "description": "The snapshot id: ten symbols of the same alphabet as an SVM id.",
                        "examples": [
                          "0zs0pshr3x"
                        ],
                        "type": "string"
                      },
                      "kind": {
                        "description": "Who made the snapshot: `user` for a request, `fork` for the capture of a `fork_of` create, or `backup` for a schedule run; only `user` snapshots count against the plan quota.",
                        "enum": [
                          "user",
                          "fork",
                          "backup"
                        ],
                        "examples": [
                          "user"
                        ],
                        "type": "string"
                      },
                      "logical_bytes": {
                        "description": "The used bytes of the disk inside the snapshot. `0` while it is creating.",
                        "examples": [
                          2147483648
                        ],
                        "type": "integer"
                      },
                      "name": {
                        "description": "The name of the snapshot, unique in its project.",
                        "examples": [
                          "build-1-20261110-031900"
                        ],
                        "type": "string"
                      },
                      "project": {
                        "description": "The id of the project of the snapshot.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "source": {
                        "description": "The SVM that was snapshotted.",
                        "examples": [
                          "6f1c0f0e8a"
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "state": {
                        "description": "`creating` while the node captures the disk, then `ready` with its sizes, or `failed`.",
                        "enum": [
                          "creating",
                          "ready",
                          "failed"
                        ],
                        "examples": [
                          "ready"
                        ],
                        "type": "string"
                      },
                      "stored_bytes": {
                        "description": "The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts `0`, so this is not the current storage cost. `0` while it is creating.",
                        "examples": [
                          536870912
                        ],
                        "type": "integer"
                      },
                      "used_by": {
                        "description": "The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "id",
                      "project",
                      "name",
                      "state",
                      "kind",
                      "error",
                      "source",
                      "created_ms",
                      "expires_ms",
                      "logical_bytes",
                      "stored_bytes",
                      "used_by"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The `backup` snapshots of the database, newest first; a database without a backup gets `[]`."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List database backups",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/databases/app/backups\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Creates the one `snapshot` schedule of the main branch: every fire runs `CHECKPOINT` over exec, captures the disk as a `backup` snapshot named `<schedule>-YYYYMMDDTHHMMSSZ`, and keeps the newest `keep` backups. `GET /databases/:name/backups` lists them. The RPO of a restore is the last checkpoint, at most 60 s or 512 MiB of writes behind.",
        "operationId": "postDatabasesByNameBackups",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The schedule of the automatic backups of the main branch.",
                "properties": {
                  "cron": {
                    "description": "A five-field cron whose next two fires are at least the plan minimum apart.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "keep": {
                    "description": "How many `backup` snapshots of the schedule to keep, from 1 to 100.",
                    "examples": [
                      7
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "cron",
                  "keep"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The schedule of the automatic backups of the main branch.",
                "properties": {
                  "cron": {
                    "description": "A five-field cron whose next two fires are at least the plan minimum apart.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "keep": {
                    "description": "How many `backup` snapshots of the schedule to keep, from 1 to 100.",
                    "examples": [
                      7
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "cron",
                  "keep"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The schedule of the automatic backups of the main branch.",
                "properties": {
                  "cron": {
                    "description": "A five-field cron whose next two fires are at least the plan minimum apart.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "keep": {
                    "description": "How many `backup` snapshots of the schedule to keep, from 1 to 100.",
                    "examples": [
                      7
                    ],
                    "type": "integer"
                  }
                },
                "required": [
                  "cron",
                  "keep"
                ],
                "type": "object"
              }
            }
          },
          "description": "The schedule of the automatic backups of the main branch.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One schedule of an SVM.",
                  "properties": {
                    "action": {
                      "anyOf": [
                        {
                          "description": "A command run in the SVM.",
                          "properties": {
                            "command": {
                              "description": "The shell command, run by the node with `bash -lc`.",
                              "examples": [
                                "make backup"
                              ],
                              "type": "string"
                            },
                            "timeout_s": {
                              "description": "The time limit in seconds.",
                              "examples": [
                                600
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a command.",
                              "enum": [
                                "command"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "command"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A message that the schedule puts into the inbox of the SVM.",
                          "properties": {
                            "subject": {
                              "description": "The subject of the message.",
                              "examples": [
                                "Nightly backup"
                              ],
                              "type": "string"
                            },
                            "text": {
                              "description": "The text of the message.",
                              "examples": [
                                "The backup finished."
                              ],
                              "type": "string"
                            },
                            "type": {
                              "description": "The action is an inbox message.",
                              "enum": [
                                "inbox"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "subject",
                            "text"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A disk-only snapshot of the SVM, named `<schedule>-YYYYMMDDTHHMMSSZ`; older backups beyond `keep` are deleted.",
                          "properties": {
                            "before": {
                              "description": "A command that runs before the capture; a non-zero exit fails the run and takes no snapshot.",
                              "examples": [
                                "CHECKPOINT"
                              ],
                              "type": "string"
                            },
                            "keep": {
                              "description": "How many `backup` snapshots of this schedule to keep, from 1 to 100.",
                              "examples": [
                                7
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a disk snapshot.",
                              "enum": [
                                "snapshot"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "keep"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The command, inbox message or snapshot of one fire."
                    },
                    "concurrency": {
                      "description": "`skip` refuses a fire while the previous run still runs; `allow` starts both.",
                      "enum": [
                        "skip",
                        "allow"
                      ],
                      "type": "string"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "cron": {
                      "description": "The normalized five-field cron.",
                      "examples": [
                        "0 3 * * *"
                      ],
                      "type": "string"
                    },
                    "enabled": {
                      "description": "Whether the minute tick fires it.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "id": {
                      "description": "The schedule id.",
                      "examples": [
                        "01JCK3AAAAAAAAAAAAAAAAAAAA"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the schedule, unique per SVM.",
                      "examples": [
                        "nightly-backup"
                      ],
                      "type": "string"
                    },
                    "next_at": {
                      "description": "The next fire in milliseconds since the Unix epoch; it moves when the tick claims a run.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "project": {
                      "description": "The id of the project of the SVM, which the schedule inherits and never takes as a parameter.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "timezone": {
                      "description": "The IANA timezone of the cron.",
                      "examples": [
                        "Europe/Berlin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "cron",
                    "timezone",
                    "action",
                    "concurrency",
                    "enabled",
                    "next_at",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One schedule of an SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_cron`: The cron is not valid.\n`schedule_too_frequent`: The schedule runs too often.\n`invalid_keep`: The number to keep is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_cron`: The cron is not valid.\n`schedule_too_frequent`: The schedule runs too often.\n`invalid_keep`: The number to keep is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Schedule database backups",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/databases/app/backups\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"cron\":\"0 3 * * *\",\"keep\":7}'"
          }
        ]
      }
    },
    "/databases/{name}/branches": {
      "post": {
        "description": "Creates a branch machine `db-<database>-<branch>` forked from the `from` branch (`main` by default), or started from a `backup` snapshot. The answer carries the branch URL and password once; see [Postgres](/docs/platform/postgres).",
        "operationId": "postDatabasesByNameBranches",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The name of the branch and where its disk comes from.",
                "properties": {
                  "from": {
                    "description": "The branch to fork, by its name; `main` when absent, and an unknown branch answers 404.",
                    "examples": [
                      "main"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "The name of the branch: the machine name `db-<database>-<name>` must fit the SVM name rules, and `main` is the database itself.",
                    "examples": [
                      "dev"
                    ],
                    "type": "string"
                  },
                  "snapshot": {
                    "description": "A `backup` snapshot of this database to start the branch from, by id or name; it wins over `from`, and a snapshot of another database answers 404.",
                    "examples": [
                      "nightly-20261122T100500Z"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The name of the branch and where its disk comes from.",
                "properties": {
                  "from": {
                    "description": "The branch to fork, by its name; `main` when absent, and an unknown branch answers 404.",
                    "examples": [
                      "main"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "The name of the branch: the machine name `db-<database>-<name>` must fit the SVM name rules, and `main` is the database itself.",
                    "examples": [
                      "dev"
                    ],
                    "type": "string"
                  },
                  "snapshot": {
                    "description": "A `backup` snapshot of this database to start the branch from, by id or name; it wins over `from`, and a snapshot of another database answers 404.",
                    "examples": [
                      "nightly-20261122T100500Z"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The name of the branch and where its disk comes from.",
                "properties": {
                  "from": {
                    "description": "The branch to fork, by its name; `main` when absent, and an unknown branch answers 404.",
                    "examples": [
                      "main"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "The name of the branch: the machine name `db-<database>-<name>` must fit the SVM name rules, and `main` is the database itself.",
                    "examples": [
                      "dev"
                    ],
                    "type": "string"
                  },
                  "snapshot": {
                    "description": "A `backup` snapshot of this database to start the branch from, by id or name; it wins over `from`, and a snapshot of another database answers 404.",
                    "examples": [
                      "nightly-20261122T100500Z"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "description": "The name of the branch and where its disk comes from.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "A new branch of a database, with its own connection and the copied password that is answered once.",
                  "properties": {
                    "branches": {
                      "description": "Every branch of the database, `main` first.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "connection": {
                      "description": "The connection of a new database or branch, with the URL and password that it answers once.",
                      "properties": {
                        "forward": {
                          "description": "The `si port forward` command that opens a local TCP port to the database.",
                          "type": "string"
                        },
                        "internal": {
                          "description": "The private name of the machine inside its project, with the Postgres port.",
                          "type": "string"
                        },
                        "password": {
                          "description": "The generated password of the role: 32 random bytes, base64url; it is never part of a later answer.",
                          "type": "string"
                        },
                        "url": {
                          "description": "The Postgres URL of the branch, `postgresql://<user>:<password>@<machine>.<project>.internal:5432/postgres`, with the password percent-encoded; it is answered once, here.",
                          "examples": [
                            "postgresql://user:s3cret@db-app.default.internal:5432/postgres"
                          ],
                          "type": "string"
                        },
                        "user": {
                          "description": "The Postgres role of the database, in every branch.",
                          "type": "string"
                        },
                        "wss": {
                          "description": "The WebSocket endpoint of the database through its node.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "wss",
                        "internal",
                        "url",
                        "forward",
                        "user",
                        "password"
                      ],
                      "type": "object"
                    },
                    "database": {
                      "description": "The name of the database that the branch belongs to.",
                      "examples": [
                        "app"
                      ],
                      "type": "string"
                    },
                    "id": {
                      "description": "The machine id of the new branch.",
                      "examples": [
                        "6f1c0f0e8b"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the branch.",
                      "examples": [
                        "dev"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the database.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "rpo": {
                      "description": "The recovery point objective of a database; dev and preview only.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "database",
                    "project",
                    "branches",
                    "connection",
                    "rpo"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A new branch of a database, with its own connection and the copied password that is answered once."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_size`: The size is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_size`: The size is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`databases_not_allowed`: Your plan does not include databases.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`databases_not_allowed`: Your plan does not include databases."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.\n`branch_not_found`: This branch does not exist.\n`snapshot_not_found`: This snapshot does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.\n`branch_not_found`: This branch does not exist.\n`snapshot_not_found`: This snapshot does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.\n`not_a_backup`: This snapshot is not a backup.\n`password_missing`: This branch has no stored password.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used.\n`not_a_backup`: This snapshot is not a backup.\n`password_missing`: This branch has no stored password."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`database_create_failed`: The database could not be created.\n`database_unavailable`: The database is not answering.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`database_create_failed`: The database could not be created.\n`database_unavailable`: The database is not answering."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a branch",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/databases/app/branches\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"dev\"}'"
          }
        ]
      }
    },
    "/databases/{name}/branches/{branch}": {
      "delete": {
        "description": "Deletes one branch machine and its password secret. `main` is the database: it answers 409 `main_branch`, and `DELETE /databases/:name` deletes the database.",
        "operationId": "deleteDatabasesByNameBranchesByBranch",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The branch name: `si.branch` of its machine, `main` for the database itself.",
            "in": "path",
            "name": "branch",
            "required": true,
            "schema": {
              "description": "The branch name: `si.branch` of its machine, `main` for the database itself.",
              "examples": [
                "dev"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The branch machine is deleting and its password secret is gone; no body.",
                  "type": "string"
                }
              }
            },
            "description": "The branch machine is deleting and its password secret is gone; no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.\n`branch_not_found`: This branch does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.\n`branch_not_found`: This branch does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`main_branch`: The main branch cannot be deleted.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`main_branch`: The main branch cannot be deleted."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a branch",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/databases/app/branches/dev\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/databases/{name}/branches/{branch}/password": {
      "post": {
        "description": "Generates a new 32-byte password, changes the Postgres role with `ALTER ROLE` over exec, then replaces the project secret `db:<database>:<branch>`. The answer carries the branch connection with the new URL and password once; an old connection stops working at the next authentication.",
        "operationId": "postDatabasesByNameBranchesByBranchPassword",
        "parameters": [
          {
            "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "description": "The name of the database: the `si.db` label of its machines, unique in the project.",
              "examples": [
                "app"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The branch name: `si.branch` of its machine, `main` for the database itself.",
            "in": "path",
            "name": "branch",
            "required": true,
            "schema": {
              "description": "The branch name: `si.branch` of its machine, `main` for the database itself.",
              "examples": [
                "dev"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The connection of the branch with its new password and URL, answered once.",
                  "properties": {
                    "connection": {
                      "description": "The connection of a new database or branch, with the URL and password that it answers once.",
                      "properties": {
                        "forward": {
                          "description": "The `si port forward` command that opens a local TCP port to the database.",
                          "type": "string"
                        },
                        "internal": {
                          "description": "The private name of the machine inside its project, with the Postgres port.",
                          "type": "string"
                        },
                        "password": {
                          "description": "The generated password of the role: 32 random bytes, base64url; it is never part of a later answer.",
                          "type": "string"
                        },
                        "url": {
                          "description": "The Postgres URL of the branch, `postgresql://<user>:<password>@<machine>.<project>.internal:5432/postgres`, with the password percent-encoded; it is answered once, here.",
                          "examples": [
                            "postgresql://user:s3cret@db-app.default.internal:5432/postgres"
                          ],
                          "type": "string"
                        },
                        "user": {
                          "description": "The Postgres role of the database, in every branch.",
                          "type": "string"
                        },
                        "wss": {
                          "description": "The WebSocket endpoint of the database through its node.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "wss",
                        "internal",
                        "url",
                        "forward",
                        "user",
                        "password"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "connection"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The connection of the branch with its new password and URL, answered once."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.\n`branch_not_found`: This branch does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`database_not_found`: This database does not exist.\n`branch_not_found`: This branch does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`password_missing`: This branch has no stored password.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`password_missing`: This branch has no stored password."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`database_unavailable`: The database is not answering.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`database_unavailable`: The database is not answering."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rotate a branch password",
        "tags": [
          "Databases"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/databases/app/branches/dev/password\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/keys/current": {
      "delete": {
        "description": "Deletes the key sent in the `Authorization: Bearer` header, so that it cannot make another request; use it to revoke a key you hold.",
        "operationId": "deleteKeysCurrent",
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The key of the request is deleted, and the API gateway rejects it within 30 seconds; no body.",
                  "type": "string"
                }
              }
            },
            "description": "The key of the request is deleted, and the API gateway rejects it within 30 seconds; no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete the key of this request",
        "tags": [
          "Keys"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si auth logout"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/keys/current\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/profiles": {
      "get": {
        "description": "Returns every reusable workload profile of one project, by name. `project` is an id or name and defaults to `default`. A profile holds environment, inbox, domain filter, secret injection, sleep, readiness and concurrency settings; an SVM copies them at creation.",
        "operationId": "getProfiles",
        "parameters": [
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Every workload profile of the project, by name; `[]` when the project has none.",
                  "items": {
                    "description": "One reusable workload profile of the organization.",
                    "properties": {
                      "concurrency": {
                        "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                        "examples": [
                          64
                        ],
                        "type": "number"
                      },
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "egress": {
                        "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                        "properties": {
                          "allowed_domains": {
                            "items": {
                              "description": "An exact hostname, or `*.domain` for its subdomains only.",
                              "examples": [
                                "api.example.com"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "filtering": {
                            "description": "Whether domain filtering is on.",
                            "examples": [
                              true
                            ],
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "filtering",
                          "allowed_domains"
                        ],
                        "type": "object"
                      },
                      "env": {
                        "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                        "examples": [
                          {
                            "DEBUG": "1"
                          }
                        ],
                        "patternProperties": {
                          "^.*$": {
                            "description": "The value of the variable, which may not hold a NUL byte.",
                            "examples": [
                              "1"
                            ],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "github": {
                        "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                        "examples": [
                          "conn_6f1c0f0e8a"
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "id": {
                        "description": "The profile id: `prof_` and ten symbols of the SVM id alphabet.",
                        "examples": [
                          "prof_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "inbox": {
                        "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                        "properties": {
                          "allowed_senders": {
                            "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                            "examples": [
                              [
                                "ada@example.com"
                              ]
                            ],
                            "items": {
                              "description": "One exact SMTP envelope sender address, lowercased on save.",
                              "examples": [
                                "ada@example.com"
                              ],
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "enabled": {
                            "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                            "examples": [
                              true
                            ],
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "enabled",
                          "allowed_senders"
                        ],
                        "type": "object"
                      },
                      "name": {
                        "description": "The name of the profile, unique in its project.",
                        "examples": [
                          "dev"
                        ],
                        "type": "string"
                      },
                      "project": {
                        "description": "The id of the project of the profile.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "readiness": {
                        "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                        "examples": [
                          {
                            "port": 5432,
                            "timeout_s": 30
                          }
                        ],
                        "properties": {
                          "path": {
                            "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                            "examples": [
                              "/healthz"
                            ],
                            "type": "string"
                          },
                          "port": {
                            "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                            "examples": [
                              5432
                            ],
                            "type": "number"
                          },
                          "timeout_s": {
                            "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                            "examples": [
                              30
                            ],
                            "type": "number"
                          }
                        },
                        "required": [
                          "port",
                          "timeout_s"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "secret_injections": {
                        "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                        "items": {
                          "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                          "properties": {
                            "domain": {
                              "description": "The exact HTTPS destination hostname.",
                              "examples": [
                                "api.openai.com"
                              ],
                              "type": "string"
                            },
                            "header": {
                              "description": "The lowercased request header to replace.",
                              "examples": [
                                "authorization"
                              ],
                              "type": "string"
                            },
                            "placeholder": {
                              "description": "The request-target token to replace; a rule has a header or a placeholder.",
                              "examples": [
                                "__TELEGRAM_BOT_TOKEN__"
                              ],
                              "type": "string"
                            },
                            "secret_id": {
                              "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                              "examples": [
                                "sec_6f1c0f0e8a",
                                "connection:conn_6f1c0f0e8a"
                              ],
                              "type": "string"
                            },
                            "value_format": {
                              "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                              "enum": [
                                "raw",
                                "basic_x_access_token"
                              ],
                              "examples": [
                                "raw"
                              ],
                              "type": "string"
                            },
                            "value_prefix": {
                              "description": "The text before a raw value; empty when there is none.",
                              "examples": [
                                "Bearer "
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "domain",
                            "secret_id",
                            "value_prefix",
                            "value_format"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "sleep": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                                "properties": {
                                  "mode": {
                                    "const": "auto",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode"
                                ],
                                "type": "object"
                              },
                              {
                                "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                                "properties": {
                                  "after_s": {
                                    "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                                    "examples": [
                                      1800
                                    ],
                                    "type": "integer"
                                  },
                                  "mode": {
                                    "const": "timer",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "after_s"
                                ],
                                "type": "object"
                              },
                              {
                                "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                                "properties": {
                                  "mode": {
                                    "const": "on",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                            "examples": [
                              {
                                "mode": "auto"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.",
                        "examples": [
                          {
                            "after_s": 1800,
                            "mode": "timer"
                          }
                        ]
                      },
                      "updated_ms": {
                        "description": "The time of the last change, in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "project",
                      "name",
                      "env",
                      "inbox",
                      "egress",
                      "secret_injections",
                      "github",
                      "sleep",
                      "readiness",
                      "concurrency",
                      "created_ms",
                      "updated_ms"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Every workload profile of the project, by name; `[]` when the project has none."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List workload profiles",
        "tags": [
          "Profiles"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org profile ls --project staging"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/profiles?project=staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Creates a reusable set of workload settings in a project: environment, inbox, domain filter, secret injections, sleep, readiness and concurrency, but no SVM name, size, region, snapshot or secret value. Later edits affect only new SVMs.",
        "operationId": "postProfiles",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The name and optional workload settings of the new profile.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "name": {
                    "description": "The name of the profile, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; an existing name answers 409 `name_taken`.",
                    "examples": [
                      "dev"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name of the profile; `default` when omitted, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "HTTPS secret injections of the profile, in order; each secret must belong to the same project.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The name and optional workload settings of the new profile.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "name": {
                    "description": "The name of the profile, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; an existing name answers 409 `name_taken`.",
                    "examples": [
                      "dev"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name of the profile; `default` when omitted, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "HTTPS secret injections of the profile, in order; each secret must belong to the same project.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The name and optional workload settings of the new profile.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "name": {
                    "description": "The name of the profile, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; an existing name answers 409 `name_taken`.",
                    "examples": [
                      "dev"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name of the profile; `default` when omitted, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "HTTPS secret injections of the profile, in order; each secret must belong to the same project.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "description": "The name and optional workload settings of the new profile.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One reusable workload profile of the organization.",
                  "properties": {
                    "concurrency": {
                      "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                      "examples": [
                        64
                      ],
                      "type": "number"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "egress": {
                      "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                      "properties": {
                        "allowed_domains": {
                          "items": {
                            "description": "An exact hostname, or `*.domain` for its subdomains only.",
                            "examples": [
                              "api.example.com"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "filtering": {
                          "description": "Whether domain filtering is on.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "filtering",
                        "allowed_domains"
                      ],
                      "type": "object"
                    },
                    "env": {
                      "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                      "examples": [
                        {
                          "DEBUG": "1"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "The value of the variable, which may not hold a NUL byte.",
                          "examples": [
                            "1"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "github": {
                      "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The profile id: `prof_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "prof_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "inbox": {
                      "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                      "properties": {
                        "allowed_senders": {
                          "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                          "examples": [
                            [
                              "ada@example.com"
                            ]
                          ],
                          "items": {
                            "description": "One exact SMTP envelope sender address, lowercased on save.",
                            "examples": [
                              "ada@example.com"
                            ],
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "enabled": {
                          "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "allowed_senders"
                      ],
                      "type": "object"
                    },
                    "name": {
                      "description": "The name of the profile, unique in its project.",
                      "examples": [
                        "dev"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the profile.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "readiness": {
                      "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                      "examples": [
                        {
                          "port": 5432,
                          "timeout_s": 30
                        }
                      ],
                      "properties": {
                        "path": {
                          "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                          "examples": [
                            "/healthz"
                          ],
                          "type": "string"
                        },
                        "port": {
                          "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                          "examples": [
                            5432
                          ],
                          "type": "number"
                        },
                        "timeout_s": {
                          "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                          "examples": [
                            30
                          ],
                          "type": "number"
                        }
                      },
                      "required": [
                        "port",
                        "timeout_s"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "secret_injections": {
                      "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sleep": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                              "properties": {
                                "mode": {
                                  "const": "auto",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                              "properties": {
                                "after_s": {
                                  "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                                  "examples": [
                                    1800
                                  ],
                                  "type": "integer"
                                },
                                "mode": {
                                  "const": "timer",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode",
                                "after_s"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                              "properties": {
                                "mode": {
                                  "const": "on",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "type": "object"
                            }
                          ],
                          "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                          "examples": [
                            {
                              "mode": "auto"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.",
                      "examples": [
                        {
                          "after_s": 1800,
                          "mode": "timer"
                        }
                      ]
                    },
                    "updated_ms": {
                      "description": "The time of the last change, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "env",
                    "inbox",
                    "egress",
                    "secret_injections",
                    "github",
                    "sleep",
                    "readiness",
                    "concurrency",
                    "created_ms",
                    "updated_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One reusable workload profile of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_sender`: A sender address is not valid.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`invalid_sleep`: The sleep policy is not valid.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_sender`: A sender address is not valid.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`invalid_sleep`: The sleep policy is not valid.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a workload profile",
        "tags": [
          "Profiles"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org profile create dev --env DEBUG=1 --allow-domain api.example.com"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/profiles\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"dev\",\"env\":{\"DEBUG\":\"1\"},\"egress\":{\"filtering\":true,\"allowed_domains\":[\"api.example.com\"]}}'"
          }
        ]
      }
    },
    "/profiles/{ref}": {
      "delete": {
        "description": "Deletes a profile. SVMs that copied its settings are not changed: their environment, inbox and domain filter stay as they were created.",
        "operationId": "deleteProfilesByRef",
        "parameters": [
          {
            "description": "The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
              "examples": [
                "dev"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The profile is deleted, with no body; every SVM that copied it keeps its settings.",
                  "type": "string"
                }
              }
            },
            "description": "The profile is deleted, with no body; every SVM that copied it keeps its settings."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`profile_not_found`: This profile does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`profile_not_found`: This profile does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a workload profile",
        "tags": [
          "Profiles"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org profile rm dev"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/profiles/dev\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "get": {
        "description": "Returns one profile of the caller's organization. An id resolves in every project; a name resolves in the `project` query (`default` when omitted).",
        "operationId": "getProfilesByRef",
        "parameters": [
          {
            "description": "The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
              "examples": [
                "dev"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One reusable workload profile of the organization.",
                  "properties": {
                    "concurrency": {
                      "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                      "examples": [
                        64
                      ],
                      "type": "number"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "egress": {
                      "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                      "properties": {
                        "allowed_domains": {
                          "items": {
                            "description": "An exact hostname, or `*.domain` for its subdomains only.",
                            "examples": [
                              "api.example.com"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "filtering": {
                          "description": "Whether domain filtering is on.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "filtering",
                        "allowed_domains"
                      ],
                      "type": "object"
                    },
                    "env": {
                      "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                      "examples": [
                        {
                          "DEBUG": "1"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "The value of the variable, which may not hold a NUL byte.",
                          "examples": [
                            "1"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "github": {
                      "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The profile id: `prof_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "prof_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "inbox": {
                      "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                      "properties": {
                        "allowed_senders": {
                          "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                          "examples": [
                            [
                              "ada@example.com"
                            ]
                          ],
                          "items": {
                            "description": "One exact SMTP envelope sender address, lowercased on save.",
                            "examples": [
                              "ada@example.com"
                            ],
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "enabled": {
                          "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "allowed_senders"
                      ],
                      "type": "object"
                    },
                    "name": {
                      "description": "The name of the profile, unique in its project.",
                      "examples": [
                        "dev"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the profile.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "readiness": {
                      "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                      "examples": [
                        {
                          "port": 5432,
                          "timeout_s": 30
                        }
                      ],
                      "properties": {
                        "path": {
                          "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                          "examples": [
                            "/healthz"
                          ],
                          "type": "string"
                        },
                        "port": {
                          "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                          "examples": [
                            5432
                          ],
                          "type": "number"
                        },
                        "timeout_s": {
                          "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                          "examples": [
                            30
                          ],
                          "type": "number"
                        }
                      },
                      "required": [
                        "port",
                        "timeout_s"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "secret_injections": {
                      "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sleep": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                              "properties": {
                                "mode": {
                                  "const": "auto",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                              "properties": {
                                "after_s": {
                                  "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                                  "examples": [
                                    1800
                                  ],
                                  "type": "integer"
                                },
                                "mode": {
                                  "const": "timer",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode",
                                "after_s"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                              "properties": {
                                "mode": {
                                  "const": "on",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "type": "object"
                            }
                          ],
                          "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                          "examples": [
                            {
                              "mode": "auto"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.",
                      "examples": [
                        {
                          "after_s": 1800,
                          "mode": "timer"
                        }
                      ]
                    },
                    "updated_ms": {
                      "description": "The time of the last change, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "env",
                    "inbox",
                    "egress",
                    "secret_injections",
                    "github",
                    "sleep",
                    "readiness",
                    "concurrency",
                    "created_ms",
                    "updated_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One reusable workload profile of the organization."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`profile_not_found`: This profile does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`profile_not_found`: This profile does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a workload profile",
        "tags": [
          "Profiles"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org profile show dev"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/profiles/dev\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "put": {
        "description": "Changes the name or a whole settings block of a profile; an id resolves in every project, and a name resolves in the `project` query. An SVM that copied the profile keeps its settings; only SVMs that start after the change read the new values.",
        "operationId": "putProfilesByRef",
        "parameters": [
          {
            "description": "The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The profile id (`prof_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
              "examples": [
                "dev"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The fields to change; an omitted block keeps its value, and a given block replaces it whole.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "name": {
                    "description": "The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project; omit it to keep the name.",
                    "examples": [
                      "production"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "Replaces the HTTPS secret injections of the profile whole; each secret must belong to the same project.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The fields to change; an omitted block keeps its value, and a given block replaces it whole.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "name": {
                    "description": "The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project; omit it to keep the name.",
                    "examples": [
                      "production"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "Replaces the HTTPS secret injections of the profile whole; each secret must belong to the same project.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The fields to change; an omitted block keeps its value, and a given block replaces it whole.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "name": {
                    "description": "The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project; omit it to keep the name.",
                    "examples": [
                      "production"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "Replaces the HTTPS secret injections of the profile whole; each secret must belong to the same project.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "description": "The fields to change; an omitted block keeps its value, and a given block replaces it whole.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One reusable workload profile of the organization.",
                  "properties": {
                    "concurrency": {
                      "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                      "examples": [
                        64
                      ],
                      "type": "number"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "egress": {
                      "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                      "properties": {
                        "allowed_domains": {
                          "items": {
                            "description": "An exact hostname, or `*.domain` for its subdomains only.",
                            "examples": [
                              "api.example.com"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "filtering": {
                          "description": "Whether domain filtering is on.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "filtering",
                        "allowed_domains"
                      ],
                      "type": "object"
                    },
                    "env": {
                      "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                      "examples": [
                        {
                          "DEBUG": "1"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "The value of the variable, which may not hold a NUL byte.",
                          "examples": [
                            "1"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "github": {
                      "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The profile id: `prof_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "prof_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "inbox": {
                      "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                      "properties": {
                        "allowed_senders": {
                          "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                          "examples": [
                            [
                              "ada@example.com"
                            ]
                          ],
                          "items": {
                            "description": "One exact SMTP envelope sender address, lowercased on save.",
                            "examples": [
                              "ada@example.com"
                            ],
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "enabled": {
                          "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "allowed_senders"
                      ],
                      "type": "object"
                    },
                    "name": {
                      "description": "The name of the profile, unique in its project.",
                      "examples": [
                        "dev"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the profile.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "readiness": {
                      "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                      "examples": [
                        {
                          "port": 5432,
                          "timeout_s": 30
                        }
                      ],
                      "properties": {
                        "path": {
                          "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                          "examples": [
                            "/healthz"
                          ],
                          "type": "string"
                        },
                        "port": {
                          "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                          "examples": [
                            5432
                          ],
                          "type": "number"
                        },
                        "timeout_s": {
                          "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                          "examples": [
                            30
                          ],
                          "type": "number"
                        }
                      },
                      "required": [
                        "port",
                        "timeout_s"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "secret_injections": {
                      "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sleep": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                              "properties": {
                                "mode": {
                                  "const": "auto",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                              "properties": {
                                "after_s": {
                                  "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                                  "examples": [
                                    1800
                                  ],
                                  "type": "integer"
                                },
                                "mode": {
                                  "const": "timer",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode",
                                "after_s"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                              "properties": {
                                "mode": {
                                  "const": "on",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "type": "object"
                            }
                          ],
                          "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                          "examples": [
                            {
                              "mode": "auto"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The sleep policy that a new SVM copies, or `null` when the profile sets none and an SVM starts on `auto`.",
                      "examples": [
                        {
                          "after_s": 1800,
                          "mode": "timer"
                        }
                      ]
                    },
                    "updated_ms": {
                      "description": "The time of the last change, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "env",
                    "inbox",
                    "egress",
                    "secret_injections",
                    "github",
                    "sleep",
                    "readiness",
                    "concurrency",
                    "created_ms",
                    "updated_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One reusable workload profile of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_sender`: A sender address is not valid.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`invalid_sleep`: The sleep policy is not valid.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_sender`: A sender address is not valid.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`invalid_sleep`: The sleep policy is not valid.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist.\n`profile_not_found`: This profile does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist.\n`profile_not_found`: This profile does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Change a workload profile",
        "tags": [
          "Profiles"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org profile update dev --env DEBUG=0 --filter"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/profiles/dev\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"env\":{\"DEBUG\":\"0\"}}'"
          }
        ]
      }
    },
    "/projects": {
      "get": {
        "description": "Returns every project of the organization of the key, oldest first. A new organization lists exactly its `default` project.",
        "operationId": "getProjects",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Every project of the organization, oldest first; every organization has `default`, so the list is never empty.",
                  "items": {
                    "description": "One project of the organization.",
                    "properties": {
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "id": {
                        "description": "The project id: `proj_` and ten symbols of the SVM id alphabet.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "description": "The name of the project, unique in its organization.",
                        "examples": [
                          "staging"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "created_ms"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Every project of the organization, oldest first; every organization has `default`, so the list is never empty."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List projects",
        "tags": [
          "Projects"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org project ls"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/projects\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "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.",
        "operationId": "postProjects",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The name of the new project.",
                "properties": {
                  "name": {
                    "description": "The project name, `^[a-z][a-z0-9-]{0,31}$`: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The name of the new project.",
                "properties": {
                  "name": {
                    "description": "The project name, `^[a-z][a-z0-9-]{0,31}$`: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The name of the new project.",
                "properties": {
                  "name": {
                    "description": "The project name, `^[a-z][a-z0-9-]{0,31}$`: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "description": "The name of the new project.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One project of the organization.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The project id: `proj_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the project, unique in its organization.",
                      "examples": [
                        "staging"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One project of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.\n`project_limit`: You have reached the limit of projects.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used.\n`project_limit`: You have reached the limit of projects."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`internal`: Something went wrong on our side.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`internal`: Something went wrong on our side."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a project",
        "tags": [
          "Projects"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org project create staging"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/projects\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"staging\"}'"
          }
        ]
      }
    },
    "/projects/{ref}": {
      "delete": {
        "description": "Deletes a project that holds no machines, snapshots, secrets, profiles or schedules, and cannot be undone. The `default` project cannot be deleted.",
        "operationId": "deleteProjectsByRef",
        "parameters": [
          {
            "description": "The project id (`proj_` and ten id symbols), or its name in the organization of the key.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The project id (`proj_` and ten id symbols), or its name in the organization of the key.",
              "examples": [
                "staging"
              ],
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The project and its usage history are deleted; no body.",
                  "type": "string"
                }
              }
            },
            "description": "The project and its usage history are deleted; no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`default_project`: The default project cannot be changed.\n`project_not_empty`: This project is not empty.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`default_project`: The default project cannot be changed.\n`project_not_empty`: This project is not empty."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a project",
        "tags": [
          "Projects"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/projects/staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "get": {
        "description": "Returns one project of the caller's organization, by its id or by its name.",
        "operationId": "getProjectsByRef",
        "parameters": [
          {
            "description": "The project id (`proj_` and ten id symbols), or its name in the organization of the key.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The project id (`proj_` and ten id symbols), or its name in the organization of the key.",
              "examples": [
                "staging"
              ],
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One project of the organization.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The project id: `proj_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the project, unique in its organization.",
                      "examples": [
                        "staging"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One project of the organization."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a project",
        "tags": [
          "Projects"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/projects/staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "patch": {
        "description": "Changes the name of a project; its id and resources stay the same. The `default` project cannot be renamed.",
        "operationId": "patchProjectsByRef",
        "parameters": [
          {
            "description": "The project id (`proj_` and ten id symbols), or its name in the organization of the key.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The project id (`proj_` and ten id symbols), or its name in the organization of the key.",
              "examples": [
                "staging"
              ],
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The new name of the project.",
                "properties": {
                  "name": {
                    "description": "The project name, `^[a-z][a-z0-9-]{0,31}$`: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The new name of the project.",
                "properties": {
                  "name": {
                    "description": "The project name, `^[a-z][a-z0-9-]{0,31}$`: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The new name of the project.",
                "properties": {
                  "name": {
                    "description": "The project name, `^[a-z][a-z0-9-]{0,31}$`: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "description": "The new name of the project.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One project of the organization.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The project id: `proj_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the project, unique in its organization.",
                      "examples": [
                        "staging"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One project of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`default_project`: The default project cannot be changed.\n`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`default_project`: The default project cannot be changed.\n`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rename a project",
        "tags": [
          "Projects"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PATCH \"https://api.slashinfra.com/projects/staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"preview\"}'"
          }
        ]
      }
    },
    "/secret-injection-presets": {
      "get": {
        "description": "Returns the shared catalog of prepared HTTPS secret injections for common API providers; a client picks a secret and sends the explicit rules of a preset. The catalog is not a destination allowlist, and later edits never change an existing SVM.",
        "operationId": "getSecret-injection-presets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The shared preset catalog, in display order; a client adds the secret that the user picks to each rule.",
                  "items": {
                    "description": "One prepared secret injection: the user picks the secret, and the client submits explicit rules and the preset environment.",
                    "properties": {
                      "env": {
                        "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                        "examples": [
                          {
                            "DEBUG": "1"
                          }
                        ],
                        "patternProperties": {
                          "^.*$": {
                            "description": "The value of the variable, which may not hold a NUL byte.",
                            "examples": [
                              "1"
                            ],
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "id": {
                        "description": "The preset id, such as `openai`.",
                        "examples": [
                          "openai"
                        ],
                        "type": "string"
                      },
                      "rules": {
                        "description": "Every rule that the preset adds, in order.",
                        "items": {
                          "description": "One prepared rule of a provider preset, without the secret reference.",
                          "properties": {
                            "domain": {
                              "description": "The exact HTTPS destination hostname of the service.",
                              "examples": [
                                "api.openai.com"
                              ],
                              "type": "string"
                            },
                            "header": {
                              "description": "The lowercased request header that carries the key.",
                              "examples": [
                                "authorization"
                              ],
                              "type": "string"
                            },
                            "placeholder": {
                              "description": "The request-target token that the proxy replaces.",
                              "examples": [
                                "__TELEGRAM_BOT_TOKEN__"
                              ],
                              "type": "string"
                            },
                            "value_format": {
                              "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                              "enum": [
                                "raw",
                                "basic_x_access_token"
                              ],
                              "examples": [
                                "raw"
                              ],
                              "type": "string"
                            },
                            "value_prefix": {
                              "description": "The text before a raw value, such as `Bearer `.",
                              "examples": [
                                "Bearer "
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "domain",
                            "value_prefix",
                            "value_format"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "service": {
                        "description": "The service name, for display.",
                        "examples": [
                          "OpenAI"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "service",
                      "rules"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The shared preset catalog, in display order; a client adds the secret that the user picks to each rule."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List the secret injection presets",
        "tags": [
          "Secrets"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si create --inject openai:openai-key"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/secret-injection-presets\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/secrets": {
      "get": {
        "description": "Returns the metadata of every write-only secret of one project, by name. `project` is an id or name and defaults to `default`. The value is never part of an answer: send a new value to `PUT /secrets/:ref` to replace it.",
        "operationId": "getSecrets",
        "parameters": [
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Every secret of the project, by name; `[]` when the project has none.",
                  "items": {
                    "description": "One write-only secret of the organization; answers never include its value.",
                    "properties": {
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "description": {
                        "description": "An optional note about the secret: trimmed, at most 200 code points, no control character, and never the value.",
                        "examples": [
                          "production OpenAI key"
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "id": {
                        "description": "The secret id: `sec_` and ten symbols of the SVM id alphabet.",
                        "examples": [
                          "sec_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "description": "The name of the secret, unique in its project.",
                        "examples": [
                          "openai"
                        ],
                        "type": "string"
                      },
                      "project": {
                        "description": "The id of the project of the secret.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "updated_ms": {
                        "description": "The time of the last change, in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "version": {
                        "description": "The version of the stored value, from 1; every replacement increments it.",
                        "examples": [
                          2
                        ],
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "project",
                      "name",
                      "description",
                      "version",
                      "created_ms",
                      "updated_ms"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Every secret of the project, by name; `[]` when the project has none."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List secrets",
        "tags": [
          "Secrets"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org secret ls --project staging"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/secrets?project=staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Stores a secret value in the vault Worker, which encrypts it with AES-256-GCM under one key; control keeps only the name and metadata. An SVM or a profile references the secret by id, and the value reaches only the nodes that serve a referencing SVM.",
        "operationId": "postSecrets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The name, value and optional description of the new secret.",
                "properties": {
                  "description": {
                    "description": "An optional note about the secret: trimmed, empty becomes null, at most 200 code points and no control character.",
                    "examples": [
                      "production OpenAI key"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "The name of the secret, unique in its project: `^[a-z][a-z0-9-]{0,31}$`; an existing name answers 409 `name_taken`.",
                    "examples": [
                      "openai"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name of the secret; `default` when omitted, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "The secret value, write-only: the vault Worker encrypts it and control never stores it; the CLI reads it from standard input ([secrets](/docs/platform/secrets)).",
                    "examples": [
                      "sk-..."
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The name, value and optional description of the new secret.",
                "properties": {
                  "description": {
                    "description": "An optional note about the secret: trimmed, empty becomes null, at most 200 code points and no control character.",
                    "examples": [
                      "production OpenAI key"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "The name of the secret, unique in its project: `^[a-z][a-z0-9-]{0,31}$`; an existing name answers 409 `name_taken`.",
                    "examples": [
                      "openai"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name of the secret; `default` when omitted, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "The secret value, write-only: the vault Worker encrypts it and control never stores it; the CLI reads it from standard input ([secrets](/docs/platform/secrets)).",
                    "examples": [
                      "sk-..."
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The name, value and optional description of the new secret.",
                "properties": {
                  "description": {
                    "description": "An optional note about the secret: trimmed, empty becomes null, at most 200 code points and no control character.",
                    "examples": [
                      "production OpenAI key"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "The name of the secret, unique in its project: `^[a-z][a-z0-9-]{0,31}$`; an existing name answers 409 `name_taken`.",
                    "examples": [
                      "openai"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name of the secret; `default` when omitted, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "The secret value, write-only: the vault Worker encrypts it and control never stores it; the CLI reads it from standard input ([secrets](/docs/platform/secrets)).",
                    "examples": [
                      "sk-..."
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object"
              }
            }
          },
          "description": "The name, value and optional description of the new secret.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One write-only secret of the organization; answers never include its value.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "description": {
                      "description": "An optional note about the secret: trimmed, at most 200 code points, no control character, and never the value.",
                      "examples": [
                        "production OpenAI key"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The secret id: `sec_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "sec_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the secret, unique in its project.",
                      "examples": [
                        "openai"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the secret.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "updated_ms": {
                      "description": "The time of the last change, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "version": {
                      "description": "The version of the stored value, from 1; every replacement increments it.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "description",
                    "version",
                    "created_ms",
                    "updated_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One write-only secret of the organization; answers never include its value."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_value`: The value is empty.\n`invalid_description`: The description is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_value`: The value is empty.\n`invalid_description`: The description is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a secret",
        "tags": [
          "Secrets"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "printf '%s' \"$OPENAI_API_KEY\" | si org secret create openai"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/secrets\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"openai\",\"value\":\"sk-...\"}'"
          }
        ]
      }
    },
    "/secrets/{ref}": {
      "delete": {
        "description": "Deletes a secret that no SVM or profile references; a referenced one answers 409 `secret_in_use`, so remove the rules that name it first. A rule that names a deleted secret can never be created.",
        "operationId": "deleteSecretsByRef",
        "parameters": [
          {
            "description": "The secret id (`sec_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The secret id (`sec_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
              "examples": [
                "openai"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The secret is deleted, with no body.",
                  "type": "string"
                }
              }
            },
            "description": "The secret is deleted, with no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`secret_in_use`: This secret is in use.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`secret_in_use`: This secret is in use."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a secret",
        "tags": [
          "Secrets"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org secret rm openai"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/secrets/openai\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "patch": {
        "description": "Changes only the description of a secret; the value, its version and every node stay untouched, and empty text clears it. The `secret.update` audit row omits the text.",
        "operationId": "patchSecretsByRef",
        "parameters": [
          {
            "description": "The secret id (`sec_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The secret id (`sec_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
              "examples": [
                "openai"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The new description of the secret.",
                "properties": {
                  "description": {
                    "description": "The new description: trimmed, empty becomes null, at most 200 code points and no control character.",
                    "examples": [
                      "production OpenAI key"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "description"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The new description of the secret.",
                "properties": {
                  "description": {
                    "description": "The new description: trimmed, empty becomes null, at most 200 code points and no control character.",
                    "examples": [
                      "production OpenAI key"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "description"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The new description of the secret.",
                "properties": {
                  "description": {
                    "description": "The new description: trimmed, empty becomes null, at most 200 code points and no control character.",
                    "examples": [
                      "production OpenAI key"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "description"
                ],
                "type": "object"
              }
            }
          },
          "description": "The new description of the secret.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One write-only secret of the organization; answers never include its value.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "description": {
                      "description": "An optional note about the secret: trimmed, at most 200 code points, no control character, and never the value.",
                      "examples": [
                        "production OpenAI key"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The secret id: `sec_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "sec_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the secret, unique in its project.",
                      "examples": [
                        "openai"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the secret.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "updated_ms": {
                      "description": "The time of the last change, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "version": {
                      "description": "The version of the stored value, from 1; every replacement increments it.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "description",
                    "version",
                    "created_ms",
                    "updated_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One write-only secret of the organization; answers never include its value."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_description`: The description is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_description`: The description is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`secret_in_use`: This secret is in use.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`secret_in_use`: This secret is in use."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Describe a secret",
        "tags": [
          "Secrets"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si org secret describe openai \"production OpenAI key\""
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PATCH \"https://api.slashinfra.com/secrets/openai\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"description\":\"production OpenAI key\"}'"
          }
        ]
      },
      "put": {
        "description": "The vault Worker seals the new value as the next version, and every node that serves a referencing SVM must cache it before the answer; a timeout answers 503 and keeps the new version. A node that misses the value stops injecting the old one; see [secrets](/docs/platform/secrets) for the rotation rules.",
        "operationId": "putSecretsByRef",
        "parameters": [
          {
            "description": "The secret id (`sec_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The secret id (`sec_` and ten id symbols), or its name in the `project` query; an id resolves in every project.",
              "examples": [
                "openai"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The new value of the secret.",
                "properties": {
                  "value": {
                    "description": "The new value, encrypted and never returned.",
                    "examples": [
                      "sk-..."
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "value"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The new value of the secret.",
                "properties": {
                  "value": {
                    "description": "The new value, encrypted and never returned.",
                    "examples": [
                      "sk-..."
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "value"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The new value of the secret.",
                "properties": {
                  "value": {
                    "description": "The new value, encrypted and never returned.",
                    "examples": [
                      "sk-..."
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "value"
                ],
                "type": "object"
              }
            }
          },
          "description": "The new value of the secret.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One write-only secret of the organization; answers never include its value.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "description": {
                      "description": "An optional note about the secret: trimmed, at most 200 code points, no control character, and never the value.",
                      "examples": [
                        "production OpenAI key"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The secret id: `sec_` and ten symbols of the SVM id alphabet.",
                      "examples": [
                        "sec_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the secret, unique in its project.",
                      "examples": [
                        "openai"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the secret.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "updated_ms": {
                      "description": "The time of the last change, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "version": {
                      "description": "The version of the stored value, from 1; every replacement increments it.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "description",
                    "version",
                    "created_ms",
                    "updated_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One write-only secret of the organization; answers never include its value."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_value`: The value is empty.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_value`: The value is empty."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist.\n`secret_not_found`: This secret does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`secret_in_use`: This secret is in use.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`secret_in_use`: This secret is in use."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`secret_pending`: The new secret is not active everywhere yet.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`secret_pending`: The new secret is not active everywhere yet."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Replace the value of a secret",
        "tags": [
          "Secrets"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "printf '%s' \"$OPENAI_API_KEY\" | si org secret replace openai"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/secrets/openai\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"value\":\"sk-...\"}'"
          }
        ]
      }
    },
    "/snapshots": {
      "get": {
        "description": "Returns every disk-only snapshot of one project of the organization, newest first, with the SVMs that read each one. `project` is an id or name and defaults to `default`.",
        "operationId": "getSnapshots",
        "parameters": [
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Every snapshot of the project, newest first; a project with none gets `[]`.",
                  "items": {
                    "description": "One disk-only snapshot.",
                    "properties": {
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1762747200000
                        ],
                        "type": "integer"
                      },
                      "error": {
                        "description": "The catalog code of a failed capture.",
                        "examples": [
                          "timeout"
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "expires_ms": {
                        "description": "When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.",
                        "examples": [
                          1765339200000
                        ],
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "id": {
                        "description": "The snapshot id: ten symbols of the same alphabet as an SVM id.",
                        "examples": [
                          "0zs0pshr3x"
                        ],
                        "type": "string"
                      },
                      "kind": {
                        "description": "Who made the snapshot: `user` for a request, `fork` for the capture of a `fork_of` create, or `backup` for a schedule run; only `user` snapshots count against the plan quota.",
                        "enum": [
                          "user",
                          "fork",
                          "backup"
                        ],
                        "examples": [
                          "user"
                        ],
                        "type": "string"
                      },
                      "logical_bytes": {
                        "description": "The used bytes of the disk inside the snapshot. `0` while it is creating.",
                        "examples": [
                          2147483648
                        ],
                        "type": "integer"
                      },
                      "name": {
                        "description": "The name of the snapshot, unique in its project.",
                        "examples": [
                          "build-1-20261110-031900"
                        ],
                        "type": "string"
                      },
                      "project": {
                        "description": "The id of the project of the snapshot.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "source": {
                        "description": "The SVM that was snapshotted.",
                        "examples": [
                          "6f1c0f0e8a"
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "state": {
                        "description": "`creating` while the node captures the disk, then `ready` with its sizes, or `failed`.",
                        "enum": [
                          "creating",
                          "ready",
                          "failed"
                        ],
                        "examples": [
                          "ready"
                        ],
                        "type": "string"
                      },
                      "stored_bytes": {
                        "description": "The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts `0`, so this is not the current storage cost. `0` while it is creating.",
                        "examples": [
                          536870912
                        ],
                        "type": "integer"
                      },
                      "used_by": {
                        "description": "The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "id",
                      "project",
                      "name",
                      "state",
                      "kind",
                      "error",
                      "source",
                      "created_ms",
                      "expires_ms",
                      "logical_bytes",
                      "stored_bytes",
                      "used_by"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Every snapshot of the project, newest first; a project with none gets `[]`."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List snapshots",
        "tags": [
          "Snapshots"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si snapshot ls --project staging"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/snapshots?project=staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/snapshots/{ref}": {
      "delete": {
        "description": "Deletes a snapshot and its cold objects; a snapshot that an SVM reads answers 409 `snapshot_in_use`, and the source SVM is not touched.",
        "operationId": "deleteSnapshotsByRef",
        "parameters": [
          {
            "description": "The snapshot id, or its name in the `project` query; a reference of ten id symbols is an id and resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The snapshot id, or its name in the `project` query; a reference of ten id symbols is an id and resolves in every project.",
              "examples": [
                "before-upgrade"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The snapshot and its cold objects are deleted, with no body.",
                  "type": "string"
                }
              }
            },
            "description": "The snapshot and its cold objects are deleted, with no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`snapshot_not_found`: This snapshot does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`snapshot_not_found`: This snapshot does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`snapshot_in_use`: This snapshot is in use.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`snapshot_in_use`: This snapshot is in use."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`no_capacity`: There is no free capacity right now.\n`svm_unreachable`: This SVM is not answering.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`no_capacity`: There is no free capacity right now.\n`svm_unreachable`: This SVM is not answering."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a snapshot",
        "tags": [
          "Snapshots"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si snapshot rm before-upgrade"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/snapshots/before-upgrade\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "get": {
        "description": "Returns one snapshot of the caller's organization. An id resolves in every project; a name resolves in the `project` query (`default` when omitted).",
        "operationId": "getSnapshotsByRef",
        "parameters": [
          {
            "description": "The snapshot id, or its name in the `project` query; a reference of ten id symbols is an id and resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The snapshot id, or its name in the `project` query; a reference of ten id symbols is an id and resolves in every project.",
              "examples": [
                "before-upgrade"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One disk-only snapshot.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1762747200000
                      ],
                      "type": "integer"
                    },
                    "error": {
                      "description": "The catalog code of a failed capture.",
                      "examples": [
                        "timeout"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_ms": {
                      "description": "When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.",
                      "examples": [
                        1765339200000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The snapshot id: ten symbols of the same alphabet as an SVM id.",
                      "examples": [
                        "0zs0pshr3x"
                      ],
                      "type": "string"
                    },
                    "kind": {
                      "description": "Who made the snapshot: `user` for a request, `fork` for the capture of a `fork_of` create, or `backup` for a schedule run; only `user` snapshots count against the plan quota.",
                      "enum": [
                        "user",
                        "fork",
                        "backup"
                      ],
                      "examples": [
                        "user"
                      ],
                      "type": "string"
                    },
                    "logical_bytes": {
                      "description": "The used bytes of the disk inside the snapshot. `0` while it is creating.",
                      "examples": [
                        2147483648
                      ],
                      "type": "integer"
                    },
                    "name": {
                      "description": "The name of the snapshot, unique in its project.",
                      "examples": [
                        "build-1-20261110-031900"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the snapshot.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "source": {
                      "description": "The SVM that was snapshotted.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "state": {
                      "description": "`creating` while the node captures the disk, then `ready` with its sizes, or `failed`.",
                      "enum": [
                        "creating",
                        "ready",
                        "failed"
                      ],
                      "examples": [
                        "ready"
                      ],
                      "type": "string"
                    },
                    "stored_bytes": {
                      "description": "The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts `0`, so this is not the current storage cost. `0` while it is creating.",
                      "examples": [
                        536870912
                      ],
                      "type": "integer"
                    },
                    "used_by": {
                      "description": "The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "state",
                    "kind",
                    "error",
                    "source",
                    "created_ms",
                    "expires_ms",
                    "logical_bytes",
                    "stored_bytes",
                    "used_by"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One disk-only snapshot."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`snapshot_not_found`: This snapshot does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`snapshot_not_found`: This snapshot does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a snapshot",
        "tags": [
          "Snapshots"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/snapshots/before-upgrade\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "patch": {
        "description": "Changes the name of a snapshot to a name that is unique in the project and uses the SVM name rules. An id resolves in every project; a name resolves in the `project` query.",
        "operationId": "patchSnapshotsByRef",
        "parameters": [
          {
            "description": "The snapshot id, or its name in the `project` query; a reference of ten id symbols is an id and resolves in every project.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The snapshot id, or its name in the `project` query; a reference of ten id symbols is an id and resolves in every project.",
              "examples": [
                "before-upgrade"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project.",
                    "examples": [
                      "before-upgrade-2"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project.",
                    "examples": [
                      "before-upgrade-2"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The new name: `^[a-z][a-z0-9-]{0,31}$`, unique in the project.",
                    "examples": [
                      "before-upgrade-2"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One disk-only snapshot.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1762747200000
                      ],
                      "type": "integer"
                    },
                    "error": {
                      "description": "The catalog code of a failed capture.",
                      "examples": [
                        "timeout"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_ms": {
                      "description": "When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.",
                      "examples": [
                        1765339200000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The snapshot id: ten symbols of the same alphabet as an SVM id.",
                      "examples": [
                        "0zs0pshr3x"
                      ],
                      "type": "string"
                    },
                    "kind": {
                      "description": "Who made the snapshot: `user` for a request, `fork` for the capture of a `fork_of` create, or `backup` for a schedule run; only `user` snapshots count against the plan quota.",
                      "enum": [
                        "user",
                        "fork",
                        "backup"
                      ],
                      "examples": [
                        "user"
                      ],
                      "type": "string"
                    },
                    "logical_bytes": {
                      "description": "The used bytes of the disk inside the snapshot. `0` while it is creating.",
                      "examples": [
                        2147483648
                      ],
                      "type": "integer"
                    },
                    "name": {
                      "description": "The name of the snapshot, unique in its project.",
                      "examples": [
                        "build-1-20261110-031900"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the snapshot.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "source": {
                      "description": "The SVM that was snapshotted.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "state": {
                      "description": "`creating` while the node captures the disk, then `ready` with its sizes, or `failed`.",
                      "enum": [
                        "creating",
                        "ready",
                        "failed"
                      ],
                      "examples": [
                        "ready"
                      ],
                      "type": "string"
                    },
                    "stored_bytes": {
                      "description": "The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts `0`, so this is not the current storage cost. `0` while it is creating.",
                      "examples": [
                        536870912
                      ],
                      "type": "integer"
                    },
                    "used_by": {
                      "description": "The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "state",
                    "kind",
                    "error",
                    "source",
                    "created_ms",
                    "expires_ms",
                    "logical_bytes",
                    "stored_bytes",
                    "used_by"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One disk-only snapshot."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`snapshot_not_found`: This snapshot does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`snapshot_not_found`: This snapshot does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rename a snapshot",
        "tags": [
          "Snapshots"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PATCH \"https://api.slashinfra.com/snapshots/before-upgrade\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"before-upgrade-2\"}'"
          }
        ]
      }
    },
    "/ssh-keys": {
      "get": {
        "description": "Returns the SSH public keys of the organization. SVMs created from now on get them in `~/.ssh/authorized_keys`; existing SVMs keep their own file.",
        "operationId": "getSsh-keys",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The SSH keys of the organization, oldest first; `[]` when there are none.",
                  "items": {
                    "description": "One SSH public key of the organization.",
                    "properties": {
                      "added_by": {
                        "description": "Who added the key: the email of a person, or `API key \"<name>\"` for an organization API key.",
                        "examples": [
                          "ada@example.com"
                        ],
                        "type": "string"
                      },
                      "created_ms": {
                        "description": "When the key was added, in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "fingerprint": {
                        "description": "The SHA-256 fingerprint, as `ssh-keygen -lf` prints it.",
                        "examples": [
                          "SHA256:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU"
                        ],
                        "type": "string"
                      },
                      "id": {
                        "description": "The key id.",
                        "examples": [
                          "k5x2m8q1z0"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "description": "The name of the key.",
                        "examples": [
                          "laptop"
                        ],
                        "type": "string"
                      },
                      "public_key": {
                        "description": "The key without its comment: `<type> <base64>`.",
                        "type": "string"
                      },
                      "type": {
                        "description": "The key type.",
                        "examples": [
                          "ssh-ed25519"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "type",
                      "fingerprint",
                      "public_key",
                      "added_by",
                      "created_ms"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The SSH keys of the organization, oldest first; `[]` when there are none."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "summary": "List the SSH keys",
        "tags": [
          "SSH keys"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/ssh-keys\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Adds an SSH public key to the organization. SVMs created from now on get it in ~/.ssh/authorized_keys; existing SVMs do not change.",
        "operationId": "postSsh-keys",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The optional name of the key in the list; without one, the key comment is the name, else its type.",
                    "examples": [
                      "laptop"
                    ],
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "public_key": {
                    "description": "One public key line, as `~/.ssh/id_ed25519.pub` holds it (`<type> <base64> [comment]`); Ed25519, ECDSA, their security-key forms and RSA of at least 2048 bits are accepted.",
                    "examples": [
                      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl ada@laptop"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "public_key"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The optional name of the key in the list; without one, the key comment is the name, else its type.",
                    "examples": [
                      "laptop"
                    ],
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "public_key": {
                    "description": "One public key line, as `~/.ssh/id_ed25519.pub` holds it (`<type> <base64> [comment]`); Ed25519, ECDSA, their security-key forms and RSA of at least 2048 bits are accepted.",
                    "examples": [
                      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl ada@laptop"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "public_key"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The optional name of the key in the list; without one, the key comment is the name, else its type.",
                    "examples": [
                      "laptop"
                    ],
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "public_key": {
                    "description": "One public key line, as `~/.ssh/id_ed25519.pub` holds it (`<type> <base64> [comment]`); Ed25519, ECDSA, their security-key forms and RSA of at least 2048 bits are accepted.",
                    "examples": [
                      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl ada@laptop"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "public_key"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One SSH public key of the organization.",
                  "properties": {
                    "added_by": {
                      "description": "Who added the key: the email of a person, or `API key \"<name>\"` for an organization API key.",
                      "examples": [
                        "ada@example.com"
                      ],
                      "type": "string"
                    },
                    "created_ms": {
                      "description": "When the key was added, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "fingerprint": {
                      "description": "The SHA-256 fingerprint, as `ssh-keygen -lf` prints it.",
                      "examples": [
                        "SHA256:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU"
                      ],
                      "type": "string"
                    },
                    "id": {
                      "description": "The key id.",
                      "examples": [
                        "k5x2m8q1z0"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the key.",
                      "examples": [
                        "laptop"
                      ],
                      "type": "string"
                    },
                    "public_key": {
                      "description": "The key without its comment: `<type> <base64>`.",
                      "type": "string"
                    },
                    "type": {
                      "description": "The key type.",
                      "examples": [
                        "ssh-ed25519"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "fingerprint",
                    "public_key",
                    "added_by",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One SSH public key of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_ssh_key`: The SSH key is not valid.\n`private_key`: This is a private key. Send the public key.\n`unsupported_key_type`: This SSH key type is not supported.\n`rsa_key_too_short`: The RSA key is too short.\n`invalid_name`: The name is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_ssh_key`: The SSH key is not valid.\n`private_key`: This is a private key. Send the public key.\n`unsupported_key_type`: This SSH key type is not supported.\n`rsa_key_too_short`: The RSA key is too short.\n`invalid_name`: The name is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`key_exists`: This SSH key is already added.\n`ssh_key_limit`: You have reached the limit of SSH keys.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`key_exists`: This SSH key is already added.\n`ssh_key_limit`: You have reached the limit of SSH keys."
          }
        },
        "summary": "Add an SSH key",
        "tags": [
          "SSH keys"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/ssh-keys\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"content-type: application/json\" \\\n  -d \"{\\\"public_key\\\": \\\"$(cat ~/.ssh/id_ed25519.pub)\\\"}\""
          }
        ]
      }
    },
    "/ssh-keys/{id}": {
      "delete": {
        "description": "Deletes an SSH public key of the organization. SVMs created from now on do not get it; existing SVMs keep the keys in their own ~/.ssh/authorized_keys.",
        "operationId": "deleteSsh-keysById",
        "parameters": [
          {
            "description": "The id of the key, from the list.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The id of the key, from the list.",
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The key is deleted, with no body; new SVMs no longer get it, and existing SVMs keep their own file.",
                  "type": "string"
                }
              }
            },
            "description": "The key is deleted, with no body; new SVMs no longer get it, and existing SVMs keep their own file."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`ssh_key_not_found`: This SSH key does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`ssh_key_not_found`: This SSH key does not exist."
          }
        },
        "summary": "Delete an SSH key",
        "tags": [
          "SSH keys"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/ssh-keys/<id>\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms": {
      "get": {
        "description": "Returns one page of the SVMs of one project, newest first; `limit` is 1 to 200 and 100 by default. Filter with `label.<key>=<value>` pairs, which are ANDed, and send `next_cursor` as `cursor` to read the next page.",
        "operationId": "getSvms",
        "parameters": [
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The SVMs of this page: a whole number from 1 to 200, 100 by default.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "The SVMs of this page: a whole number from 1 to 200, 100 by default.",
              "examples": [
                50
              ],
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The `next_cursor` of the previous page, opaque and returned by this route; an unknown or malformed cursor answers 400 `invalid_cursor`.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "description": "The `next_cursor` of the previous page, opaque and returned by this route; an unknown or malformed cursor answers 400 `invalid_cursor`.",
              "examples": [
                "MTc2NzIyNTYwMDAwMCw2ZjFjMGYwZThh"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One page of the SVMs of a project.",
                  "properties": {
                    "next_cursor": {
                      "description": "Send it as `cursor` to read the next page; it carries the creation time and id of the last SVM of this page.",
                      "examples": [
                        "MTc2NzIyNTYwMDAwMCw2ZjFjMGYwZThh"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "svms": {
                      "description": "The SVMs of this page, newest first; a project with no SVM gets `[]`.",
                      "items": {
                        "description": "One SVM of the organization.",
                        "properties": {
                          "concurrency": {
                            "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                            "examples": [
                              64
                            ],
                            "type": "number"
                          },
                          "cpu_ceiling_millis": {
                            "description": "The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.",
                            "examples": [
                              2000
                            ],
                            "type": "integer"
                          },
                          "cpu_millis": {
                            "description": "The base CPU of the SVM in millicores: `memory_mib * 1000 / 2048`. 2048 MiB is 1000 millicores.",
                            "examples": [
                              1000
                            ],
                            "type": "integer"
                          },
                          "created_ms": {
                            "description": "The creation time in milliseconds since the Unix epoch.",
                            "examples": [
                              1767225600000
                            ],
                            "type": "integer"
                          },
                          "disk_mib": {
                            "description": "The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.",
                            "examples": [
                              51200
                            ],
                            "type": "integer"
                          },
                          "egress": {
                            "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                            "properties": {
                              "allowed_domains": {
                                "items": {
                                  "description": "An exact hostname, or `*.domain` for its subdomains only.",
                                  "examples": [
                                    "api.example.com"
                                  ],
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "filtering": {
                                "description": "Whether domain filtering is on.",
                                "examples": [
                                  true
                                ],
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "filtering",
                              "allowed_domains"
                            ],
                            "type": "object"
                          },
                          "env": {
                            "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                            "examples": [
                              {
                                "DEBUG": "1"
                              }
                            ],
                            "patternProperties": {
                              "^.*$": {
                                "description": "The value of the variable, which may not hold a NUL byte.",
                                "examples": [
                                  "1"
                                ],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "expires_at": {
                            "description": "When the minute cron deletes the SVM, in milliseconds since the Unix epoch.",
                            "examples": [
                              1767484800000
                            ],
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "generation": {
                            "description": "The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as `If-Match` to make a change conditional.",
                            "examples": [
                              1
                            ],
                            "type": "integer"
                          },
                          "github": {
                            "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                            "examples": [
                              "conn_6f1c0f0e8a"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "guest_vcpus": {
                            "description": "The virtual CPUs that the guest boots with: `ceil(cpu_ceiling_millis / 1000)` on the shared tier and `cpu_millis / 1000` on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.",
                            "examples": [
                              2
                            ],
                            "type": "integer"
                          },
                          "id": {
                            "description": "The SVM id: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz`; a reference that does not match it is a name.",
                            "examples": [
                              "6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "image": {
                            "description": "The guest image of the SVM, fixed at creation: `default` or the standalone Postgres image.",
                            "enum": [
                              "default",
                              "postgres"
                            ],
                            "examples": [
                              "default"
                            ],
                            "type": "string"
                          },
                          "inbox": {
                            "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                            "properties": {
                              "allowed_senders": {
                                "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                                "examples": [
                                  [
                                    "ada@example.com"
                                  ]
                                ],
                                "items": {
                                  "description": "One exact SMTP envelope sender address, lowercased on save.",
                                  "examples": [
                                    "ada@example.com"
                                  ],
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ]
                              },
                              "enabled": {
                                "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                                "examples": [
                                  true
                                ],
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "enabled",
                              "allowed_senders"
                            ],
                            "type": "object"
                          },
                          "labels": {
                            "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                            "examples": [
                              {
                                "app": "web",
                                "tier": "api"
                              }
                            ],
                            "patternProperties": {
                              "^.*$": {
                                "description": "A label value: any text of at most 128 UTF-8 bytes.",
                                "examples": [
                                  "web"
                                ],
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "memory_mib": {
                            "description": "The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.",
                            "examples": [
                              2048
                            ],
                            "type": "integer"
                          },
                          "name": {
                            "description": "The name of the SVM.",
                            "examples": [
                              "build-1"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "project": {
                            "description": "The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.",
                            "examples": [
                              "proj_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "readiness": {
                            "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                            "examples": [
                              {
                                "port": 5432,
                                "timeout_s": 30
                              }
                            ],
                            "properties": {
                              "path": {
                                "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                                "examples": [
                                  "/healthz"
                                ],
                                "type": "string"
                              },
                              "port": {
                                "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                                "examples": [
                                  5432
                                ],
                                "type": "number"
                              },
                              "timeout_s": {
                                "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                                "examples": [
                                  30
                                ],
                                "type": "number"
                              }
                            },
                            "required": [
                              "port",
                              "timeout_s"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "region": {
                            "description": "The region of the SVM.",
                            "examples": [
                              "eu-gra"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "secret_injections": {
                            "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                            "items": {
                              "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                              "properties": {
                                "domain": {
                                  "description": "The exact HTTPS destination hostname.",
                                  "examples": [
                                    "api.openai.com"
                                  ],
                                  "type": "string"
                                },
                                "header": {
                                  "description": "The lowercased request header to replace.",
                                  "examples": [
                                    "authorization"
                                  ],
                                  "type": "string"
                                },
                                "placeholder": {
                                  "description": "The request-target token to replace; a rule has a header or a placeholder.",
                                  "examples": [
                                    "__TELEGRAM_BOT_TOKEN__"
                                  ],
                                  "type": "string"
                                },
                                "secret_id": {
                                  "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                                  "examples": [
                                    "sec_6f1c0f0e8a",
                                    "connection:conn_6f1c0f0e8a"
                                  ],
                                  "type": "string"
                                },
                                "value_format": {
                                  "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                                  "enum": [
                                    "raw",
                                    "basic_x_access_token"
                                  ],
                                  "examples": [
                                    "raw"
                                  ],
                                  "type": "string"
                                },
                                "value_prefix": {
                                  "description": "The text before a raw value; empty when there is none.",
                                  "examples": [
                                    "Bearer "
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "domain",
                                "secret_id",
                                "value_prefix",
                                "value_format"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "sleep": {
                            "anyOf": [
                              {
                                "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                                "properties": {
                                  "mode": {
                                    "const": "auto",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode"
                                ],
                                "type": "object"
                              },
                              {
                                "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                                "properties": {
                                  "after_s": {
                                    "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                                    "examples": [
                                      1800
                                    ],
                                    "type": "integer"
                                  },
                                  "mode": {
                                    "const": "timer",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "after_s"
                                ],
                                "type": "object"
                              },
                              {
                                "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                                "properties": {
                                  "mode": {
                                    "const": "on",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                            "examples": [
                              {
                                "mode": "auto"
                              }
                            ]
                          },
                          "state": {
                            "description": "The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.",
                            "enum": [
                              "running",
                              "paused",
                              "stopped",
                              "unknown",
                              "deleting"
                            ],
                            "examples": [
                              "stopped"
                            ],
                            "type": "string"
                          },
                          "state_changed_ms": {
                            "description": "The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or `null` when the state is unknown or was never recorded; it can lag the node report that changed the state.",
                            "examples": [
                              1767225600000
                            ],
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "tier": {
                            "enum": [
                              "shared",
                              "dedicated"
                            ],
                            "type": "string"
                          },
                          "url": {
                            "description": "The terminal URL of the SVM: `https://<id>.<SVM domain>/bin/bash`; opening it starts the SVM and a login shell in `/home/user`.",
                            "examples": [
                              "https://6f1c0f0e8a.slashinfra.dev/bin/bash"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "project",
                          "name",
                          "state",
                          "state_changed_ms",
                          "generation",
                          "labels",
                          "image",
                          "url",
                          "region",
                          "tier",
                          "memory_mib",
                          "cpu_millis",
                          "cpu_ceiling_millis",
                          "guest_vcpus",
                          "disk_mib",
                          "created_ms",
                          "expires_at",
                          "env",
                          "inbox",
                          "egress",
                          "secret_injections",
                          "github",
                          "sleep",
                          "readiness",
                          "concurrency"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "svms",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One page of the SVMs of a project."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_labels`: The labels are not valid.\n`invalid_cursor`: The cursor is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_labels`: The labels are not valid.\n`invalid_cursor`: The cursor is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List SVMs",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si --json ls --project staging"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms?project=staging&label.app=web&limit=50\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Creates an SVM in its project and starts it on its first request. Its profile, snapshot, fork source and secret injections must belong to the same project, and a dedicated create with no free whole core answers 409 `dedicated_capacity`; sizes and limits are in [limits](/docs/reference/limits).",
        "operationId": "postSvms",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The optional settings of the new SVM.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "fork_of": {
                    "description": "The SVM to fork: takes a snapshot named `fork-of-<source>-<time>` and creates this SVM from it; `snapshot` excludes this field.",
                    "examples": [
                      "build-1"
                    ],
                    "type": "string"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "if_absent": {
                    "description": "Return the existing SVM of the organization with the same `name` and its stored settings with 200 instead of 409 `name_taken`; it needs a name.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "labels": {
                    "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                    "examples": [
                      {
                        "app": "web",
                        "tier": "api"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "A label value: any text of at most 128 UTF-8 bytes.",
                        "examples": [
                          "web"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "memory_mib": {
                    "description": "The RAM of the new SVM in MiB: 2048, 4096, 8192 or 16384, or 4096, 8192 or 16384 on the dedicated tier; the default is 2048, the standard plan stops at 8192 on the shared tier and has no dedicated tier (403 `size_not_allowed`), the CPU follows at 1 vCPU per 2 GiB, and derived fields such as `cpu_millis` are refused.",
                    "examples": [
                      2048
                    ],
                    "maximum": 16384,
                    "minimum": 2048,
                    "multipleOf": 2048,
                    "type": "integer"
                  },
                  "name": {
                    "description": "The name of the new SVM, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; without one the SVM has none.",
                    "examples": [
                      "build-1"
                    ],
                    "type": "string"
                  },
                  "profile_id": {
                    "description": "The workload profile to copy, by id, or by name in the project of the request; its environment, inbox and egress blocks fill the blocks this request does not set, and a missing profile, or one of another project, answers 404 `profile_not_found`.",
                    "examples": [
                      "prof_6f1c0f0e8a"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name that the SVM belongs to, `default` when omitted; its profile, snapshot, fork source and secret injections must belong to the same project, or the reference answers 404 `not_found`, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "region": {
                    "description": "The region to place the new SVM in; without one it takes the first preferred region with room, else any region, and an unknown region answers 400 `unknown_region`.",
                    "examples": [
                      "eu-gra"
                    ],
                    "type": "string"
                  },
                  "secret_injections": {
                    "description": "HTTPS secret injections of the new SVM, replacing the profile list whole; a client expands a preset from `GET /secret-injection-presets` into explicit rules.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  },
                  "snapshot": {
                    "description": "The snapshot to start the new SVM from, by id, or by name in the project of the request; a `creating` snapshot is accepted and the first wake waits for it, and `fork_of` excludes this field (see [snapshots](/docs/platform/snapshots)).",
                    "examples": [
                      "before-upgrade"
                    ],
                    "type": "string"
                  },
                  "tier": {
                    "enum": [
                      "shared",
                      "dedicated"
                    ],
                    "type": "string"
                  },
                  "ttl_s": {
                    "description": "The life of the new SVM in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes the SVM when it expires, and without it the SVM lives until it is deleted.",
                    "examples": [
                      259200
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The optional settings of the new SVM.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "fork_of": {
                    "description": "The SVM to fork: takes a snapshot named `fork-of-<source>-<time>` and creates this SVM from it; `snapshot` excludes this field.",
                    "examples": [
                      "build-1"
                    ],
                    "type": "string"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "if_absent": {
                    "description": "Return the existing SVM of the organization with the same `name` and its stored settings with 200 instead of 409 `name_taken`; it needs a name.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "labels": {
                    "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                    "examples": [
                      {
                        "app": "web",
                        "tier": "api"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "A label value: any text of at most 128 UTF-8 bytes.",
                        "examples": [
                          "web"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "memory_mib": {
                    "description": "The RAM of the new SVM in MiB: 2048, 4096, 8192 or 16384, or 4096, 8192 or 16384 on the dedicated tier; the default is 2048, the standard plan stops at 8192 on the shared tier and has no dedicated tier (403 `size_not_allowed`), the CPU follows at 1 vCPU per 2 GiB, and derived fields such as `cpu_millis` are refused.",
                    "examples": [
                      2048
                    ],
                    "maximum": 16384,
                    "minimum": 2048,
                    "multipleOf": 2048,
                    "type": "integer"
                  },
                  "name": {
                    "description": "The name of the new SVM, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; without one the SVM has none.",
                    "examples": [
                      "build-1"
                    ],
                    "type": "string"
                  },
                  "profile_id": {
                    "description": "The workload profile to copy, by id, or by name in the project of the request; its environment, inbox and egress blocks fill the blocks this request does not set, and a missing profile, or one of another project, answers 404 `profile_not_found`.",
                    "examples": [
                      "prof_6f1c0f0e8a"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name that the SVM belongs to, `default` when omitted; its profile, snapshot, fork source and secret injections must belong to the same project, or the reference answers 404 `not_found`, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "region": {
                    "description": "The region to place the new SVM in; without one it takes the first preferred region with room, else any region, and an unknown region answers 400 `unknown_region`.",
                    "examples": [
                      "eu-gra"
                    ],
                    "type": "string"
                  },
                  "secret_injections": {
                    "description": "HTTPS secret injections of the new SVM, replacing the profile list whole; a client expands a preset from `GET /secret-injection-presets` into explicit rules.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  },
                  "snapshot": {
                    "description": "The snapshot to start the new SVM from, by id, or by name in the project of the request; a `creating` snapshot is accepted and the first wake waits for it, and `fork_of` excludes this field (see [snapshots](/docs/platform/snapshots)).",
                    "examples": [
                      "before-upgrade"
                    ],
                    "type": "string"
                  },
                  "tier": {
                    "enum": [
                      "shared",
                      "dedicated"
                    ],
                    "type": "string"
                  },
                  "ttl_s": {
                    "description": "The life of the new SVM in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes the SVM when it expires, and without it the SVM lives until it is deleted.",
                    "examples": [
                      259200
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The optional settings of the new SVM.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "fork_of": {
                    "description": "The SVM to fork: takes a snapshot named `fork-of-<source>-<time>` and creates this SVM from it; `snapshot` excludes this field.",
                    "examples": [
                      "build-1"
                    ],
                    "type": "string"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "if_absent": {
                    "description": "Return the existing SVM of the organization with the same `name` and its stored settings with 200 instead of 409 `name_taken`; it needs a name.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "inbox": {
                    "description": "The optional email inbox of a workload, off by default.",
                    "properties": {
                      "allowed_senders": {
                        "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                        "examples": [
                          [
                            "ada@example.com"
                          ]
                        ],
                        "items": {
                          "description": "One exact SMTP envelope sender address, lowercased on save.",
                          "examples": [
                            "ada@example.com"
                          ],
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "enabled": {
                        "description": "Whether the inbox accepts mail; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "labels": {
                    "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                    "examples": [
                      {
                        "app": "web",
                        "tier": "api"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "A label value: any text of at most 128 UTF-8 bytes.",
                        "examples": [
                          "web"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "memory_mib": {
                    "description": "The RAM of the new SVM in MiB: 2048, 4096, 8192 or 16384, or 4096, 8192 or 16384 on the dedicated tier; the default is 2048, the standard plan stops at 8192 on the shared tier and has no dedicated tier (403 `size_not_allowed`), the CPU follows at 1 vCPU per 2 GiB, and derived fields such as `cpu_millis` are refused.",
                    "examples": [
                      2048
                    ],
                    "maximum": 16384,
                    "minimum": 2048,
                    "multipleOf": 2048,
                    "type": "integer"
                  },
                  "name": {
                    "description": "The name of the new SVM, unique in its project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id; without one the SVM has none.",
                    "examples": [
                      "build-1"
                    ],
                    "type": "string"
                  },
                  "profile_id": {
                    "description": "The workload profile to copy, by id, or by name in the project of the request; its environment, inbox and egress blocks fill the blocks this request does not set, and a missing profile, or one of another project, answers 404 `profile_not_found`.",
                    "examples": [
                      "prof_6f1c0f0e8a"
                    ],
                    "type": "string"
                  },
                  "project": {
                    "description": "The project id or name that the SVM belongs to, `default` when omitted; its profile, snapshot, fork source and secret injections must belong to the same project, or the reference answers 404 `not_found`, and an unknown project answers 404 `project_not_found`.",
                    "examples": [
                      "staging"
                    ],
                    "type": "string"
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "region": {
                    "description": "The region to place the new SVM in; without one it takes the first preferred region with room, else any region, and an unknown region answers 400 `unknown_region`.",
                    "examples": [
                      "eu-gra"
                    ],
                    "type": "string"
                  },
                  "secret_injections": {
                    "description": "HTTPS secret injections of the new SVM, replacing the profile list whole; a client expands a preset from `GET /secret-injection-presets` into explicit rules.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sleep": {
                    "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                    "properties": {
                      "after_s": {
                        "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                        "examples": [
                          1800
                        ],
                        "type": "number"
                      },
                      "mode": {
                        "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                        "examples": [
                          "timer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  },
                  "snapshot": {
                    "description": "The snapshot to start the new SVM from, by id, or by name in the project of the request; a `creating` snapshot is accepted and the first wake waits for it, and `fork_of` excludes this field (see [snapshots](/docs/platform/snapshots)).",
                    "examples": [
                      "before-upgrade"
                    ],
                    "type": "string"
                  },
                  "tier": {
                    "enum": [
                      "shared",
                      "dedicated"
                    ],
                    "type": "string"
                  },
                  "ttl_s": {
                    "description": "The life of the new SVM in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes the SVM when it expires, and without it the SVM lives until it is deleted.",
                    "examples": [
                      259200
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "description": "The optional settings of the new SVM.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The SVM that the create made or reused, when it expires, its generation and its labels.",
                  "properties": {
                    "expires_at": {
                      "description": "When the minute cron deletes the SVM, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767484800000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "generation": {
                      "description": "The generation of the SVM after the create: `1` for a new SVM, or the stored generation of the SVM that `if_absent` reused.",
                      "examples": [
                        1
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The id of the SVM, used as `<svm>` in `si exec` and the other commands.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "labels": {
                      "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                      "examples": [
                        {
                          "app": "web",
                          "tier": "api"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "A label value: any text of at most 128 UTF-8 bytes.",
                          "examples": [
                            "web"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "project": {
                      "description": "The id of the project of the SVM.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "region": {
                      "description": "The region of the SVM.",
                      "examples": [
                        "eu-gra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "url": {
                      "description": "The terminal URL of the SVM: `https://<id>.<SVM domain>/bin/bash`.",
                      "examples": [
                        "https://6f1c0f0e8a.slashinfra.dev/bin/bash"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "url",
                    "region",
                    "expires_at",
                    "generation",
                    "labels"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The SVM that the create made or reused, when it expires, its generation and its labels."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The SVM that the create made or reused, when it expires, its generation and its labels.",
                  "properties": {
                    "expires_at": {
                      "description": "When the minute cron deletes the SVM, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767484800000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "generation": {
                      "description": "The generation of the SVM after the create: `1` for a new SVM, or the stored generation of the SVM that `if_absent` reused.",
                      "examples": [
                        1
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The id of the SVM, used as `<svm>` in `si exec` and the other commands.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "labels": {
                      "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                      "examples": [
                        {
                          "app": "web",
                          "tier": "api"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "A label value: any text of at most 128 UTF-8 bytes.",
                          "examples": [
                            "web"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "project": {
                      "description": "The id of the project of the SVM.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "region": {
                      "description": "The region of the SVM.",
                      "examples": [
                        "eu-gra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "url": {
                      "description": "The terminal URL of the SVM: `https://<id>.<SVM domain>/bin/bash`.",
                      "examples": [
                        "https://6f1c0f0e8a.slashinfra.dev/bin/bash"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "url",
                    "region",
                    "expires_at",
                    "generation",
                    "labels"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The SVM that the create made or reused, when it expires, its generation and its labels."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_size`: The size is not valid.\n`invalid_snapshot`: The snapshot is not valid.\n`invalid_ttl`: The lifetime is not valid.\n`invalid_if_absent`: The if_absent value is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_labels`: The labels are not valid.\n`reserved_label`: The label name is reserved.\n`invalid_sender`: A sender address is not valid.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`invalid_sleep`: The sleep policy is not valid.\n`unknown_region`: This region does not exist.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_size`: The size is not valid.\n`invalid_snapshot`: The snapshot is not valid.\n`invalid_ttl`: The lifetime is not valid.\n`invalid_if_absent`: The if_absent value is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_labels`: The labels are not valid.\n`reserved_label`: The label name is reserved.\n`invalid_sender`: A sender address is not valid.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`invalid_sleep`: The sleep policy is not valid.\n`unknown_region`: This region does not exist.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`inbox_not_allowed`: Your plan does not include inboxes.\n`size_not_allowed`: Your plan does not include this VM size.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`inbox_not_allowed`: Your plan does not include inboxes.\n`size_not_allowed`: Your plan does not include this VM size."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`profile_not_found`: This profile does not exist.\n`snapshot_not_found`: This snapshot does not exist.\n`svm_not_found`: This SVM does not exist.\n`secret_not_found`: This secret does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`profile_not_found`: This profile does not exist.\n`snapshot_not_found`: This snapshot does not exist.\n`svm_not_found`: This SVM does not exist.\n`secret_not_found`: This secret does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`deleting`: This resource is being deleted.\n`svm_limit`: You have reached the limit of SVMs.\n`name_taken`: This name is already used.\n`snapshot_limit`: You have reached the limit of snapshots.\n`snapshot_failed`: This snapshot failed.\n`dedicated_capacity`: No dedicated core is free right now.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`deleting`: This resource is being deleted.\n`svm_limit`: You have reached the limit of SVMs.\n`name_taken`: This name is already used.\n`snapshot_limit`: You have reached the limit of snapshots.\n`snapshot_failed`: This snapshot failed.\n`dedicated_capacity`: No dedicated core is free right now."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_tier`: The tier is not valid.\n`invalid_memory`: The memory is not valid.\n`size_unavailable`: This size is not available.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_tier`: The tier is not valid.\n`invalid_memory`: The memory is not valid.\n`size_unavailable`: This size is not available."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`internal`: Something went wrong on our side.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`internal`: Something went wrong on our side."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`no_capacity`: There is no free capacity right now.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`no_capacity`: There is no free capacity right now."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si create --name build-1 --profile dev --env DEBUG=1"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"build-1\",\"profile_id\":\"prof_6f1c0f0e8a\",\"env\":{\"DEBUG\":\"1\"}}'"
          }
        ]
      }
    },
    "/svms/{id}": {
      "delete": {
        "description": "Permanently deletes the SVM with its disk, processes, terminals and preview connections; this cannot be undone. The SVM host answers 404 within 30 seconds.",
        "operationId": "deleteSvmsById",
        "parameters": [
          {
            "description": "The SVM id: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz`; a name is not accepted here.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The SVM id: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz`; a name is not accepted here.",
              "examples": [
                "6f1c0f0e8a"
              ],
              "pattern": "^[0-9abcdefghjkmnpqrstvwxyz]{10}$",
              "type": "string"
            }
          },
          {
            "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
            "in": "header",
            "name": "if-match",
            "required": false,
            "schema": {
              "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
              "examples": [
                "2"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The SVM is marked for deletion, and its processes, disk and record are deleted once the next node report confirms it.",
                  "type": "string"
                }
              }
            },
            "description": "The SVM is marked for deletion, and its processes, disk and record are deleted once the next node report confirms it."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_if_match`: The If-Match header is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_if_match`: The If-Match header is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`not_found`: Nothing exists at this address.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`not_found`: Nothing exists at this address."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_mismatch`: The SVM changed since you read it.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_mismatch`: The SVM changed since you read it."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si rm"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/svms/6f1c0f0e8a\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}": {
      "get": {
        "description": "Returns one SVM of the organization. An id resolves in every project; a name resolves in the `project` query, `default` when omitted.",
        "operationId": "getSvmsByRef",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One SVM of the organization.",
                  "properties": {
                    "concurrency": {
                      "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                      "examples": [
                        64
                      ],
                      "type": "number"
                    },
                    "cpu_ceiling_millis": {
                      "description": "The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.",
                      "examples": [
                        2000
                      ],
                      "type": "integer"
                    },
                    "cpu_millis": {
                      "description": "The base CPU of the SVM in millicores: `memory_mib * 1000 / 2048`. 2048 MiB is 1000 millicores.",
                      "examples": [
                        1000
                      ],
                      "type": "integer"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "disk_mib": {
                      "description": "The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.",
                      "examples": [
                        51200
                      ],
                      "type": "integer"
                    },
                    "egress": {
                      "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                      "properties": {
                        "allowed_domains": {
                          "items": {
                            "description": "An exact hostname, or `*.domain` for its subdomains only.",
                            "examples": [
                              "api.example.com"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "filtering": {
                          "description": "Whether domain filtering is on.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "filtering",
                        "allowed_domains"
                      ],
                      "type": "object"
                    },
                    "env": {
                      "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                      "examples": [
                        {
                          "DEBUG": "1"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "The value of the variable, which may not hold a NUL byte.",
                          "examples": [
                            "1"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "expires_at": {
                      "description": "When the minute cron deletes the SVM, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767484800000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "generation": {
                      "description": "The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as `If-Match` to make a change conditional.",
                      "examples": [
                        1
                      ],
                      "type": "integer"
                    },
                    "github": {
                      "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "guest_vcpus": {
                      "description": "The virtual CPUs that the guest boots with: `ceil(cpu_ceiling_millis / 1000)` on the shared tier and `cpu_millis / 1000` on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The SVM id: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz`; a reference that does not match it is a name.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "image": {
                      "description": "The guest image of the SVM, fixed at creation: `default` or the standalone Postgres image.",
                      "enum": [
                        "default",
                        "postgres"
                      ],
                      "examples": [
                        "default"
                      ],
                      "type": "string"
                    },
                    "inbox": {
                      "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                      "properties": {
                        "allowed_senders": {
                          "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                          "examples": [
                            [
                              "ada@example.com"
                            ]
                          ],
                          "items": {
                            "description": "One exact SMTP envelope sender address, lowercased on save.",
                            "examples": [
                              "ada@example.com"
                            ],
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "enabled": {
                          "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "allowed_senders"
                      ],
                      "type": "object"
                    },
                    "labels": {
                      "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                      "examples": [
                        {
                          "app": "web",
                          "tier": "api"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "A label value: any text of at most 128 UTF-8 bytes.",
                          "examples": [
                            "web"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "memory_mib": {
                      "description": "The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.",
                      "examples": [
                        2048
                      ],
                      "type": "integer"
                    },
                    "name": {
                      "description": "The name of the SVM.",
                      "examples": [
                        "build-1"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "project": {
                      "description": "The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "readiness": {
                      "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                      "examples": [
                        {
                          "port": 5432,
                          "timeout_s": 30
                        }
                      ],
                      "properties": {
                        "path": {
                          "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                          "examples": [
                            "/healthz"
                          ],
                          "type": "string"
                        },
                        "port": {
                          "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                          "examples": [
                            5432
                          ],
                          "type": "number"
                        },
                        "timeout_s": {
                          "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                          "examples": [
                            30
                          ],
                          "type": "number"
                        }
                      },
                      "required": [
                        "port",
                        "timeout_s"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "region": {
                      "description": "The region of the SVM.",
                      "examples": [
                        "eu-gra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secret_injections": {
                      "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sleep": {
                      "anyOf": [
                        {
                          "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                          "properties": {
                            "mode": {
                              "const": "auto",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                          "properties": {
                            "after_s": {
                              "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                              "examples": [
                                1800
                              ],
                              "type": "integer"
                            },
                            "mode": {
                              "const": "timer",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode",
                            "after_s"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                          "properties": {
                            "mode": {
                              "const": "on",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                      "examples": [
                        {
                          "mode": "auto"
                        }
                      ]
                    },
                    "state": {
                      "description": "The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.",
                      "enum": [
                        "running",
                        "paused",
                        "stopped",
                        "unknown",
                        "deleting"
                      ],
                      "examples": [
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "state_changed_ms": {
                      "description": "The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or `null` when the state is unknown or was never recorded; it can lag the node report that changed the state.",
                      "examples": [
                        1767225600000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "tier": {
                      "enum": [
                        "shared",
                        "dedicated"
                      ],
                      "type": "string"
                    },
                    "url": {
                      "description": "The terminal URL of the SVM: `https://<id>.<SVM domain>/bin/bash`; opening it starts the SVM and a login shell in `/home/user`.",
                      "examples": [
                        "https://6f1c0f0e8a.slashinfra.dev/bin/bash"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "state",
                    "state_changed_ms",
                    "generation",
                    "labels",
                    "image",
                    "url",
                    "region",
                    "tier",
                    "memory_mib",
                    "cpu_millis",
                    "cpu_ceiling_millis",
                    "guest_vcpus",
                    "disk_mib",
                    "created_ms",
                    "expires_at",
                    "env",
                    "inbox",
                    "egress",
                    "secret_injections",
                    "github",
                    "sleep",
                    "readiness",
                    "concurrency"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One SVM of the organization."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1?project=staging\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "patch": {
        "description": "Changes the name, environment, domain filter, secret injections, readiness, concurrency or labels; an omitted field keeps its stored value and a given block replaces it whole. Domain, injection, readiness and concurrency changes apply at once to a running SVM and at its next wake otherwise, and `memory_mib`, `region`, the profile and the snapshot are fixed at creation.",
        "operationId": "patchSvmsByRef",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
            "in": "header",
            "name": "if-match",
            "required": false,
            "schema": {
              "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
              "examples": [
                "2"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The settings to change: an omitted field keeps its stored value, a given block replaces the stored block whole, and an empty object answers 400 `invalid_patch`.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "labels": {
                    "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                    "examples": [
                      {
                        "app": "web",
                        "tier": "api"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "A label value: any text of at most 128 UTF-8 bytes.",
                        "examples": [
                          "web"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "name": {
                    "description": "The new name, unique in the project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id.",
                    "examples": [
                      "build-2"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "The HTTPS secret injections of the SVM, replacing the stored list whole; every rule must name a secret or connection of this organization.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The settings to change: an omitted field keeps its stored value, a given block replaces the stored block whole, and an empty object answers 400 `invalid_patch`.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "labels": {
                    "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                    "examples": [
                      {
                        "app": "web",
                        "tier": "api"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "A label value: any text of at most 128 UTF-8 bytes.",
                        "examples": [
                          "web"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "name": {
                    "description": "The new name, unique in the project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id.",
                    "examples": [
                      "build-2"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "The HTTPS secret injections of the SVM, replacing the stored list whole; every rule must name a secret or connection of this organization.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The settings to change: an omitted field keeps its stored value, a given block replaces the stored block whole, and an empty object answers 400 `invalid_patch`.",
                "properties": {
                  "concurrency": {
                    "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                    "examples": [
                      64
                    ],
                    "type": "number"
                  },
                  "egress": {
                    "description": "The optional domain filter of a workload; filtering is off by default.",
                    "properties": {
                      "allowed_domains": {
                        "items": {
                          "description": "An exact hostname, or `*.domain` for its subdomains only, lowercased on save.",
                          "examples": [
                            "api.example.com",
                            "*.example.org"
                          ],
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "filtering": {
                        "description": "Whether domain filtering is on; it is off by default.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "env": {
                    "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                    "examples": [
                      {
                        "DEBUG": "1"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "The value of the variable, which may not hold a NUL byte.",
                        "examples": [
                          "1"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "github": {
                    "description": "A GitHub connection id of the organization.",
                    "examples": [
                      "conn_6f1c0f0e8a"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "labels": {
                    "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                    "examples": [
                      {
                        "app": "web",
                        "tier": "api"
                      }
                    ],
                    "patternProperties": {
                      "^.*$": {
                        "description": "A label value: any text of at most 128 UTF-8 bytes.",
                        "examples": [
                          "web"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "name": {
                    "description": "The new name, unique in the project: `^[a-z][a-z0-9-]{0,31}$`, and never a valid id.",
                    "examples": [
                      "build-2"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "readiness": {
                    "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                    "properties": {
                      "path": {
                        "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                        "examples": [
                          "/healthz"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                        "examples": [
                          5432
                        ],
                        "type": "number"
                      },
                      "timeout_s": {
                        "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                        "examples": [
                          30
                        ],
                        "type": "number"
                      }
                    },
                    "required": [
                      "port",
                      "timeout_s"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "secret_injections": {
                    "description": "The HTTPS secret injections of the SVM, replacing the stored list whole; every rule must name a secret or connection of this organization.",
                    "items": {
                      "description": "One HTTPS injection: the proxy sends the secret on requests to the exact domain, in a header or in the request target.",
                      "properties": {
                        "domain": {
                          "description": "The exact HTTPS destination hostname; a wildcard is refused.",
                          "examples": [
                            "api.openai.com"
                          ],
                          "type": "string"
                        },
                        "header": {
                          "description": "The request header to replace, lowercased: a valid token except `host`, `content-length`, `transfer-encoding`, `connection`, `upgrade`, `te`, `trailer`, `cookie` and `proxy-*`; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "authorization"
                          ],
                          "type": "string"
                        },
                        "placeholder": {
                          "description": "A token of the request target, `^__[A-Z0-9_]{8,60}__$`, replaced in the path and query only, never in a header or the body; give exactly one of `header` and `placeholder`.",
                          "examples": [
                            "__TELEGRAM_BOT_TOKEN__"
                          ],
                          "type": "string"
                        },
                        "secret_id": {
                          "description": "The reference that the rule injects: the id of an organization secret (`sec_…`) or `connection:<id>` of a connection; the value never appears in an answer.",
                          "examples": [
                            "sec_6f1c0f0e8a",
                            "connection:conn_6f1c0f0e8a"
                          ],
                          "type": "string"
                        },
                        "value_format": {
                          "description": "`raw` (default) sends the prefix and the value; `basic_x_access_token` sends `Basic base64(\"x-access-token:\" + value)` for git and ignores the prefix.",
                          "examples": [
                            "raw",
                            "basic_x_access_token"
                          ],
                          "type": "string"
                        },
                        "value_prefix": {
                          "description": "The text before a raw value, empty by default and free of CR, LF and NUL; `basic_x_access_token` ignores it.",
                          "examples": [
                            "Bearer "
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "domain",
                        "secret_id"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "description": "The settings to change: an omitted field keeps its stored value, a given block replaces the stored block whole, and an empty object answers 400 `invalid_patch`.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One SVM of the organization.",
                  "properties": {
                    "concurrency": {
                      "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                      "examples": [
                        64
                      ],
                      "type": "number"
                    },
                    "cpu_ceiling_millis": {
                      "description": "The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.",
                      "examples": [
                        2000
                      ],
                      "type": "integer"
                    },
                    "cpu_millis": {
                      "description": "The base CPU of the SVM in millicores: `memory_mib * 1000 / 2048`. 2048 MiB is 1000 millicores.",
                      "examples": [
                        1000
                      ],
                      "type": "integer"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "disk_mib": {
                      "description": "The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.",
                      "examples": [
                        51200
                      ],
                      "type": "integer"
                    },
                    "egress": {
                      "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                      "properties": {
                        "allowed_domains": {
                          "items": {
                            "description": "An exact hostname, or `*.domain` for its subdomains only.",
                            "examples": [
                              "api.example.com"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "filtering": {
                          "description": "Whether domain filtering is on.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "filtering",
                        "allowed_domains"
                      ],
                      "type": "object"
                    },
                    "env": {
                      "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                      "examples": [
                        {
                          "DEBUG": "1"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "The value of the variable, which may not hold a NUL byte.",
                          "examples": [
                            "1"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "expires_at": {
                      "description": "When the minute cron deletes the SVM, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767484800000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "generation": {
                      "description": "The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as `If-Match` to make a change conditional.",
                      "examples": [
                        1
                      ],
                      "type": "integer"
                    },
                    "github": {
                      "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "guest_vcpus": {
                      "description": "The virtual CPUs that the guest boots with: `ceil(cpu_ceiling_millis / 1000)` on the shared tier and `cpu_millis / 1000` on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The SVM id: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz`; a reference that does not match it is a name.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "image": {
                      "description": "The guest image of the SVM, fixed at creation: `default` or the standalone Postgres image.",
                      "enum": [
                        "default",
                        "postgres"
                      ],
                      "examples": [
                        "default"
                      ],
                      "type": "string"
                    },
                    "inbox": {
                      "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                      "properties": {
                        "allowed_senders": {
                          "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                          "examples": [
                            [
                              "ada@example.com"
                            ]
                          ],
                          "items": {
                            "description": "One exact SMTP envelope sender address, lowercased on save.",
                            "examples": [
                              "ada@example.com"
                            ],
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "enabled": {
                          "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "allowed_senders"
                      ],
                      "type": "object"
                    },
                    "labels": {
                      "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                      "examples": [
                        {
                          "app": "web",
                          "tier": "api"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "A label value: any text of at most 128 UTF-8 bytes.",
                          "examples": [
                            "web"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "memory_mib": {
                      "description": "The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.",
                      "examples": [
                        2048
                      ],
                      "type": "integer"
                    },
                    "name": {
                      "description": "The name of the SVM.",
                      "examples": [
                        "build-1"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "project": {
                      "description": "The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "readiness": {
                      "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                      "examples": [
                        {
                          "port": 5432,
                          "timeout_s": 30
                        }
                      ],
                      "properties": {
                        "path": {
                          "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                          "examples": [
                            "/healthz"
                          ],
                          "type": "string"
                        },
                        "port": {
                          "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                          "examples": [
                            5432
                          ],
                          "type": "number"
                        },
                        "timeout_s": {
                          "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                          "examples": [
                            30
                          ],
                          "type": "number"
                        }
                      },
                      "required": [
                        "port",
                        "timeout_s"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "region": {
                      "description": "The region of the SVM.",
                      "examples": [
                        "eu-gra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secret_injections": {
                      "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sleep": {
                      "anyOf": [
                        {
                          "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                          "properties": {
                            "mode": {
                              "const": "auto",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                          "properties": {
                            "after_s": {
                              "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                              "examples": [
                                1800
                              ],
                              "type": "integer"
                            },
                            "mode": {
                              "const": "timer",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode",
                            "after_s"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                          "properties": {
                            "mode": {
                              "const": "on",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                      "examples": [
                        {
                          "mode": "auto"
                        }
                      ]
                    },
                    "state": {
                      "description": "The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.",
                      "enum": [
                        "running",
                        "paused",
                        "stopped",
                        "unknown",
                        "deleting"
                      ],
                      "examples": [
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "state_changed_ms": {
                      "description": "The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or `null` when the state is unknown or was never recorded; it can lag the node report that changed the state.",
                      "examples": [
                        1767225600000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "tier": {
                      "enum": [
                        "shared",
                        "dedicated"
                      ],
                      "type": "string"
                    },
                    "url": {
                      "description": "The terminal URL of the SVM: `https://<id>.<SVM domain>/bin/bash`; opening it starts the SVM and a login shell in `/home/user`.",
                      "examples": [
                        "https://6f1c0f0e8a.slashinfra.dev/bin/bash"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "state",
                    "state_changed_ms",
                    "generation",
                    "labels",
                    "image",
                    "url",
                    "region",
                    "tier",
                    "memory_mib",
                    "cpu_millis",
                    "cpu_ceiling_millis",
                    "guest_vcpus",
                    "disk_mib",
                    "created_ms",
                    "expires_at",
                    "env",
                    "inbox",
                    "egress",
                    "secret_injections",
                    "github",
                    "sleep",
                    "readiness",
                    "concurrency"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One SVM of the organization."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_patch`: The change is not valid.\n`invalid_name`: The name is not valid.\n`invalid_labels`: The labels are not valid.\n`reserved_label`: The label name is reserved.\n`invalid_if_match`: The If-Match header is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_patch`: The change is not valid.\n`invalid_name`: The name is not valid.\n`invalid_labels`: The labels are not valid.\n`reserved_label`: The label name is reserved.\n`invalid_if_match`: The If-Match header is not valid.\n`invalid_env`: An environment variable is not valid.\n`env_too_large`: The environment is too large.\n`invalid_domain`: A host is not valid.\n`invalid_injection`: A secret rule is not valid.\n`unknown_secret`: A rule names a secret that does not exist.\n`unknown_connection`: A rule names a connection that does not exist.\n`invalid_readiness`: The readiness check is not valid.\n`invalid_concurrency`: The concurrency is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`secret_not_found`: This secret does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`secret_not_found`: This secret does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_mismatch`: The SVM changed since you read it.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_mismatch`: The SVM changed since you read it."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Change the settings of an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PATCH \"https://api.slashinfra.com/svms/build-1\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"env\":{\"DEBUG\":\"1\"},\"egress\":{\"filtering\":true,\"allowed_domains\":[\"api.example.com\"]}}'"
          }
        ]
      }
    },
    "/svms/{ref}/grants": {
      "post": {
        "description": "Mints a stateless JWT for the SVM API host; the gate checks the method and decoded path before it forwards a request, and a refused request never wakes the SVM. The guest resolves paths beneath the scope root, so a symlink cannot leave it, and a grant for a terminal (GET of /bin/bash or /bin/hc) wakes the SVM early.",
        "operationId": "postSvmsByRefGrants",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "What an SVM API grant admits, and for how long.",
                "properties": {
                  "args": {
                    "description": "The exact `arg` values that a request must carry, in order; a request with other arguments is refused, and omitting it leaves the arguments open.",
                    "examples": [
                      [
                        "--release"
                      ]
                    ],
                    "items": {
                      "description": "One pinned argument of a run.",
                      "type": "string"
                    },
                    "maxItems": 64,
                    "type": "array"
                  },
                  "methods": {
                    "description": "The methods of the scope; a request with another method is refused before it reaches the SVM.",
                    "examples": [
                      [
                        "GET",
                        "HEAD"
                      ]
                    ],
                    "items": {
                      "description": "An HTTP method that the grant admits.",
                      "examples": [
                        "GET"
                      ],
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "paths": {
                    "description": "The path globs of the scope.",
                    "examples": [
                      [
                        "/home/user/out/**"
                      ]
                    ],
                    "items": {
                      "description": "A path glob in the SVM: `*` matches within one segment and `**` across segments; the gate refuses a path that no glob matches, and the guest root rules are in [access](/docs/how/access).",
                      "examples": [
                        "/home/user/out/**"
                      ],
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "ttl_s": {
                    "description": "The life of the grant in seconds, 3600 by default; the longest is the `max_url_ttl_s` of the plan, 30 days on both plans.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [
                  "methods",
                  "paths"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "What an SVM API grant admits, and for how long.",
                "properties": {
                  "args": {
                    "description": "The exact `arg` values that a request must carry, in order; a request with other arguments is refused, and omitting it leaves the arguments open.",
                    "examples": [
                      [
                        "--release"
                      ]
                    ],
                    "items": {
                      "description": "One pinned argument of a run.",
                      "type": "string"
                    },
                    "maxItems": 64,
                    "type": "array"
                  },
                  "methods": {
                    "description": "The methods of the scope; a request with another method is refused before it reaches the SVM.",
                    "examples": [
                      [
                        "GET",
                        "HEAD"
                      ]
                    ],
                    "items": {
                      "description": "An HTTP method that the grant admits.",
                      "examples": [
                        "GET"
                      ],
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "paths": {
                    "description": "The path globs of the scope.",
                    "examples": [
                      [
                        "/home/user/out/**"
                      ]
                    ],
                    "items": {
                      "description": "A path glob in the SVM: `*` matches within one segment and `**` across segments; the gate refuses a path that no glob matches, and the guest root rules are in [access](/docs/how/access).",
                      "examples": [
                        "/home/user/out/**"
                      ],
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "ttl_s": {
                    "description": "The life of the grant in seconds, 3600 by default; the longest is the `max_url_ttl_s` of the plan, 30 days on both plans.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [
                  "methods",
                  "paths"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "What an SVM API grant admits, and for how long.",
                "properties": {
                  "args": {
                    "description": "The exact `arg` values that a request must carry, in order; a request with other arguments is refused, and omitting it leaves the arguments open.",
                    "examples": [
                      [
                        "--release"
                      ]
                    ],
                    "items": {
                      "description": "One pinned argument of a run.",
                      "type": "string"
                    },
                    "maxItems": 64,
                    "type": "array"
                  },
                  "methods": {
                    "description": "The methods of the scope; a request with another method is refused before it reaches the SVM.",
                    "examples": [
                      [
                        "GET",
                        "HEAD"
                      ]
                    ],
                    "items": {
                      "description": "An HTTP method that the grant admits.",
                      "examples": [
                        "GET"
                      ],
                      "type": "string"
                    },
                    "maxItems": 16,
                    "type": "array"
                  },
                  "paths": {
                    "description": "The path globs of the scope.",
                    "examples": [
                      [
                        "/home/user/out/**"
                      ]
                    ],
                    "items": {
                      "description": "A path glob in the SVM: `*` matches within one segment and `**` across segments; the gate refuses a path that no glob matches, and the guest root rules are in [access](/docs/how/access).",
                      "examples": [
                        "/home/user/out/**"
                      ],
                      "type": "string"
                    },
                    "maxItems": 32,
                    "type": "array"
                  },
                  "ttl_s": {
                    "description": "The life of the grant in seconds, 3600 by default; the longest is the `max_url_ttl_s` of the plan, 30 days on both plans.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [
                  "methods",
                  "paths"
                ],
                "type": "object"
              }
            }
          },
          "description": "What an SVM API grant admits, and for how long.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "An SVM API grant and its expiry.",
                  "properties": {
                    "expires_at": {
                      "description": "The expiry of the grant in milliseconds since the Unix epoch.",
                      "examples": [
                        1767229200000
                      ],
                      "type": "integer"
                    },
                    "generation": {
                      "description": "The `access_generation` that the grant is bound to; a rotate increments it and ends every grant minted before it.",
                      "examples": [
                        0
                      ],
                      "type": "integer"
                    },
                    "url": {
                      "description": "The link of the grant: `https://<id>.<SVM domain>/?si_access=<JWT>`; the token may also be sent in `Authorization`, `X-Si-Authorization` or `?si_access`.",
                      "examples": [
                        "https://6f1c0f0e8a.slashinfra.dev/?si_access=..."
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "expires_at",
                    "generation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An SVM API grant and its expiry."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_scope`: The scope is not valid.\n`invalid_ttl`: The lifetime is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_scope`: The scope is not valid.\n`invalid_ttl`: The lifetime is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`deleting`: This resource is being deleted.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`deleting`: This resource is being deleted."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Mint an SVM API grant",
        "tags": [
          "Grants"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm grant create --method GET --path '/home/user/out/**'"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/grants\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"methods\":[\"GET\"],\"paths\":[\"/home/user/out/**\"],\"ttl_s\":3600}'"
          }
        ]
      }
    },
    "/svms/{ref}/grants/rotate": {
      "post": {
        "description": "Increments the `access_generation` of the SVM, so every SVM API grant minted before it answers 401 `unauthorized`. Port links keep their own generation.",
        "operationId": "postSvmsByRefGrantsRotate",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The generation of the grants of an SVM after a rotation.",
                  "properties": {
                    "generation": {
                      "description": "The new `access_generation` of the SVM.",
                      "examples": [
                        1
                      ],
                      "type": "integer"
                    }
                  },
                  "required": [
                    "generation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The generation of the grants of an SVM after a rotation."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`deleting`: This resource is being deleted.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`deleting`: This resource is being deleted."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rotate the SVM API grants of an SVM",
        "tags": [
          "Grants"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm grant rotate"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/grants/rotate\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/inbox": {
      "get": {
        "description": "Returns whether the inbox accepts mail, its address, sender rule and webhook; the inbox is off by default and rejects mail at SMTP until it is on.",
        "operationId": "getSvmsByRefInbox",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The inbox of one SVM.",
                  "properties": {
                    "address": {
                      "description": "The address of the inbox: `<SVM id>@<SVM domain>`; a `+tag` after the id is accepted and stored with the message.",
                      "examples": [
                        "6f1c0f0e8a@slashinfra.dev"
                      ],
                      "type": "string"
                    },
                    "allowed_senders": {
                      "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                      "examples": [
                        [
                          "ada@example.com"
                        ]
                      ],
                      "items": {
                        "description": "One exact SMTP envelope sender address, lowercased on save.",
                        "examples": [
                          "ada@example.com"
                        ],
                        "type": "string"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "enabled": {
                      "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "telegram": {
                      "description": "The Telegram bot of an SVM; its token lives in the vault and is never part of an answer.",
                      "properties": {
                        "allowed_users": {
                          "description": "The numeric Telegram user ids whose messages reach the inbox; it is empty until the first pair.",
                          "examples": [
                            [
                              "123456789"
                            ]
                          ],
                          "items": {
                            "description": "One numeric Telegram user id.",
                            "examples": [
                              "123456789"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "bot_username": {
                          "description": "The username of the bot.",
                          "examples": [
                            "build_1_bot"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "connected": {
                          "description": "Whether a Telegram bot is connected.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "pair_code": {
                          "description": "The single-use pairing code, valid for ten minutes.",
                          "examples": [
                            "k3m9q2x7"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "pair_expires_ms": {
                          "description": "When the pairing code expires, in milliseconds since the Unix epoch.",
                          "examples": [
                            1767229200000
                          ],
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "connected",
                        "bot_username",
                        "allowed_users",
                        "pair_code",
                        "pair_expires_ms"
                      ],
                      "type": "object"
                    },
                    "webhook_url": {
                      "description": "The HTTPS URL that receives a signed POST per message.",
                      "examples": [
                        "https://example.com/slashinfra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "address",
                    "allowed_senders",
                    "webhook_url",
                    "telegram"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The inbox of one SVM."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Show the inbox of an SVM",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm inbox"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1/inbox\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "put": {
        "description": "Turns the inbox on or off, sets or removes the webhook and sets the sender rule; a new or changed webhook URL returns a new secret once, and disabling keeps the webhook and rule. Turning it on needs a plan with `inbox_allowed`, and the sender rule applies to new mail only; see [email](/docs/platform/email).",
        "operationId": "putSvmsByRefInbox",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allowed_senders": {
                    "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses; omit it to keep the current rule.",
                    "examples": [
                      [
                        "ada@example.com"
                      ]
                    ],
                    "items": {
                      "description": "One exact SMTP envelope sender address, lowercased on save.",
                      "examples": [
                        "ada@example.com"
                      ],
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "enabled": {
                    "description": "Whether the inbox accepts mail; turning it on needs a plan with `inbox_allowed`.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "webhook_url": {
                    "description": "The HTTPS URL of the webhook.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "allowed_senders": {
                    "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses; omit it to keep the current rule.",
                    "examples": [
                      [
                        "ada@example.com"
                      ]
                    ],
                    "items": {
                      "description": "One exact SMTP envelope sender address, lowercased on save.",
                      "examples": [
                        "ada@example.com"
                      ],
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "enabled": {
                    "description": "Whether the inbox accepts mail; turning it on needs a plan with `inbox_allowed`.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "webhook_url": {
                    "description": "The HTTPS URL of the webhook.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "allowed_senders": {
                    "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses; omit it to keep the current rule.",
                    "examples": [
                      [
                        "ada@example.com"
                      ]
                    ],
                    "items": {
                      "description": "One exact SMTP envelope sender address, lowercased on save.",
                      "examples": [
                        "ada@example.com"
                      ],
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "enabled": {
                    "description": "Whether the inbox accepts mail; turning it on needs a plan with `inbox_allowed`.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "webhook_url": {
                    "description": "The HTTPS URL of the webhook.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The inbox of one SVM, with a webhook secret when one was set or rotated.",
                  "properties": {
                    "address": {
                      "description": "The address of the inbox: `<SVM id>@<SVM domain>`; a `+tag` after the id is accepted and stored with the message.",
                      "examples": [
                        "6f1c0f0e8a@slashinfra.dev"
                      ],
                      "type": "string"
                    },
                    "allowed_senders": {
                      "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                      "examples": [
                        [
                          "ada@example.com"
                        ]
                      ],
                      "items": {
                        "description": "One exact SMTP envelope sender address, lowercased on save.",
                        "examples": [
                          "ada@example.com"
                        ],
                        "type": "string"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "enabled": {
                      "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "telegram": {
                      "description": "The Telegram bot of an SVM; its token lives in the vault and is never part of an answer.",
                      "properties": {
                        "allowed_users": {
                          "description": "The numeric Telegram user ids whose messages reach the inbox; it is empty until the first pair.",
                          "examples": [
                            [
                              "123456789"
                            ]
                          ],
                          "items": {
                            "description": "One numeric Telegram user id.",
                            "examples": [
                              "123456789"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "bot_username": {
                          "description": "The username of the bot.",
                          "examples": [
                            "build_1_bot"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "connected": {
                          "description": "Whether a Telegram bot is connected.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "pair_code": {
                          "description": "The single-use pairing code, valid for ten minutes.",
                          "examples": [
                            "k3m9q2x7"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "pair_expires_ms": {
                          "description": "When the pairing code expires, in milliseconds since the Unix epoch.",
                          "examples": [
                            1767229200000
                          ],
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "connected",
                        "bot_username",
                        "allowed_users",
                        "pair_code",
                        "pair_expires_ms"
                      ],
                      "type": "object"
                    },
                    "webhook_secret": {
                      "description": "The new webhook secret, shown once; it signs `X-Slashinfra-Signature` on every webhook POST.",
                      "examples": [
                        "whsec_4Qm8nT2vX7kL9pR1sW6yB3cF5hJ0aD8eG2iK4mN6oP"
                      ],
                      "type": "string"
                    },
                    "webhook_url": {
                      "description": "The HTTPS URL that receives a signed POST per message.",
                      "examples": [
                        "https://example.com/slashinfra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "address",
                    "allowed_senders",
                    "webhook_url",
                    "telegram"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The inbox of one SVM, with a webhook secret when one was set or rotated."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_webhook`: The webhook is not valid.\n`invalid_sender`: A sender address is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_webhook`: The webhook is not valid.\n`invalid_sender`: A sender address is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`inbox_not_allowed`: Your plan does not include inboxes.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`inbox_not_allowed`: Your plan does not include inboxes."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Enable or disable the inbox of an SVM, and set its webhook and sender rule",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm inbox enable"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/svms/build-1/inbox\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"enabled\":true,\"allowed_senders\":[\"ada@example.com\"]}'"
          }
        ]
      }
    },
    "/svms/{ref}/inbox/telegram": {
      "delete": {
        "description": "Removes the webhook, the bot token and its injection rule; the SVM keeps its other inbox settings and its messages.",
        "operationId": "deleteSvmsByRefInboxTelegram",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The bot is disconnected, with no body.",
                  "type": "string"
                }
              }
            },
            "description": "The bot is disconnected, with no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Disconnect the Telegram bot of an SVM",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/svms/build-1/inbox/telegram\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "put": {
        "description": "Checks the bot token with `getMe`, stores it in the vault as an internal secret that [secrets](/docs/platform/secrets) does not list, and registers the webhook and the injection rule to `api.telegram.org`. The user then pairs with the returned code; the inbox must be enabled and the plan must allow inboxes.",
        "operationId": "putSvmsByRefInboxTelegram",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bot_token": {
                    "description": "The bot token from BotFather, checked with `getMe` and then stored in the vault; answers never include it.",
                    "examples": [
                      "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "bot_token"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "bot_token": {
                    "description": "The bot token from BotFather, checked with `getMe` and then stored in the vault; answers never include it.",
                    "examples": [
                      "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "bot_token"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "bot_token": {
                    "description": "The bot token from BotFather, checked with `getMe` and then stored in the vault; answers never include it.",
                    "examples": [
                      "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "bot_token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The connected bot and the pairing code that a user sends to it.",
                  "properties": {
                    "bot_username": {
                      "description": "The username of the bot.",
                      "examples": [
                        "build_1_bot"
                      ],
                      "type": "string"
                    },
                    "pair_code": {
                      "description": "The single-use pairing code: the user sends `/start <pair_code>` to the bot within ten minutes.",
                      "examples": [
                        "k3m9q2x7"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "bot_username",
                    "pair_code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The connected bot and the pairing code that a user sends to it."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_bot_token`: The bot token is not valid.\n`inbox_disabled`: The inbox of this SVM is off.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_bot_token`: The bot token is not valid.\n`inbox_disabled`: The inbox of this SVM is off."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`inbox_not_allowed`: Your plan does not include inboxes.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`inbox_not_allowed`: Your plan does not include inboxes."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change."
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`telegram_unavailable`: Telegram did not answer.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`telegram_unavailable`: Telegram did not answer."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Connect a Telegram bot to the inbox of an SVM",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/svms/build-1/inbox/telegram\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"bot_token\":\"123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11\"}'"
          }
        ]
      }
    },
    "/svms/{ref}/inbox/telegram/pair": {
      "post": {
        "description": "Replaces the live pairing code with a new single-use one, valid for ten minutes. A user sends `/start <pair_code>` to the bot, joins the allowed users and gets `paired` as the answer.",
        "operationId": "postSvmsByRefInboxTelegramPair",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "A new pairing code and its expiry.",
                  "properties": {
                    "expires_ms": {
                      "description": "When the code expires, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767229200000
                      ],
                      "type": "integer"
                    },
                    "pair_code": {
                      "description": "The new single-use code.",
                      "examples": [
                        "k3m9q2x7"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "pair_code",
                    "expires_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A new pairing code and its expiry."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`not_connected`: No bot is connected.\n`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`not_connected`: No bot is connected.\n`conflict`: The request conflicts with another change."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Make a new Telegram pairing code",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/inbox/telegram/pair\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/inbox/telegram/users": {
      "put": {
        "description": "Replaces the list of numeric Telegram user ids whose messages reach the inbox. An empty list accepts none; a paired user is added by `/start <pair_code>`.",
        "operationId": "putSvmsByRefInboxTelegramUsers",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allowed_users": {
                    "items": {
                      "description": "One numeric Telegram user id; the list replaces the stored one whole, and duplicates are dropped.",
                      "examples": [
                        "123456789"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "allowed_users"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "allowed_users": {
                    "items": {
                      "description": "One numeric Telegram user id; the list replaces the stored one whole, and duplicates are dropped.",
                      "examples": [
                        "123456789"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "allowed_users"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "allowed_users": {
                    "items": {
                      "description": "One numeric Telegram user id; the list replaces the stored one whole, and duplicates are dropped.",
                      "examples": [
                        "123456789"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "allowed_users"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The Telegram bot of an SVM; its token lives in the vault and is never part of an answer.",
                  "properties": {
                    "allowed_users": {
                      "description": "The numeric Telegram user ids whose messages reach the inbox; it is empty until the first pair.",
                      "examples": [
                        [
                          "123456789"
                        ]
                      ],
                      "items": {
                        "description": "One numeric Telegram user id.",
                        "examples": [
                          "123456789"
                        ],
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "bot_username": {
                      "description": "The username of the bot.",
                      "examples": [
                        "build_1_bot"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "connected": {
                      "description": "Whether a Telegram bot is connected.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "pair_code": {
                      "description": "The single-use pairing code, valid for ten minutes.",
                      "examples": [
                        "k3m9q2x7"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "pair_expires_ms": {
                      "description": "When the pairing code expires, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767229200000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "connected",
                    "bot_username",
                    "allowed_users",
                    "pair_code",
                    "pair_expires_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The Telegram bot of an SVM; its token lives in the vault and is never part of an answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_user`: A user id is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_user`: A user id is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`not_connected`: No bot is connected.\n`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`not_connected`: No bot is connected.\n`conflict`: The request conflicts with another change."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Set the Telegram users who may send to the inbox",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/svms/build-1/inbox/telegram/users\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"allowed_users\":[\"123456789\"]}'"
          }
        ]
      }
    },
    "/svms/{ref}/inbox/webhook/rotate": {
      "post": {
        "description": "Makes a new secret, returned once, and the old secret stops verifying `X-Slashinfra-Signature` on every later POST; a webhook must be set first.",
        "operationId": "postSvmsByRefInboxWebhookRotate",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The inbox of one SVM, with a webhook secret when one was set or rotated.",
                  "properties": {
                    "address": {
                      "description": "The address of the inbox: `<SVM id>@<SVM domain>`; a `+tag` after the id is accepted and stored with the message.",
                      "examples": [
                        "6f1c0f0e8a@slashinfra.dev"
                      ],
                      "type": "string"
                    },
                    "allowed_senders": {
                      "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                      "examples": [
                        [
                          "ada@example.com"
                        ]
                      ],
                      "items": {
                        "description": "One exact SMTP envelope sender address, lowercased on save.",
                        "examples": [
                          "ada@example.com"
                        ],
                        "type": "string"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "enabled": {
                      "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "telegram": {
                      "description": "The Telegram bot of an SVM; its token lives in the vault and is never part of an answer.",
                      "properties": {
                        "allowed_users": {
                          "description": "The numeric Telegram user ids whose messages reach the inbox; it is empty until the first pair.",
                          "examples": [
                            [
                              "123456789"
                            ]
                          ],
                          "items": {
                            "description": "One numeric Telegram user id.",
                            "examples": [
                              "123456789"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "bot_username": {
                          "description": "The username of the bot.",
                          "examples": [
                            "build_1_bot"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "connected": {
                          "description": "Whether a Telegram bot is connected.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "pair_code": {
                          "description": "The single-use pairing code, valid for ten minutes.",
                          "examples": [
                            "k3m9q2x7"
                          ],
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "pair_expires_ms": {
                          "description": "When the pairing code expires, in milliseconds since the Unix epoch.",
                          "examples": [
                            1767229200000
                          ],
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "connected",
                        "bot_username",
                        "allowed_users",
                        "pair_code",
                        "pair_expires_ms"
                      ],
                      "type": "object"
                    },
                    "webhook_secret": {
                      "description": "The new webhook secret, shown once; it signs `X-Slashinfra-Signature` on every webhook POST.",
                      "examples": [
                        "whsec_4Qm8nT2vX7kL9pR1sW6yB3cF5hJ0aD8eG2iK4mN6oP"
                      ],
                      "type": "string"
                    },
                    "webhook_url": {
                      "description": "The HTTPS URL that receives a signed POST per message.",
                      "examples": [
                        "https://example.com/slashinfra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "address",
                    "allowed_senders",
                    "webhook_url",
                    "telegram"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The inbox of one SVM, with a webhook secret when one was set or rotated."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`no_webhook`: This inbox has no webhook.\n`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`no_webhook`: This inbox has no webhook.\n`conflict`: The request conflicts with another change."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rotate the webhook secret of an SVM inbox",
        "tags": [
          "Inbox"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/inbox/webhook/rotate\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/pause": {
      "post": {
        "description": "Runs `pause` through the control API and answers once the node has run it; an id resolves in any project and a name in the `project` query. `pause` is a memory sleep: the processes stay and resume on the next request.",
        "operationId": "postSvmsByRefPause",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
            "in": "header",
            "name": "if-match",
            "required": false,
            "schema": {
              "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
              "examples": [
                "2"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The `pause` action ran and answered with the new state and generation of the SVM.",
                  "properties": {
                    "generation": {
                      "description": "The generation of the SVM after the action: a lifecycle action increments it, so a later change can name this value in `If-Match`.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The SVM id.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "description": "The state of the SVM after the action: `running` after `start`, `paused` after `pause`, and `stopped` after `stop` or after a `pause` of an SVM with no process, which sleeps on disk.",
                      "examples": [
                        "paused"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "generation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The `pause` action ran and answered with the new state and generation of the SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_if_match`: The If-Match header is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_if_match`: The If-Match header is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.\n`deleting`: This resource is being deleted.\n`generation_moved`: The SVM changed during the wait.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change.\n`deleting`: This resource is being deleted.\n`generation_moved`: The SVM changed during the wait."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_mismatch`: The SVM changed since you read it.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_mismatch`: The SVM changed since you read it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`too_many_requests`: Too many requests. Try again soon.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`too_many_requests`: Too many requests. Try again soon."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_unreachable`: This SVM is not answering.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_unreachable`: This SVM is not answering."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Run the pause action of an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm pause"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/6f1c0f0e8a/pause\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/ports": {
      "get": {
        "description": "Returns the open ports of an SVM with a fresh presigned link for each `authenticated` port; a port that is not listed is closed.",
        "operationId": "getSvmsByRefPorts",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The open ports of the SVM, by port; a port that is not listed is closed.",
                  "items": {
                    "description": "One open port of an SVM.",
                    "properties": {
                      "access": {
                        "description": "`authenticated` accepts members and holders of the link; `public` accepts anyone.",
                        "enum": [
                          "authenticated",
                          "public"
                        ],
                        "examples": [
                          "authenticated"
                        ],
                        "type": "string"
                      },
                      "port": {
                        "description": "The port of the SVM, from 1 to 65535.",
                        "examples": [
                          3000
                        ],
                        "type": "integer"
                      },
                      "url": {
                        "description": "A presigned link of the port.",
                        "examples": [
                          "https://3000-6f1c0f0e8a.slashinfra.dev/?si_access=..."
                        ],
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "port",
                      "access",
                      "url"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The open ports of the SVM, by port; a port that is not listed is closed."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List the open ports of an SVM",
        "tags": [
          "Ports"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si port ls"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1/ports\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/ports/{port}": {
      "delete": {
        "description": "Closes a port so only members of the organization reach it, and every presigned link of the port stops working, even after the port is opened again. Closing an already closed port changes nothing.",
        "operationId": "deleteSvmsByRefPortsByPort",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The port of the SVM, from 1 to 65535.",
            "in": "path",
            "name": "port",
            "required": true,
            "schema": {
              "description": "The port of the SVM, from 1 to 65535.",
              "examples": [
                "3000"
              ],
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The port is closed, and every link of the port stops working at once.",
                  "type": "string"
                }
              }
            },
            "description": "The port is closed, and every link of the port stops working at once."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_port`: The port is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_port`: The port is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Close a port of an SVM",
        "tags": [
          "Ports"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si port close 3000"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/svms/build-1/ports/3000\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "put": {
        "description": "Opens a port or changes its access; a port that is not open is closed and only members reach it. The first open, an access change, a close or a rotate each make a new generation, and every link minted before it stops working.",
        "operationId": "putSvmsByRefPortsByPort",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The port of the SVM, from 1 to 65535.",
            "in": "path",
            "name": "port",
            "required": true,
            "schema": {
              "description": "The port of the SVM, from 1 to 65535.",
              "examples": [
                "3000"
              ],
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "access": {
                    "description": "The access to open the port with: `authenticated` accepts members and holders of the link, `public` accepts anyone, and any other value answers 400 `invalid_access`.",
                    "examples": [
                      "authenticated"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "access"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "access": {
                    "description": "The access to open the port with: `authenticated` accepts members and holders of the link, `public` accepts anyone, and any other value answers 400 `invalid_access`.",
                    "examples": [
                      "authenticated"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "access"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "access": {
                    "description": "The access to open the port with: `authenticated` accepts members and holders of the link, `public` accepts anyone, and any other value answers 400 `invalid_access`.",
                    "examples": [
                      "authenticated"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "access"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One open port of an SVM.",
                  "properties": {
                    "access": {
                      "description": "`authenticated` accepts members and holders of the link; `public` accepts anyone.",
                      "enum": [
                        "authenticated",
                        "public"
                      ],
                      "examples": [
                        "authenticated"
                      ],
                      "type": "string"
                    },
                    "port": {
                      "description": "The port of the SVM, from 1 to 65535.",
                      "examples": [
                        3000
                      ],
                      "type": "integer"
                    },
                    "url": {
                      "description": "A presigned link of the port.",
                      "examples": [
                        "https://3000-6f1c0f0e8a.slashinfra.dev/?si_access=..."
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "port",
                    "access",
                    "url"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One open port of an SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_port`: The port is not valid.\n`invalid_access`: The port access is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_port`: The port is not valid.\n`invalid_access`: The port access is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`public_ports_not_allowed`: Your plan does not include public ports.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.\n`public_ports_not_allowed`: Your plan does not include public ports."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`port_limit`: You have reached the limit of ports.\n`not_supported_by_image`: The image of this SVM does not support this.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`port_limit`: You have reached the limit of ports.\n`not_supported_by_image`: The image of this SVM does not support this."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Open or change a port of an SVM",
        "tags": [
          "Ports"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si port open 3000 --auth"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/svms/build-1/ports/3000\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"access\":\"authenticated\"}'"
          }
        ]
      }
    },
    "/svms/{ref}/ports/{port}/rotate": {
      "post": {
        "description": "Makes a new generation of an open port, so every link minted before it answers 401 `unauthorized`; the port keeps its access and returns a fresh link when `authenticated`.",
        "operationId": "postSvmsByRefPortsByPortRotate",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The port of the SVM, from 1 to 65535.",
            "in": "path",
            "name": "port",
            "required": true,
            "schema": {
              "description": "The port of the SVM, from 1 to 65535.",
              "examples": [
                "3000"
              ],
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One open port of an SVM.",
                  "properties": {
                    "access": {
                      "description": "`authenticated` accepts members and holders of the link; `public` accepts anyone.",
                      "enum": [
                        "authenticated",
                        "public"
                      ],
                      "examples": [
                        "authenticated"
                      ],
                      "type": "string"
                    },
                    "port": {
                      "description": "The port of the SVM, from 1 to 65535.",
                      "examples": [
                        3000
                      ],
                      "type": "integer"
                    },
                    "url": {
                      "description": "A presigned link of the port.",
                      "examples": [
                        "https://3000-6f1c0f0e8a.slashinfra.dev/?si_access=..."
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "port",
                    "access",
                    "url"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One open port of an SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_port`: The port is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_port`: The port is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`port_closed`: This port is closed.\n`not_supported_by_image`: The image of this SVM does not support this.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`port_closed`: This port is closed.\n`not_supported_by_image`: The image of this SVM does not support this."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rotate the links of a port",
        "tags": [
          "Ports"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si port rotate 3000"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/ports/3000/rotate\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/ports/{port}/url": {
      "post": {
        "description": "Mints a stateless link for one SVM, one port and the current generation of an `authenticated` or `public` port, valid for `ttl_s`. Closing or rotating the port invalidates it.",
        "operationId": "postSvmsByRefPortsByPortUrl",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The port of the SVM, from 1 to 65535.",
            "in": "path",
            "name": "port",
            "required": true,
            "schema": {
              "description": "The port of the SVM, from 1 to 65535.",
              "examples": [
                "3000"
              ],
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ttl_s": {
                    "description": "The life of the link in seconds, 3600 by default; the longest is the `max_url_ttl_s` of the plan, 30 days on both plans.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "ttl_s": {
                    "description": "The life of the link in seconds, 3600 by default; the longest is the `max_url_ttl_s` of the plan, 30 days on both plans.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "ttl_s": {
                    "description": "The life of the link in seconds, 3600 by default; the longest is the `max_url_ttl_s` of the plan, 30 days on both plans.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "A presigned link of one port and its expiry.",
                  "properties": {
                    "expires_at": {
                      "description": "The expiry of the link in milliseconds since the Unix epoch.",
                      "examples": [
                        1767229200000
                      ],
                      "type": "integer"
                    },
                    "url": {
                      "description": "The presigned URL of the port: `https://<port>-<id>.<SVM domain>/?si_access=<token>`; the first `GET` answers a 303 without the token and sets the access cookie.",
                      "examples": [
                        "https://3000-6f1c0f0e8a.slashinfra.dev/?si_access=..."
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "expires_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A presigned link of one port and its expiry."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_port`: The port is not valid.\n`invalid_ttl`: The lifetime is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_port`: The port is not valid.\n`invalid_ttl`: The lifetime is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`port_closed`: This port is closed.\n`not_supported_by_image`: The image of this SVM does not support this.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`port_closed`: This port is closed.\n`not_supported_by_image`: The image of this SVM does not support this."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Make a presigned link of a port",
        "tags": [
          "Ports"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si port url 3000 --ttl 7d"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/ports/3000/url\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"ttl_s\":604800}'"
          }
        ]
      }
    },
    "/svms/{ref}/schedules": {
      "get": {
        "description": "Returns every schedule of an SVM by name, with its action, concurrency rule and next fire. A schedule fires from control, so it wakes a sleeping SVM at its time.",
        "operationId": "getSvmsByRefSchedules",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The schedules of the SVM, by name; an SVM with none gets `[]`.",
                  "items": {
                    "description": "One schedule of an SVM.",
                    "properties": {
                      "action": {
                        "anyOf": [
                          {
                            "description": "A command run in the SVM.",
                            "properties": {
                              "command": {
                                "description": "The shell command, run by the node with `bash -lc`.",
                                "examples": [
                                  "make backup"
                                ],
                                "type": "string"
                              },
                              "timeout_s": {
                                "description": "The time limit in seconds.",
                                "examples": [
                                  600
                                ],
                                "type": "integer"
                              },
                              "type": {
                                "description": "The action is a command.",
                                "enum": [
                                  "command"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "command"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "A message that the schedule puts into the inbox of the SVM.",
                            "properties": {
                              "subject": {
                                "description": "The subject of the message.",
                                "examples": [
                                  "Nightly backup"
                                ],
                                "type": "string"
                              },
                              "text": {
                                "description": "The text of the message.",
                                "examples": [
                                  "The backup finished."
                                ],
                                "type": "string"
                              },
                              "type": {
                                "description": "The action is an inbox message.",
                                "enum": [
                                  "inbox"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "subject",
                              "text"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "A disk-only snapshot of the SVM, named `<schedule>-YYYYMMDDTHHMMSSZ`; older backups beyond `keep` are deleted.",
                            "properties": {
                              "before": {
                                "description": "A command that runs before the capture; a non-zero exit fails the run and takes no snapshot.",
                                "examples": [
                                  "CHECKPOINT"
                                ],
                                "type": "string"
                              },
                              "keep": {
                                "description": "How many `backup` snapshots of this schedule to keep, from 1 to 100.",
                                "examples": [
                                  7
                                ],
                                "type": "integer"
                              },
                              "type": {
                                "description": "The action is a disk snapshot.",
                                "enum": [
                                  "snapshot"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "keep"
                            ],
                            "type": "object"
                          }
                        ],
                        "description": "The command, inbox message or snapshot of one fire."
                      },
                      "concurrency": {
                        "description": "`skip` refuses a fire while the previous run still runs; `allow` starts both.",
                        "enum": [
                          "skip",
                          "allow"
                        ],
                        "type": "string"
                      },
                      "created_ms": {
                        "description": "The creation time in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "cron": {
                        "description": "The normalized five-field cron.",
                        "examples": [
                          "0 3 * * *"
                        ],
                        "type": "string"
                      },
                      "enabled": {
                        "description": "Whether the minute tick fires it.",
                        "examples": [
                          true
                        ],
                        "type": "boolean"
                      },
                      "id": {
                        "description": "The schedule id.",
                        "examples": [
                          "01JCK3AAAAAAAAAAAAAAAAAAAA"
                        ],
                        "type": "string"
                      },
                      "name": {
                        "description": "The name of the schedule, unique per SVM.",
                        "examples": [
                          "nightly-backup"
                        ],
                        "type": "string"
                      },
                      "next_at": {
                        "description": "The next fire in milliseconds since the Unix epoch; it moves when the tick claims a run.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "project": {
                        "description": "The id of the project of the SVM, which the schedule inherits and never takes as a parameter.",
                        "examples": [
                          "proj_6f1c0f0e8a"
                        ],
                        "type": "string"
                      },
                      "timezone": {
                        "description": "The IANA timezone of the cron.",
                        "examples": [
                          "Europe/Berlin"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "project",
                      "name",
                      "cron",
                      "timezone",
                      "action",
                      "concurrency",
                      "enabled",
                      "next_at",
                      "created_ms"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The schedules of the SVM, by name; an SVM with none gets `[]`."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List the schedules of an SVM",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1/schedules\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "post": {
        "description": "Creates a schedule that runs a command, puts a message into the inbox or captures a `backup` snapshot on a five-field cron in an IANA timezone, and the minute tick wakes the SVM for it. A cron whose fires are closer than the plan minimum answers 400 `schedule_too_frequent`; see [schedules](/docs/platform/schedules) for `keep` retention.",
        "operationId": "postSvmsByRefSchedules",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "One action of a schedule: a command in the SVM, a message into its inbox, or a disk snapshot with retention.",
                    "properties": {
                      "before": {
                        "description": "A command that runs before a `snapshot` action, such as `CHECKPOINT` of a database; a non-zero exit records the run as failed and takes no snapshot.",
                        "examples": [
                          "CHECKPOINT"
                        ],
                        "type": "string"
                      },
                      "command": {
                        "description": "The shell command of a `command` action, run by the node with `bash -lc`.",
                        "examples": [
                          "make backup"
                        ],
                        "type": "string"
                      },
                      "keep": {
                        "description": "The number of `backup` snapshots that a `snapshot` action keeps, from 1 to 100.",
                        "examples": [
                          7
                        ],
                        "type": "integer"
                      },
                      "subject": {
                        "description": "The subject of an `inbox` action.",
                        "examples": [
                          "Nightly backup"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text of an `inbox` action.",
                        "examples": [
                          "The backup finished."
                        ],
                        "type": "string"
                      },
                      "timeout_s": {
                        "description": "The time limit of a `command` action, in seconds from 1 to 86400.",
                        "examples": [
                          600
                        ],
                        "type": "integer"
                      },
                      "type": {
                        "description": "The action: `command` runs a shell command in the SVM; `inbox` delivers a message to its inbox; `snapshot` captures its disk.",
                        "examples": [
                          "command"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "concurrency": {
                    "description": "`skip` (default) refuses a fire while the previous run still runs; `allow` starts both.",
                    "examples": [
                      "skip"
                    ],
                    "type": "string"
                  },
                  "cron": {
                    "description": "A five-field cron whose next two fires are at least the plan minimum apart.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "enabled": {
                    "description": "Whether the minute tick fires it; it is on by default.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "name": {
                    "description": "The name, unique per SVM: `^[a-z0-9-]{1,40}$`.",
                    "examples": [
                      "nightly-backup"
                    ],
                    "type": "string"
                  },
                  "timezone": {
                    "description": "An IANA timezone; `UTC` by default.",
                    "examples": [
                      "Europe/Berlin"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "cron",
                  "action"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "One action of a schedule: a command in the SVM, a message into its inbox, or a disk snapshot with retention.",
                    "properties": {
                      "before": {
                        "description": "A command that runs before a `snapshot` action, such as `CHECKPOINT` of a database; a non-zero exit records the run as failed and takes no snapshot.",
                        "examples": [
                          "CHECKPOINT"
                        ],
                        "type": "string"
                      },
                      "command": {
                        "description": "The shell command of a `command` action, run by the node with `bash -lc`.",
                        "examples": [
                          "make backup"
                        ],
                        "type": "string"
                      },
                      "keep": {
                        "description": "The number of `backup` snapshots that a `snapshot` action keeps, from 1 to 100.",
                        "examples": [
                          7
                        ],
                        "type": "integer"
                      },
                      "subject": {
                        "description": "The subject of an `inbox` action.",
                        "examples": [
                          "Nightly backup"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text of an `inbox` action.",
                        "examples": [
                          "The backup finished."
                        ],
                        "type": "string"
                      },
                      "timeout_s": {
                        "description": "The time limit of a `command` action, in seconds from 1 to 86400.",
                        "examples": [
                          600
                        ],
                        "type": "integer"
                      },
                      "type": {
                        "description": "The action: `command` runs a shell command in the SVM; `inbox` delivers a message to its inbox; `snapshot` captures its disk.",
                        "examples": [
                          "command"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "concurrency": {
                    "description": "`skip` (default) refuses a fire while the previous run still runs; `allow` starts both.",
                    "examples": [
                      "skip"
                    ],
                    "type": "string"
                  },
                  "cron": {
                    "description": "A five-field cron whose next two fires are at least the plan minimum apart.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "enabled": {
                    "description": "Whether the minute tick fires it; it is on by default.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "name": {
                    "description": "The name, unique per SVM: `^[a-z0-9-]{1,40}$`.",
                    "examples": [
                      "nightly-backup"
                    ],
                    "type": "string"
                  },
                  "timezone": {
                    "description": "An IANA timezone; `UTC` by default.",
                    "examples": [
                      "Europe/Berlin"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "cron",
                  "action"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "One action of a schedule: a command in the SVM, a message into its inbox, or a disk snapshot with retention.",
                    "properties": {
                      "before": {
                        "description": "A command that runs before a `snapshot` action, such as `CHECKPOINT` of a database; a non-zero exit records the run as failed and takes no snapshot.",
                        "examples": [
                          "CHECKPOINT"
                        ],
                        "type": "string"
                      },
                      "command": {
                        "description": "The shell command of a `command` action, run by the node with `bash -lc`.",
                        "examples": [
                          "make backup"
                        ],
                        "type": "string"
                      },
                      "keep": {
                        "description": "The number of `backup` snapshots that a `snapshot` action keeps, from 1 to 100.",
                        "examples": [
                          7
                        ],
                        "type": "integer"
                      },
                      "subject": {
                        "description": "The subject of an `inbox` action.",
                        "examples": [
                          "Nightly backup"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text of an `inbox` action.",
                        "examples": [
                          "The backup finished."
                        ],
                        "type": "string"
                      },
                      "timeout_s": {
                        "description": "The time limit of a `command` action, in seconds from 1 to 86400.",
                        "examples": [
                          600
                        ],
                        "type": "integer"
                      },
                      "type": {
                        "description": "The action: `command` runs a shell command in the SVM; `inbox` delivers a message to its inbox; `snapshot` captures its disk.",
                        "examples": [
                          "command"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "concurrency": {
                    "description": "`skip` (default) refuses a fire while the previous run still runs; `allow` starts both.",
                    "examples": [
                      "skip"
                    ],
                    "type": "string"
                  },
                  "cron": {
                    "description": "A five-field cron whose next two fires are at least the plan minimum apart.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "enabled": {
                    "description": "Whether the minute tick fires it; it is on by default.",
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "name": {
                    "description": "The name, unique per SVM: `^[a-z0-9-]{1,40}$`.",
                    "examples": [
                      "nightly-backup"
                    ],
                    "type": "string"
                  },
                  "timezone": {
                    "description": "An IANA timezone; `UTC` by default.",
                    "examples": [
                      "Europe/Berlin"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "cron",
                  "action"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One schedule of an SVM.",
                  "properties": {
                    "action": {
                      "anyOf": [
                        {
                          "description": "A command run in the SVM.",
                          "properties": {
                            "command": {
                              "description": "The shell command, run by the node with `bash -lc`.",
                              "examples": [
                                "make backup"
                              ],
                              "type": "string"
                            },
                            "timeout_s": {
                              "description": "The time limit in seconds.",
                              "examples": [
                                600
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a command.",
                              "enum": [
                                "command"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "command"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A message that the schedule puts into the inbox of the SVM.",
                          "properties": {
                            "subject": {
                              "description": "The subject of the message.",
                              "examples": [
                                "Nightly backup"
                              ],
                              "type": "string"
                            },
                            "text": {
                              "description": "The text of the message.",
                              "examples": [
                                "The backup finished."
                              ],
                              "type": "string"
                            },
                            "type": {
                              "description": "The action is an inbox message.",
                              "enum": [
                                "inbox"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "subject",
                            "text"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A disk-only snapshot of the SVM, named `<schedule>-YYYYMMDDTHHMMSSZ`; older backups beyond `keep` are deleted.",
                          "properties": {
                            "before": {
                              "description": "A command that runs before the capture; a non-zero exit fails the run and takes no snapshot.",
                              "examples": [
                                "CHECKPOINT"
                              ],
                              "type": "string"
                            },
                            "keep": {
                              "description": "How many `backup` snapshots of this schedule to keep, from 1 to 100.",
                              "examples": [
                                7
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a disk snapshot.",
                              "enum": [
                                "snapshot"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "keep"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The command, inbox message or snapshot of one fire."
                    },
                    "concurrency": {
                      "description": "`skip` refuses a fire while the previous run still runs; `allow` starts both.",
                      "enum": [
                        "skip",
                        "allow"
                      ],
                      "type": "string"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "cron": {
                      "description": "The normalized five-field cron.",
                      "examples": [
                        "0 3 * * *"
                      ],
                      "type": "string"
                    },
                    "enabled": {
                      "description": "Whether the minute tick fires it.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "id": {
                      "description": "The schedule id.",
                      "examples": [
                        "01JCK3AAAAAAAAAAAAAAAAAAAA"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the schedule, unique per SVM.",
                      "examples": [
                        "nightly-backup"
                      ],
                      "type": "string"
                    },
                    "next_at": {
                      "description": "The next fire in milliseconds since the Unix epoch; it moves when the tick claims a run.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "project": {
                      "description": "The id of the project of the SVM, which the schedule inherits and never takes as a parameter.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "timezone": {
                      "description": "The IANA timezone of the cron.",
                      "examples": [
                        "Europe/Berlin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "cron",
                    "timezone",
                    "action",
                    "concurrency",
                    "enabled",
                    "next_at",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One schedule of an SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_cron`: The cron is not valid.\n`invalid_timezone`: The time zone is not valid.\n`invalid_action`: The schedule action is not valid.\n`invalid_command`: The command is not valid.\n`invalid_timeout`: The timeout is not valid.\n`invalid_keep`: The number to keep is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`schedule_too_frequent`: The schedule runs too often.\n`inbox_disabled`: The inbox of this SVM is off.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_cron`: The cron is not valid.\n`invalid_timezone`: The time zone is not valid.\n`invalid_action`: The schedule action is not valid.\n`invalid_command`: The command is not valid.\n`invalid_timeout`: The timeout is not valid.\n`invalid_keep`: The number to keep is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`schedule_too_frequent`: The schedule runs too often.\n`inbox_disabled`: The inbox of this SVM is off."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.\n`schedule_limit`: You have reached the limit of schedules.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used.\n`schedule_limit`: You have reached the limit of schedules."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a schedule of an SVM",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/schedules\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"nightly\",\"cron\":\"0 3 * * *\",\"timezone\":\"Europe/Berlin\",\"action\":{\"type\":\"snapshot\",\"keep\":7}}'"
          }
        ]
      }
    },
    "/svms/{ref}/schedules/{id}": {
      "delete": {
        "description": "Deletes a schedule and its run history. A run that is already queued is acknowledged and fires nothing.",
        "operationId": "deleteSvmsByRefSchedulesById",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The schedule id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The schedule id.",
              "examples": [
                "01JCK3AAAAAAAAAAAAAAAAAAAA"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "content": {
              "text/plain": {
                "schema": {
                  "description": "The schedule and its runs are deleted, with no body.",
                  "type": "string"
                }
              }
            },
            "description": "The schedule and its runs are deleted, with no body."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a schedule",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X DELETE \"https://api.slashinfra.com/svms/build-1/schedules/01JCK3AAAAAAAAAAAAAAAAAAAA\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "get": {
        "description": "Returns one schedule of an SVM, with its next fire in `next_at`.",
        "operationId": "getSvmsByRefSchedulesById",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The schedule id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The schedule id.",
              "examples": [
                "01JCK3AAAAAAAAAAAAAAAAAAAA"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One schedule of an SVM.",
                  "properties": {
                    "action": {
                      "anyOf": [
                        {
                          "description": "A command run in the SVM.",
                          "properties": {
                            "command": {
                              "description": "The shell command, run by the node with `bash -lc`.",
                              "examples": [
                                "make backup"
                              ],
                              "type": "string"
                            },
                            "timeout_s": {
                              "description": "The time limit in seconds.",
                              "examples": [
                                600
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a command.",
                              "enum": [
                                "command"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "command"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A message that the schedule puts into the inbox of the SVM.",
                          "properties": {
                            "subject": {
                              "description": "The subject of the message.",
                              "examples": [
                                "Nightly backup"
                              ],
                              "type": "string"
                            },
                            "text": {
                              "description": "The text of the message.",
                              "examples": [
                                "The backup finished."
                              ],
                              "type": "string"
                            },
                            "type": {
                              "description": "The action is an inbox message.",
                              "enum": [
                                "inbox"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "subject",
                            "text"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A disk-only snapshot of the SVM, named `<schedule>-YYYYMMDDTHHMMSSZ`; older backups beyond `keep` are deleted.",
                          "properties": {
                            "before": {
                              "description": "A command that runs before the capture; a non-zero exit fails the run and takes no snapshot.",
                              "examples": [
                                "CHECKPOINT"
                              ],
                              "type": "string"
                            },
                            "keep": {
                              "description": "How many `backup` snapshots of this schedule to keep, from 1 to 100.",
                              "examples": [
                                7
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a disk snapshot.",
                              "enum": [
                                "snapshot"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "keep"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The command, inbox message or snapshot of one fire."
                    },
                    "concurrency": {
                      "description": "`skip` refuses a fire while the previous run still runs; `allow` starts both.",
                      "enum": [
                        "skip",
                        "allow"
                      ],
                      "type": "string"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "cron": {
                      "description": "The normalized five-field cron.",
                      "examples": [
                        "0 3 * * *"
                      ],
                      "type": "string"
                    },
                    "enabled": {
                      "description": "Whether the minute tick fires it.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "id": {
                      "description": "The schedule id.",
                      "examples": [
                        "01JCK3AAAAAAAAAAAAAAAAAAAA"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the schedule, unique per SVM.",
                      "examples": [
                        "nightly-backup"
                      ],
                      "type": "string"
                    },
                    "next_at": {
                      "description": "The next fire in milliseconds since the Unix epoch; it moves when the tick claims a run.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "project": {
                      "description": "The id of the project of the SVM, which the schedule inherits and never takes as a parameter.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "timezone": {
                      "description": "The IANA timezone of the cron.",
                      "examples": [
                        "Europe/Berlin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "cron",
                    "timezone",
                    "action",
                    "concurrency",
                    "enabled",
                    "next_at",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One schedule of an SVM."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Show a schedule",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1/schedules/01JCK3AAAAAAAAAAAAAAAAAAAA\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      },
      "patch": {
        "description": "Changes the given fields and recomputes the next fire from now; `action` replaces the whole action, and turning a schedule off keeps its row for a later patch to turn on again.",
        "operationId": "patchSvmsByRefSchedulesById",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The schedule id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The schedule id.",
              "examples": [
                "01JCK3AAAAAAAAAAAAAAAAAAAA"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "One action of a schedule: a command in the SVM, a message into its inbox, or a disk snapshot with retention.",
                    "properties": {
                      "before": {
                        "description": "A command that runs before a `snapshot` action, such as `CHECKPOINT` of a database; a non-zero exit records the run as failed and takes no snapshot.",
                        "examples": [
                          "CHECKPOINT"
                        ],
                        "type": "string"
                      },
                      "command": {
                        "description": "The shell command of a `command` action, run by the node with `bash -lc`.",
                        "examples": [
                          "make backup"
                        ],
                        "type": "string"
                      },
                      "keep": {
                        "description": "The number of `backup` snapshots that a `snapshot` action keeps, from 1 to 100.",
                        "examples": [
                          7
                        ],
                        "type": "integer"
                      },
                      "subject": {
                        "description": "The subject of an `inbox` action.",
                        "examples": [
                          "Nightly backup"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text of an `inbox` action.",
                        "examples": [
                          "The backup finished."
                        ],
                        "type": "string"
                      },
                      "timeout_s": {
                        "description": "The time limit of a `command` action, in seconds from 1 to 86400.",
                        "examples": [
                          600
                        ],
                        "type": "integer"
                      },
                      "type": {
                        "description": "The action: `command` runs a shell command in the SVM; `inbox` delivers a message to its inbox; `snapshot` captures its disk.",
                        "examples": [
                          "command"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "concurrency": {
                    "description": "`skip` or `allow`.",
                    "examples": [
                      "skip"
                    ],
                    "type": "string"
                  },
                  "cron": {
                    "description": "A five-field cron.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "enabled": {
                    "description": "Whether the minute tick fires it.",
                    "examples": [
                      false
                    ],
                    "type": "boolean"
                  },
                  "name": {
                    "description": "The new name, unique per SVM: `^[a-z0-9-]{1,40}$`.",
                    "examples": [
                      "nightly-backup"
                    ],
                    "type": "string"
                  },
                  "timezone": {
                    "description": "An IANA timezone.",
                    "examples": [
                      "Europe/Berlin"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "One action of a schedule: a command in the SVM, a message into its inbox, or a disk snapshot with retention.",
                    "properties": {
                      "before": {
                        "description": "A command that runs before a `snapshot` action, such as `CHECKPOINT` of a database; a non-zero exit records the run as failed and takes no snapshot.",
                        "examples": [
                          "CHECKPOINT"
                        ],
                        "type": "string"
                      },
                      "command": {
                        "description": "The shell command of a `command` action, run by the node with `bash -lc`.",
                        "examples": [
                          "make backup"
                        ],
                        "type": "string"
                      },
                      "keep": {
                        "description": "The number of `backup` snapshots that a `snapshot` action keeps, from 1 to 100.",
                        "examples": [
                          7
                        ],
                        "type": "integer"
                      },
                      "subject": {
                        "description": "The subject of an `inbox` action.",
                        "examples": [
                          "Nightly backup"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text of an `inbox` action.",
                        "examples": [
                          "The backup finished."
                        ],
                        "type": "string"
                      },
                      "timeout_s": {
                        "description": "The time limit of a `command` action, in seconds from 1 to 86400.",
                        "examples": [
                          600
                        ],
                        "type": "integer"
                      },
                      "type": {
                        "description": "The action: `command` runs a shell command in the SVM; `inbox` delivers a message to its inbox; `snapshot` captures its disk.",
                        "examples": [
                          "command"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "concurrency": {
                    "description": "`skip` or `allow`.",
                    "examples": [
                      "skip"
                    ],
                    "type": "string"
                  },
                  "cron": {
                    "description": "A five-field cron.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "enabled": {
                    "description": "Whether the minute tick fires it.",
                    "examples": [
                      false
                    ],
                    "type": "boolean"
                  },
                  "name": {
                    "description": "The new name, unique per SVM: `^[a-z0-9-]{1,40}$`.",
                    "examples": [
                      "nightly-backup"
                    ],
                    "type": "string"
                  },
                  "timezone": {
                    "description": "An IANA timezone.",
                    "examples": [
                      "Europe/Berlin"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "One action of a schedule: a command in the SVM, a message into its inbox, or a disk snapshot with retention.",
                    "properties": {
                      "before": {
                        "description": "A command that runs before a `snapshot` action, such as `CHECKPOINT` of a database; a non-zero exit records the run as failed and takes no snapshot.",
                        "examples": [
                          "CHECKPOINT"
                        ],
                        "type": "string"
                      },
                      "command": {
                        "description": "The shell command of a `command` action, run by the node with `bash -lc`.",
                        "examples": [
                          "make backup"
                        ],
                        "type": "string"
                      },
                      "keep": {
                        "description": "The number of `backup` snapshots that a `snapshot` action keeps, from 1 to 100.",
                        "examples": [
                          7
                        ],
                        "type": "integer"
                      },
                      "subject": {
                        "description": "The subject of an `inbox` action.",
                        "examples": [
                          "Nightly backup"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text of an `inbox` action.",
                        "examples": [
                          "The backup finished."
                        ],
                        "type": "string"
                      },
                      "timeout_s": {
                        "description": "The time limit of a `command` action, in seconds from 1 to 86400.",
                        "examples": [
                          600
                        ],
                        "type": "integer"
                      },
                      "type": {
                        "description": "The action: `command` runs a shell command in the SVM; `inbox` delivers a message to its inbox; `snapshot` captures its disk.",
                        "examples": [
                          "command"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  "concurrency": {
                    "description": "`skip` or `allow`.",
                    "examples": [
                      "skip"
                    ],
                    "type": "string"
                  },
                  "cron": {
                    "description": "A five-field cron.",
                    "examples": [
                      "0 3 * * *"
                    ],
                    "type": "string"
                  },
                  "enabled": {
                    "description": "Whether the minute tick fires it.",
                    "examples": [
                      false
                    ],
                    "type": "boolean"
                  },
                  "name": {
                    "description": "The new name, unique per SVM: `^[a-z0-9-]{1,40}$`.",
                    "examples": [
                      "nightly-backup"
                    ],
                    "type": "string"
                  },
                  "timezone": {
                    "description": "An IANA timezone.",
                    "examples": [
                      "Europe/Berlin"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One schedule of an SVM.",
                  "properties": {
                    "action": {
                      "anyOf": [
                        {
                          "description": "A command run in the SVM.",
                          "properties": {
                            "command": {
                              "description": "The shell command, run by the node with `bash -lc`.",
                              "examples": [
                                "make backup"
                              ],
                              "type": "string"
                            },
                            "timeout_s": {
                              "description": "The time limit in seconds.",
                              "examples": [
                                600
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a command.",
                              "enum": [
                                "command"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "command"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A message that the schedule puts into the inbox of the SVM.",
                          "properties": {
                            "subject": {
                              "description": "The subject of the message.",
                              "examples": [
                                "Nightly backup"
                              ],
                              "type": "string"
                            },
                            "text": {
                              "description": "The text of the message.",
                              "examples": [
                                "The backup finished."
                              ],
                              "type": "string"
                            },
                            "type": {
                              "description": "The action is an inbox message.",
                              "enum": [
                                "inbox"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "subject",
                            "text"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "A disk-only snapshot of the SVM, named `<schedule>-YYYYMMDDTHHMMSSZ`; older backups beyond `keep` are deleted.",
                          "properties": {
                            "before": {
                              "description": "A command that runs before the capture; a non-zero exit fails the run and takes no snapshot.",
                              "examples": [
                                "CHECKPOINT"
                              ],
                              "type": "string"
                            },
                            "keep": {
                              "description": "How many `backup` snapshots of this schedule to keep, from 1 to 100.",
                              "examples": [
                                7
                              ],
                              "type": "integer"
                            },
                            "type": {
                              "description": "The action is a disk snapshot.",
                              "enum": [
                                "snapshot"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "keep"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The command, inbox message or snapshot of one fire."
                    },
                    "concurrency": {
                      "description": "`skip` refuses a fire while the previous run still runs; `allow` starts both.",
                      "enum": [
                        "skip",
                        "allow"
                      ],
                      "type": "string"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "cron": {
                      "description": "The normalized five-field cron.",
                      "examples": [
                        "0 3 * * *"
                      ],
                      "type": "string"
                    },
                    "enabled": {
                      "description": "Whether the minute tick fires it.",
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "id": {
                      "description": "The schedule id.",
                      "examples": [
                        "01JCK3AAAAAAAAAAAAAAAAAAAA"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the schedule, unique per SVM.",
                      "examples": [
                        "nightly-backup"
                      ],
                      "type": "string"
                    },
                    "next_at": {
                      "description": "The next fire in milliseconds since the Unix epoch; it moves when the tick claims a run.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "project": {
                      "description": "The id of the project of the SVM, which the schedule inherits and never takes as a parameter.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "timezone": {
                      "description": "The IANA timezone of the cron.",
                      "examples": [
                        "Europe/Berlin"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "cron",
                    "timezone",
                    "action",
                    "concurrency",
                    "enabled",
                    "next_at",
                    "created_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One schedule of an SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_cron`: The cron is not valid.\n`invalid_timezone`: The time zone is not valid.\n`invalid_action`: The schedule action is not valid.\n`invalid_command`: The command is not valid.\n`invalid_timeout`: The timeout is not valid.\n`invalid_keep`: The number to keep is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`schedule_too_frequent`: The schedule runs too often.\n`inbox_disabled`: The inbox of this SVM is off.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_cron`: The cron is not valid.\n`invalid_timezone`: The time zone is not valid.\n`invalid_action`: The schedule action is not valid.\n`invalid_command`: The command is not valid.\n`invalid_timeout`: The timeout is not valid.\n`invalid_keep`: The number to keep is not valid.\n`invalid_concurrency`: The concurrency is not valid.\n`schedule_too_frequent`: The schedule runs too often.\n`inbox_disabled`: The inbox of this SVM is off."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`name_taken`: This name is already used.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`name_taken`: This name is already used."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Change a schedule",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PATCH \"https://api.slashinfra.com/svms/build-1/schedules/01JCK3AAAAAAAAAAAAAAAAAAAA\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"enabled\":false}'"
          }
        ]
      }
    },
    "/svms/{ref}/schedules/{id}/run": {
      "post": {
        "description": "Queues one fire now, even when the schedule is disabled, without moving the next fire; the run appears in `GET …/runs` once it is recorded.",
        "operationId": "postSvmsByRefSchedulesByIdRun",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The schedule id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The schedule id.",
              "examples": [
                "01JCK3AAAAAAAAAAAAAAAAAAAA"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The run is queued and the next tick does not change; `GET …/runs` shows its outcome.",
                  "properties": {
                    "due_ms": {
                      "description": "The due time of the run in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "run": {
                      "description": "The run id.",
                      "examples": [
                        "01JCK3AAAAAAAAAAAAAAAAAAAA:1767225600000"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "run",
                    "due_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The run is queued and the next tick does not change; `GET …/runs` shows its outcome."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Run a schedule now",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/schedules/01JCK3AAAAAAAAAAAAAAAAAAAA/run\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/schedules/{id}/runs": {
      "get": {
        "description": "Returns the last 50 fires of a schedule, newest first, with their status and guest job number.",
        "operationId": "getSvmsByRefSchedulesByIdRuns",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The schedule id.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The schedule id.",
              "examples": [
                "01JCK3AAAAAAAAAAAAAAAAAAAA"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The last 50 runs of the schedule, newest first; a schedule that never ran gets `[]`.",
                  "items": {
                    "description": "One fire of a schedule.",
                    "properties": {
                      "detail": {
                        "description": "A note of the outcome.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "due_ms": {
                        "description": "The time that the fire was due, in milliseconds since the Unix epoch.",
                        "examples": [
                          1767225600000
                        ],
                        "type": "integer"
                      },
                      "id": {
                        "description": "The run id: `<schedule id>:<due time in ms>`.",
                        "examples": [
                          "01JCK3AAAAAAAAAAAAAAAAAAAA:1767225600000"
                        ],
                        "type": "string"
                      },
                      "job": {
                        "description": "The number of the guest job of a command run.",
                        "examples": [
                          7
                        ],
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "started_ms": {
                        "description": "When the run started.",
                        "examples": [
                          1767225601000
                        ],
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "status": {
                        "description": "`started`, `skipped` by the concurrency rule, `missed` when it was over five minutes late, or `failed`.",
                        "enum": [
                          "started",
                          "skipped",
                          "missed",
                          "failed"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "due_ms",
                      "started_ms",
                      "status",
                      "job",
                      "detail"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The last 50 runs of the schedule, newest first; a schedule that never ran gets `[]`."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`schedule_not_found`: This schedule does not exist.\n`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List the runs of a schedule",
        "tags": [
          "Schedules"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1/schedules/01JCK3AAAAAAAAAAAAAAAAAAAA/runs\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/sleep": {
      "put": {
        "description": "Sets the sleep policy and sends it to the node at once: `auto` sleeps when the workload is idle, `timer` sleeps `after_s` seconds after the last external activity, and `on` never sleeps. A sleeping SVM takes the new policy at its next wake; see [sleep and wake](/docs/how/sleep-and-wake).",
        "operationId": "putSvmsByRefSleep",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
            "in": "header",
            "name": "if-match",
            "required": false,
            "schema": {
              "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
              "examples": [
                "2"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                "properties": {
                  "after_s": {
                    "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                    "examples": [
                      1800
                    ],
                    "type": "number"
                  },
                  "mode": {
                    "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                    "examples": [
                      "timer"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                "properties": {
                  "after_s": {
                    "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                    "examples": [
                      1800
                    ],
                    "type": "number"
                  },
                  "mode": {
                    "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                    "examples": [
                      "timer"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
                "properties": {
                  "after_s": {
                    "description": "The inactivity of a `timer` in seconds: an integer from 30 to 86400; only `timer` uses it.",
                    "examples": [
                      1800
                    ],
                    "type": "number"
                  },
                  "mode": {
                    "description": "`auto` sleeps when the workload is idle; `timer` sleeps `after_s` seconds after the last external activity; `on` never sleeps and uses its memory all the time.",
                    "examples": [
                      "timer"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              }
            }
          },
          "description": "The sleep policy: `{\"mode\":\"auto\"}`, `{\"mode\":\"timer\",\"after_s\":1800}` or `{\"mode\":\"on\"}`.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                      "properties": {
                        "mode": {
                          "const": "auto",
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "type": "object"
                    },
                    {
                      "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                      "properties": {
                        "after_s": {
                          "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                          "examples": [
                            1800
                          ],
                          "type": "integer"
                        },
                        "mode": {
                          "const": "timer",
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode",
                        "after_s"
                      ],
                      "type": "object"
                    },
                    {
                      "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                      "properties": {
                        "mode": {
                          "const": "on",
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "type": "object"
                    }
                  ],
                  "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                  "examples": [
                    {
                      "mode": "auto"
                    }
                  ]
                }
              }
            },
            "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_sleep`: The sleep policy is not valid.\n`invalid_if_match`: The If-Match header is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_sleep`: The sleep policy is not valid.\n`invalid_if_match`: The If-Match header is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_mismatch`: The SVM changed since you read it.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_mismatch`: The SVM changed since you read it."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Change the sleep policy of an SVM",
        "tags": [
          "Sleep"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X PUT \"https://api.slashinfra.com/svms/build-1/sleep\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"mode\":\"timer\",\"after_s\":1800}'"
          }
        ]
      }
    },
    "/svms/{ref}/snapshots": {
      "post": {
        "description": "Starts a disk-only capture of the writable disk of an SVM and answers at once with `state` `creating`, then `ready` or `failed`; the SVM keeps running. See [snapshots](/docs/platform/snapshots) for quota, expiry and fork use.",
        "operationId": "postSvmsByRefSnapshots",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The name of the snapshot, unique in the project of the SVM and using the SVM name rules `^[a-z][a-z0-9-]{0,31}$`; by default it is `<SVM name or id>-YYYYMMDD-HHMMSS`.",
                    "examples": [
                      "before-upgrade"
                    ],
                    "type": "string"
                  },
                  "ttl_s": {
                    "description": "The life of the snapshot in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes it at expiry unless an SVM reads it, and without it the snapshot lives until deleted.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The name of the snapshot, unique in the project of the SVM and using the SVM name rules `^[a-z][a-z0-9-]{0,31}$`; by default it is `<SVM name or id>-YYYYMMDD-HHMMSS`.",
                    "examples": [
                      "before-upgrade"
                    ],
                    "type": "string"
                  },
                  "ttl_s": {
                    "description": "The life of the snapshot in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes it at expiry unless an SVM reads it, and without it the snapshot lives until deleted.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            },
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "The name of the snapshot, unique in the project of the SVM and using the SVM name rules `^[a-z][a-z0-9-]{0,31}$`; by default it is `<SVM name or id>-YYYYMMDD-HHMMSS`.",
                    "examples": [
                      "before-upgrade"
                    ],
                    "type": "string"
                  },
                  "ttl_s": {
                    "description": "The life of the snapshot in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes it at expiry unless an SVM reads it, and without it the snapshot lives until deleted.",
                    "examples": [
                      604800
                    ],
                    "type": "number"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One disk-only snapshot.",
                  "properties": {
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1762747200000
                      ],
                      "type": "integer"
                    },
                    "error": {
                      "description": "The catalog code of a failed capture.",
                      "examples": [
                        "timeout"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_ms": {
                      "description": "When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.",
                      "examples": [
                        1765339200000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "The snapshot id: ten symbols of the same alphabet as an SVM id.",
                      "examples": [
                        "0zs0pshr3x"
                      ],
                      "type": "string"
                    },
                    "kind": {
                      "description": "Who made the snapshot: `user` for a request, `fork` for the capture of a `fork_of` create, or `backup` for a schedule run; only `user` snapshots count against the plan quota.",
                      "enum": [
                        "user",
                        "fork",
                        "backup"
                      ],
                      "examples": [
                        "user"
                      ],
                      "type": "string"
                    },
                    "logical_bytes": {
                      "description": "The used bytes of the disk inside the snapshot. `0` while it is creating.",
                      "examples": [
                        2147483648
                      ],
                      "type": "integer"
                    },
                    "name": {
                      "description": "The name of the snapshot, unique in its project.",
                      "examples": [
                        "build-1-20261110-031900"
                      ],
                      "type": "string"
                    },
                    "project": {
                      "description": "The id of the project of the snapshot.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "source": {
                      "description": "The SVM that was snapshotted.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "state": {
                      "description": "`creating` while the node captures the disk, then `ready` with its sizes, or `failed`.",
                      "enum": [
                        "creating",
                        "ready",
                        "failed"
                      ],
                      "examples": [
                        "ready"
                      ],
                      "type": "string"
                    },
                    "stored_bytes": {
                      "description": "The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts `0`, so this is not the current storage cost. `0` while it is creating.",
                      "examples": [
                        536870912
                      ],
                      "type": "integer"
                    },
                    "used_by": {
                      "description": "The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "state",
                    "kind",
                    "error",
                    "source",
                    "created_ms",
                    "expires_ms",
                    "logical_bytes",
                    "stored_bytes",
                    "used_by"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One disk-only snapshot."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_name`: The name is not valid.\n`invalid_ttl`: The lifetime is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_name`: The name is not valid.\n`invalid_ttl`: The lifetime is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`deleting`: This resource is being deleted.\n`snapshot_limit`: You have reached the limit of snapshots.\n`name_taken`: This name is already used.\n`snapshot_failed`: This snapshot failed.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`deleting`: This resource is being deleted.\n`snapshot_limit`: You have reached the limit of snapshots.\n`name_taken`: This name is already used.\n`snapshot_failed`: This snapshot failed."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`internal`: Something went wrong on our side.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`internal`: Something went wrong on our side."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Take a snapshot of an SVM",
        "tags": [
          "Snapshots"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si snapshot create --name before-upgrade"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/build-1/snapshots\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"name\":\"before-upgrade\",\"ttl_s\":604800}'"
          }
        ]
      }
    },
    "/svms/{ref}/start": {
      "post": {
        "description": "Runs `start` through the control API and answers once the node has run it; an id resolves in any project and a name in the `project` query. `start` wakes a stopped or paused SVM now, and a request to the SVM host also wakes it.",
        "operationId": "postSvmsByRefStart",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
            "in": "header",
            "name": "if-match",
            "required": false,
            "schema": {
              "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
              "examples": [
                "2"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The `start` action ran and answered with the new state and generation of the SVM.",
                  "properties": {
                    "generation": {
                      "description": "The generation of the SVM after the action: a lifecycle action increments it, so a later change can name this value in `If-Match`.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The SVM id.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "description": "The state of the SVM after the action: `running` after `start`, `paused` after `pause`, and `stopped` after `stop` or after a `pause` of an SVM with no process, which sleeps on disk.",
                      "examples": [
                        "running"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "generation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The `start` action ran and answered with the new state and generation of the SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_if_match`: The If-Match header is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_if_match`: The If-Match header is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.\n`deleting`: This resource is being deleted.\n`generation_moved`: The SVM changed during the wait.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change.\n`deleting`: This resource is being deleted.\n`generation_moved`: The SVM changed during the wait."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_mismatch`: The SVM changed since you read it.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_mismatch`: The SVM changed since you read it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`too_many_requests`: Too many requests. Try again soon.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`too_many_requests`: Too many requests. Try again soon."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_unreachable`: This SVM is not answering.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_unreachable`: This SVM is not answering."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Run the start action of an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm start"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/6f1c0f0e8a/start\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/stop": {
      "post": {
        "description": "Runs `stop` through the control API and answers once the node has run it; an id resolves in any project and a name in the `project` query. `stop` is a disk-only sleep: the processes end and the disk stays.",
        "operationId": "postSvmsByRefStop",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
            "in": "header",
            "name": "if-match",
            "required": false,
            "schema": {
              "description": "The generation that the change expects, the `generation` of the last answer for this SVM; a different stored generation answers 412 `generation_mismatch` and changes nothing, and without the header the change is unconditional.",
              "examples": [
                "2"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The `stop` action ran and answered with the new state and generation of the SVM.",
                  "properties": {
                    "generation": {
                      "description": "The generation of the SVM after the action: a lifecycle action increments it, so a later change can name this value in `If-Match`.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The SVM id.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "state": {
                      "description": "The state of the SVM after the action: `running` after `start`, `paused` after `pause`, and `stopped` after `stop` or after a `pause` of an SVM with no process, which sleeps on disk.",
                      "examples": [
                        "stopped"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "generation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The `stop` action ran and answered with the new state and generation of the SVM."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_if_match`: The If-Match header is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_if_match`: The If-Match header is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`conflict`: The request conflicts with another change.\n`deleting`: This resource is being deleted.\n`generation_moved`: The SVM changed during the wait.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`conflict`: The request conflicts with another change.\n`deleting`: This resource is being deleted.\n`generation_moved`: The SVM changed during the wait."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_mismatch`: The SVM changed since you read it.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_mismatch`: The SVM changed since you read it."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`too_many_requests`: Too many requests. Try again soon.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`too_many_requests`: Too many requests. Try again soon."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_unreachable`: This SVM is not answering.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_unreachable`: This SVM is not answering."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Run the stop action of an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si svm stop"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS -X POST \"https://api.slashinfra.com/svms/6f1c0f0e8a/stop\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/svms/{ref}/wait": {
      "get": {
        "description": "Holds the request until the node reports the `state` that is named, then answers 200 with the SVM; an offline or unknown report never matches. It answers 409 `generation_moved` when `generation` is no longer current, and 408 `wait_timeout` at the deadline without changing anything.",
        "operationId": "getSvmsByRefWait",
        "parameters": [
          {
            "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "description": "The SVM id, or its name in the organization of the key: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz` is an id, any other reference is a name.",
              "examples": [
                "build-1"
              ],
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": true,
            "schema": {
              "enum": [
                "running",
                "paused",
                "stopped"
              ],
              "type": "string"
            }
          },
          {
            "description": "The generation whose state the wait observes: the current generation of the SVM, or the wait answers 409 `generation_moved`.",
            "in": "query",
            "name": "generation",
            "required": true,
            "schema": {
              "description": "The generation whose state the wait observes: the current generation of the SVM, or the wait answers 409 `generation_moved`.",
              "examples": [
                1
              ],
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "How long to wait: a whole number of seconds from 1 to 60, 30 by default; at the deadline the wait answers 408 `wait_timeout`.",
            "in": "query",
            "name": "timeout_s",
            "required": false,
            "schema": {
              "description": "How long to wait: a whole number of seconds from 1 to 60, 30 by default; at the deadline the wait answers 408 `wait_timeout`.",
              "examples": [
                30
              ],
              "maximum": 60,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "One SVM of the organization.",
                  "properties": {
                    "concurrency": {
                      "description": "The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the `max_concurrency` of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.",
                      "examples": [
                        64
                      ],
                      "type": "number"
                    },
                    "cpu_ceiling_millis": {
                      "description": "The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.",
                      "examples": [
                        2000
                      ],
                      "type": "integer"
                    },
                    "cpu_millis": {
                      "description": "The base CPU of the SVM in millicores: `memory_mib * 1000 / 2048`. 2048 MiB is 1000 millicores.",
                      "examples": [
                        1000
                      ],
                      "type": "integer"
                    },
                    "created_ms": {
                      "description": "The creation time in milliseconds since the Unix epoch.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "disk_mib": {
                      "description": "The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.",
                      "examples": [
                        51200
                      ],
                      "type": "integer"
                    },
                    "egress": {
                      "description": "The domain filter of a workload; with filtering on, it permits only the listed destinations.",
                      "properties": {
                        "allowed_domains": {
                          "items": {
                            "description": "An exact hostname, or `*.domain` for its subdomains only.",
                            "examples": [
                              "api.example.com"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "filtering": {
                          "description": "Whether domain filtering is on.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "filtering",
                        "allowed_domains"
                      ],
                      "type": "object"
                    },
                    "env": {
                      "description": "The environment of a workload: at most 128 variables and 32 KiB together. `SVM_*`, `SI_*`, proxy variables and `HOME`, `USER` and `LOGNAME` are refused.",
                      "examples": [
                        {
                          "DEBUG": "1"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "The value of the variable, which may not hold a NUL byte.",
                          "examples": [
                            "1"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "expires_at": {
                      "description": "When the minute cron deletes the SVM, in milliseconds since the Unix epoch.",
                      "examples": [
                        1767484800000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "generation": {
                      "description": "The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as `If-Match` to make a change conditional.",
                      "examples": [
                        1
                      ],
                      "type": "integer"
                    },
                    "github": {
                      "description": "The GitHub connection whose rules cover every GitHub host of the workload, or `null`.",
                      "examples": [
                        "conn_6f1c0f0e8a"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "guest_vcpus": {
                      "description": "The virtual CPUs that the guest boots with: `ceil(cpu_ceiling_millis / 1000)` on the shared tier and `cpu_millis / 1000` on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.",
                      "examples": [
                        2
                      ],
                      "type": "integer"
                    },
                    "id": {
                      "description": "The SVM id: ten symbols of `0123456789abcdefghjkmnpqrstvwxyz`; a reference that does not match it is a name.",
                      "examples": [
                        "6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "image": {
                      "description": "The guest image of the SVM, fixed at creation: `default` or the standalone Postgres image.",
                      "enum": [
                        "default",
                        "postgres"
                      ],
                      "examples": [
                        "default"
                      ],
                      "type": "string"
                    },
                    "inbox": {
                      "description": "The inbox of a workload: whether it accepts mail and its sender rule.",
                      "properties": {
                        "allowed_senders": {
                          "description": "The sender rule: `null` accepts every sender, `[]` accepts none, and a list accepts exactly those SMTP envelope addresses, trimmed and lowercased, with no domain wildcards.",
                          "examples": [
                            [
                              "ada@example.com"
                            ]
                          ],
                          "items": {
                            "description": "One exact SMTP envelope sender address, lowercased on save.",
                            "examples": [
                              "ada@example.com"
                            ],
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "enabled": {
                          "description": "Whether the inbox accepts mail; an inbox that is off rejects mail at SMTP and wakes nothing.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled",
                        "allowed_senders"
                      ],
                      "type": "object"
                    },
                    "labels": {
                      "description": "String labels of the SVM, at most 32, for the `label.<key>=<value>` filter of the list; a settings change replaces the map whole, and `{}` removes every label.",
                      "examples": [
                        {
                          "app": "web",
                          "tier": "api"
                        }
                      ],
                      "patternProperties": {
                        "^.*$": {
                          "description": "A label value: any text of at most 128 UTF-8 bytes.",
                          "examples": [
                            "web"
                          ],
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "memory_mib": {
                      "description": "The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.",
                      "examples": [
                        2048
                      ],
                      "type": "integer"
                    },
                    "name": {
                      "description": "The name of the SVM.",
                      "examples": [
                        "build-1"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "project": {
                      "description": "The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "readiness": {
                      "description": "The readiness of a declared service port: a request that waits on a wake is released when the port is ready.",
                      "examples": [
                        {
                          "port": 5432,
                          "timeout_s": 30
                        }
                      ],
                      "properties": {
                        "path": {
                          "description": "An absolute HTTP path to request on the port, such as `/healthz`; the service is ready when the answer is a status below 500, and without it a port that accepts a connection is ready.",
                          "examples": [
                            "/healthz"
                          ],
                          "type": "string"
                        },
                        "port": {
                          "description": "The port of the declared service: a whole number from 1 to 65535, probed on the loopback of the SVM after a wake.",
                          "examples": [
                            5432
                          ],
                          "type": "number"
                        },
                        "timeout_s": {
                          "description": "The seconds after a wake that the service has to answer, a whole number from 1 to 120; past it the request answers 503 `not_ready`.",
                          "examples": [
                            30
                          ],
                          "type": "number"
                        }
                      },
                      "required": [
                        "port",
                        "timeout_s"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "region": {
                      "description": "The region of the SVM.",
                      "examples": [
                        "eu-gra"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secret_injections": {
                      "description": "The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.",
                      "items": {
                        "description": "One HTTPS injection rule holding a secret or connection reference, never the value.",
                        "properties": {
                          "domain": {
                            "description": "The exact HTTPS destination hostname.",
                            "examples": [
                              "api.openai.com"
                            ],
                            "type": "string"
                          },
                          "header": {
                            "description": "The lowercased request header to replace.",
                            "examples": [
                              "authorization"
                            ],
                            "type": "string"
                          },
                          "placeholder": {
                            "description": "The request-target token to replace; a rule has a header or a placeholder.",
                            "examples": [
                              "__TELEGRAM_BOT_TOKEN__"
                            ],
                            "type": "string"
                          },
                          "secret_id": {
                            "description": "The reference of the rule: an organization secret id (`sec_…`) or a connection (`connection:<id>`).",
                            "examples": [
                              "sec_6f1c0f0e8a",
                              "connection:conn_6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "value_format": {
                            "description": "`raw`, or `basic_x_access_token` for the Basic credential that git uses.",
                            "enum": [
                              "raw",
                              "basic_x_access_token"
                            ],
                            "examples": [
                              "raw"
                            ],
                            "type": "string"
                          },
                          "value_prefix": {
                            "description": "The text before a raw value; empty when there is none.",
                            "examples": [
                              "Bearer "
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "domain",
                          "secret_id",
                          "value_prefix",
                          "value_format"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sleep": {
                      "anyOf": [
                        {
                          "description": "Sleep when the workload is idle; background work keeps the SVM awake.",
                          "properties": {
                            "mode": {
                              "const": "auto",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "Ignore background work and sleep `after_s` seconds after the last external activity.",
                          "properties": {
                            "after_s": {
                              "description": "The seconds after the last external activity before the SVM sleeps, from 30 to 86400.",
                              "examples": [
                                1800
                              ],
                              "type": "integer"
                            },
                            "mode": {
                              "const": "timer",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode",
                            "after_s"
                          ],
                          "type": "object"
                        },
                        {
                          "description": "Never sleep: the SVM stays running and uses its memory all the time, and a node restart starts it again.",
                          "properties": {
                            "mode": {
                              "const": "on",
                              "type": "string"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "The sleep policy of an SVM: `auto` follows the workload; `timer` ignores background signals; `on` never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in `auto` and `timer` modes.",
                      "examples": [
                        {
                          "mode": "auto"
                        }
                      ]
                    },
                    "state": {
                      "description": "The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.",
                      "enum": [
                        "running",
                        "paused",
                        "stopped",
                        "unknown",
                        "deleting"
                      ],
                      "examples": [
                        "stopped"
                      ],
                      "type": "string"
                    },
                    "state_changed_ms": {
                      "description": "The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or `null` when the state is unknown or was never recorded; it can lag the node report that changed the state.",
                      "examples": [
                        1767225600000
                      ],
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "tier": {
                      "enum": [
                        "shared",
                        "dedicated"
                      ],
                      "type": "string"
                    },
                    "url": {
                      "description": "The terminal URL of the SVM: `https://<id>.<SVM domain>/bin/bash`; opening it starts the SVM and a login shell in `/home/user`.",
                      "examples": [
                        "https://6f1c0f0e8a.slashinfra.dev/bin/bash"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "project",
                    "name",
                    "state",
                    "state_changed_ms",
                    "generation",
                    "labels",
                    "image",
                    "url",
                    "region",
                    "tier",
                    "memory_mib",
                    "cpu_millis",
                    "cpu_ceiling_millis",
                    "guest_vcpus",
                    "disk_mib",
                    "created_ms",
                    "expires_at",
                    "env",
                    "inbox",
                    "egress",
                    "secret_injections",
                    "github",
                    "sleep",
                    "readiness",
                    "concurrency"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "One SVM of the organization."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`svm_not_found`: This SVM does not exist.\n`project_not_found`: This project does not exist."
          },
          "408": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`wait_timeout`: The state did not change in time.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`wait_timeout`: The state did not change in time."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`generation_moved`: The SVM changed during the wait.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`generation_moved`: The SVM changed during the wait."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Wait for the observed state of an SVM",
        "tags": [
          "SVMs"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/svms/build-1/wait?state=running&generation=2&timeout_s=30\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/usage": {
      "get": {
        "description": "Returns the node usage totals of one project, for all its SVMs together and for each SVM, between two times. The default range is the start of this UTC month to now; each running interval is billed in whole seconds rounded up.",
        "operationId": "getUsage",
        "parameters": [
          {
            "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "description": "The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.",
              "examples": [
                "default"
              ],
              "type": "string"
            }
          },
          {
            "description": "The first time of the sum in Unix epoch milliseconds, rounded down to the start of its hour; the default is the start of this UTC month.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "description": "The first time of the sum in Unix epoch milliseconds, rounded down to the start of its hour; the default is the start of this UTC month.",
              "examples": [
                "1767225600000"
              ],
              "type": "string"
            }
          },
          {
            "description": "The last time of the sum in Unix epoch milliseconds, rounded up to the end of its hour; the default is now, and it must not be before `from`.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "description": "The last time of the sum in Unix epoch milliseconds, rounded up to the end of its hour; the default is now, and it must not be before `from`.",
              "examples": [
                "1769904000000"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The usage of the organization and of each SVM between two times.",
                  "properties": {
                    "from_ms": {
                      "description": "The first time of the sum in Unix epoch milliseconds: the start of the hour of `from`.",
                      "examples": [
                        1767225600000
                      ],
                      "type": "integer"
                    },
                    "plan": {
                      "description": "The plan of the organization and its limits.",
                      "properties": {
                        "databases_allowed": {
                          "description": "Whether the organization may create databases.",
                          "examples": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "dedicated_allowed": {
                          "description": "Whether the organization may create dedicated SVMs.",
                          "examples": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "id": {
                          "description": "The plan id: `standard`, `pro`, or the id of a custom enterprise plan.",
                          "examples": [
                            "standard"
                          ],
                          "type": "string"
                        },
                        "inbox_allowed": {
                          "description": "Whether an SVM of the organization may receive email.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "max_memory_mib": {
                          "description": "The largest RAM of one SVM, in MiB; a create above it answers 403 `size_not_allowed`.",
                          "examples": [
                            8192
                          ],
                          "type": "integer"
                        },
                        "max_open_ports": {
                          "description": "The most ports of one SVM that may be open at once.",
                          "examples": [
                            50
                          ],
                          "type": "integer"
                        },
                        "max_snapshots": {
                          "description": "The most ready and creating snapshots that the organization may have at once.",
                          "examples": [
                            50
                          ],
                          "type": "integer"
                        },
                        "max_svms": {
                          "description": "The most SVMs that the organization may have at once.",
                          "examples": [
                            5
                          ],
                          "type": "integer"
                        },
                        "max_url_ttl_s": {
                          "description": "The longest life of a presigned URL, in seconds.",
                          "examples": [
                            2592000
                          ],
                          "type": "integer"
                        },
                        "public_ports_allowed": {
                          "description": "Whether a port of an SVM may be public.",
                          "examples": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "schedule_min_interval_s": {
                          "description": "The shortest gap between two fires of a schedule, in seconds.",
                          "examples": [
                            300
                          ],
                          "type": "integer"
                        },
                        "schedules_max": {
                          "description": "The most schedules that one SVM may have.",
                          "examples": [
                            10
                          ],
                          "type": "integer"
                        },
                        "stream_max_s": {
                          "description": "The longest SSE exec stream or watch of an SVM, in seconds.",
                          "examples": [
                            3600
                          ],
                          "type": "integer"
                        }
                      },
                      "required": [
                        "id",
                        "max_svms",
                        "max_snapshots",
                        "max_open_ports",
                        "max_url_ttl_s",
                        "inbox_allowed",
                        "public_ports_allowed",
                        "max_memory_mib",
                        "dedicated_allowed",
                        "databases_allowed",
                        "schedules_max",
                        "schedule_min_interval_s",
                        "stream_max_s"
                      ],
                      "type": "object"
                    },
                    "project": {
                      "description": "The id of the project whose SVMs the node usage covers.",
                      "examples": [
                        "proj_6f1c0f0e8a"
                      ],
                      "type": "string"
                    },
                    "svms": {
                      "description": "The usage of each SVM of the organization that has a node usage record in the range, by id.",
                      "items": {
                        "description": "The usage of one SVM.",
                        "properties": {
                          "id": {
                            "description": "The SVM id.",
                            "examples": [
                              "6f1c0f0e8a"
                            ],
                            "type": "string"
                          },
                          "totals": {
                            "description": "The totals of the seven node usage metrics of one SVM.",
                            "properties": {
                              "dedicated_cpu_milli_s": {
                                "description": "CPU time of the dedicated tier, in millicore-seconds: the base `cpu_millis` times the running seconds, so a 4096 MiB dedicated SVM adds 2000 per second, one core per 4 GiB; a shared SVM adds nothing.",
                                "examples": [
                                  3600000
                                ],
                                "type": "integer"
                              },
                              "dedicated_memory_mib_s": {
                                "description": "RAM of the dedicated tier, in MiB-seconds: the `mem_mib` of the SVM times the running seconds, the whole guest reservation; a shared SVM adds nothing.",
                                "examples": [
                                  7372800
                                ],
                                "type": "integer"
                              },
                              "disk_mib_ms": {
                                "description": "Allocated local disk of the SVM, in MiB-milliseconds: the host blocks its image holds, not the nominal disk size, counted for as long as the SVM exists, also while it sleeps.",
                                "examples": [
                                  9216000000
                                ],
                                "type": "integer"
                              },
                              "ingress_bytes": {
                                "description": "Bytes that the guest received from the network.",
                                "examples": [
                                  1048576
                                ],
                                "type": "integer"
                              },
                              "running_ms": {
                                "description": "Time that the SVM ran, in milliseconds; each running interval is billed in whole seconds rounded up, and a stopped or paused SVM adds nothing.",
                                "examples": [
                                  1800000
                                ],
                                "type": "integer"
                              },
                              "shared_cpu_milli_s": {
                                "description": "CPU time of the shared tier, in millicore-seconds: the base `cpu_millis` times the running seconds, so a 2048 MiB shared SVM adds 1000 per second; a dedicated SVM adds nothing.",
                                "examples": [
                                  450000
                                ],
                                "type": "integer"
                              },
                              "shared_memory_mib_s": {
                                "description": "RAM of the shared tier, in MiB-seconds: the `mem_mib` of the SVM times the running seconds, the whole guest reservation; a dedicated SVM adds nothing.",
                                "examples": [
                                  1843200
                                ],
                                "type": "integer"
                              }
                            },
                            "required": [
                              "running_ms",
                              "shared_cpu_milli_s",
                              "dedicated_cpu_milli_s",
                              "shared_memory_mib_s",
                              "dedicated_memory_mib_s",
                              "disk_mib_ms",
                              "ingress_bytes"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "id",
                          "totals"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "to_ms": {
                      "description": "The last time of the sum in Unix epoch milliseconds: the end of the hour of `to`.",
                      "examples": [
                        1769904000000
                      ],
                      "type": "integer"
                    },
                    "totals": {
                      "description": "The totals of the seven node usage metrics and of retained object storage.",
                      "properties": {
                        "dedicated_cpu_milli_s": {
                          "description": "CPU time of the dedicated tier, in millicore-seconds: the base `cpu_millis` times the running seconds, so a 4096 MiB dedicated SVM adds 2000 per second, one core per 4 GiB; a shared SVM adds nothing.",
                          "examples": [
                            3600000
                          ],
                          "type": "integer"
                        },
                        "dedicated_memory_mib_s": {
                          "description": "RAM of the dedicated tier, in MiB-seconds: the `mem_mib` of the SVM times the running seconds, the whole guest reservation; a shared SVM adds nothing.",
                          "examples": [
                            7372800
                          ],
                          "type": "integer"
                        },
                        "disk_mib_ms": {
                          "description": "Allocated local disk of the SVM, in MiB-milliseconds: the host blocks its image holds, not the nominal disk size, counted for as long as the SVM exists, also while it sleeps.",
                          "examples": [
                            9216000000
                          ],
                          "type": "integer"
                        },
                        "ingress_bytes": {
                          "description": "Bytes that the guest received from the network.",
                          "examples": [
                            1048576
                          ],
                          "type": "integer"
                        },
                        "running_ms": {
                          "description": "Time that the SVM ran, in milliseconds; each running interval is billed in whole seconds rounded up, and a stopped or paused SVM adds nothing.",
                          "examples": [
                            1800000
                          ],
                          "type": "integer"
                        },
                        "shared_cpu_milli_s": {
                          "description": "CPU time of the shared tier, in millicore-seconds: the base `cpu_millis` times the running seconds, so a 2048 MiB shared SVM adds 1000 per second; a dedicated SVM adds nothing.",
                          "examples": [
                            450000
                          ],
                          "type": "integer"
                        },
                        "shared_memory_mib_s": {
                          "description": "RAM of the shared tier, in MiB-seconds: the `mem_mib` of the SVM times the running seconds, the whole guest reservation; a dedicated SVM adds nothing.",
                          "examples": [
                            1843200
                          ],
                          "type": "integer"
                        },
                        "storage_byte_s": {
                          "description": "Retained object storage of the organization, in byte-seconds: the hourly total of the stored body bytes in the cold tier, ciphertext and trailer included, for the part of each hour that overlaps the range; a missing hour counts zero, a shared object counts once, and there is no per-SVM attribution (see [billing](/docs/how/billing)).",
                          "examples": [
                            3686400000000
                          ],
                          "type": "integer"
                        }
                      },
                      "required": [
                        "running_ms",
                        "shared_cpu_milli_s",
                        "dedicated_cpu_milli_s",
                        "shared_memory_mib_s",
                        "dedicated_memory_mib_s",
                        "disk_mib_ms",
                        "ingress_bytes",
                        "storage_byte_s"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "project",
                    "from_ms",
                    "to_ms",
                    "totals",
                    "plan",
                    "svms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The usage of the organization and of each SVM between two times."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`invalid_range`: The time range is not valid.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`invalid_range`: The time range is not valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`project_not_found`: This project does not exist.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`project_not_found`: This project does not exist."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Usage of a project",
        "tags": [
          "Usage"
        ],
        "x-codeSamples": [
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/usage?from=1767225600000&to=1769904000000\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    },
    "/whoami": {
      "get": {
        "description": "Returns the organization of the request key, the key name, the user email for a device key and the ISO 8601 `expires_at`. An organization key names no user.",
        "operationId": "getWhoami",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "The organization and its name, key name, user email and expiry of the request key.",
                  "properties": {
                    "email": {
                      "description": "The email address of the user of a device key.",
                      "examples": [
                        "jenny@example.com"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_at": {
                      "description": "When the key expires, as an ISO 8601 UTC timestamp.",
                      "examples": [
                        "2027-02-21T09:00:00.000Z"
                      ],
                      "type": "string"
                    },
                    "key_name": {
                      "description": "The name of the key.",
                      "examples": [
                        "cli laptop"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "org": {
                      "description": "The id of the organization of the key.",
                      "examples": [
                        "org_2fH7kLmN9pQrSt"
                      ],
                      "type": "string"
                    },
                    "org_name": {
                      "description": "The display name of the organization of the key.",
                      "examples": [
                        "Acme Inc."
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "org",
                    "org_name",
                    "key_name",
                    "email",
                    "expires_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The organization and its name, key name, user email and expiry of the request key."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`unauthorized`: Sign in or send a valid API key.\n`key_expired`: The API key has expired."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission.",
                  "properties": {
                    "check": {
                      "description": "The storage check that failed, when the error is a failed check.",
                      "type": "string"
                    },
                    "code": {
                      "description": "The stable code of the error, from the error catalog.",
                      "examples": [
                        "invalid_name"
                      ],
                      "type": "string"
                    },
                    "error": {
                      "description": "The message of the error, from the error catalog.",
                      "type": "string"
                    },
                    "field": {
                      "description": "The field of the request that the error names, when it names one.",
                      "type": "string"
                    },
                    "ref": {
                      "description": "The reference of an unexpected error, for a support request.",
                      "type": "string"
                    },
                    "used_by": {
                      "description": "The resources that use this one, when it is in use.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "error",
                    "code"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "`waitlist`: This account is not approved yet.\n`forbidden`: This request is not allowed.\n`forbidden_permission`: The key does not have this permission."
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "The org of the API key of this request",
        "tags": [
          "Keys"
        ],
        "x-codeSamples": [
          {
            "label": "CLI",
            "lang": "bash",
            "source": "si --json auth whoami"
          },
          {
            "label": "curl",
            "lang": "bash",
            "source": "curl -sS \"https://api.slashinfra.com/whoami\" \\\n  -H \"Authorization: Bearer $SI_API_KEY\""
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.slashinfra.com"
    }
  ],
  "tags": [
    {
      "description": "The projects of the organization: the namespace of its SVMs, snapshots, secrets, profiles and schedules",
      "name": "Projects"
    },
    {
      "description": "Create, list, get, change and delete SVMs, and run the lifecycle actions",
      "name": "SVMs"
    },
    {
      "description": "The sleep policy of an SVM",
      "name": "Sleep"
    },
    {
      "description": "Disk snapshots, and the SVMs that start from them",
      "name": "Snapshots"
    },
    {
      "description": "Cron schedules that run a command or put a message into an inbox",
      "name": "Schedules"
    },
    {
      "description": "The port rules of an SVM and the presigned links of authenticated ports",
      "name": "Ports"
    },
    {
      "description": "The email inbox of an SVM, its webhook and its Telegram bot",
      "name": "Inbox"
    },
    {
      "description": "Reusable workload profiles: environment, inbox, domain filter and secret injection settings",
      "name": "Profiles"
    },
    {
      "description": "Write-only secrets, the HTTPS secret injections that reference them, and the preset catalog",
      "name": "Secrets"
    },
    {
      "description": "Branchable Postgres databases: create, branch, rotate a password and schedule backups",
      "name": "Databases"
    },
    {
      "description": "OAuth connections that the vault mints, and the injection rules that use them",
      "name": "Connections"
    },
    {
      "description": "The audit log of the organization: who changed what, newest first, for 90 days",
      "name": "Audit"
    },
    {
      "description": "The SSH public keys that new SVMs of the organization get when they are created",
      "name": "SSH keys"
    },
    {
      "description": "The API key of the request",
      "name": "Keys"
    },
    {
      "description": "Metering and the plan of the organization",
      "name": "Usage"
    },
    {
      "description": "Scoped SVM API grants that share one SVM",
      "name": "Grants"
    }
  ]
}
