{
  "openapi": "3.0.3",
  "info": {
    "title": "Kracht API",
    "version": "1",
    "description": "The renter and provider API of Kracht, GPU compute billed per second, in early access. Every route is under /v1/me and is called with an API key or a signed-in session. Generated from the control plane's own routes, so it lists what the code serves. Payments run in Stripe test mode: no real card is charged and no real money is paid out yet.",
    "termsOfService": "https://kracht.ai/terms",
    "contact": {
      "email": "hello@kracht.ai",
      "url": "https://kracht.ai/contact"
    }
  },
  "externalDocs": {
    "description": "Documentation",
    "url": "https://kracht.ai/documentation#api-reference"
  },
  "servers": [
    {
      "url": "https://cp.kracht.ai",
      "description": "The control plane (US East)"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/me": {
      "get": {
        "operationId": "get_v1_me",
        "summary": "Who the token says you are, plus your balance.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/account-profile": {
      "get": {
        "operationId": "get_v1_me_account_profile",
        "summary": "The account's country, use case, company and website, and what its first rental waits on.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "put": {
        "operationId": "put_v1_me_account_profile",
        "summary": "Save the account's country, use case, company and website.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "country": {
                    "type": "string",
                    "nullable": true
                  },
                  "use_case": {
                    "type": "string",
                    "nullable": true
                  },
                  "company": {
                    "type": "string",
                    "nullable": true
                  },
                  "website": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/account/delete": {
      "post": {
        "operationId": "post_v1_me_account_delete",
        "summary": "Delete your Kracht account: stop what is running, close the accounts only you are on, and erase your personal data.",
        "description": "Needs a signed-in session. No API key can call this route.",
        "x-kracht-scope": "session",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {
                    "type": "string"
                  }
                },
                "required": [
                  "confirm"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/account/deletion": {
      "get": {
        "operationId": "get_v1_me_account_deletion",
        "summary": "What deleting your Kracht account would close, leave and stop, and anything you must do first.",
        "description": "Needs a signed-in session. No API key can call this route.",
        "x-kracht-scope": "session",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/accounts": {
      "get": {
        "operationId": "get_v1_me_accounts",
        "summary": "Every account you belong to, and which one you are acting as.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/active-account": {
      "put": {
        "operationId": "put_v1_me_active_account",
        "summary": "Act as another account you belong to, from the next request on.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "account_id"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/audit": {
      "get": {
        "operationId": "get_v1_me_audit",
        "summary": "Who did what on this account, newest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "actor",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "target",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/audit.csv": {
      "get": {
        "operationId": "get_v1_me_audit_csv",
        "summary": "A month of who did what, oldest first, for whoever keeps the records.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "month",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/billing-details": {
      "get": {
        "operationId": "get_v1_me_billing_details",
        "summary": "The company, address and VAT number the monthly statement is made out to.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "put": {
        "operationId": "put_v1_me_billing_details",
        "summary": "Save the company, address and VAT number for the statement.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "legal_name": {
                    "type": "string",
                    "nullable": true
                  },
                  "billing_email": {
                    "type": "string",
                    "nullable": true
                  },
                  "tax_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "address_line1": {
                    "type": "string",
                    "nullable": true
                  },
                  "address_line2": {
                    "type": "string",
                    "nullable": true
                  },
                  "city": {
                    "type": "string",
                    "nullable": true
                  },
                  "state_region": {
                    "type": "string",
                    "nullable": true
                  },
                  "postal_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "country": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/card/setup": {
      "post": {
        "operationId": "post_v1_me_card_setup",
        "summary": "Get a link to the payment processor's form for saving a card.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/earnings": {
      "get": {
        "operationId": "get_v1_me_earnings",
        "summary": "What this provider has earned, and what is still owed to them.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/earnings/daily": {
      "get": {
        "operationId": "get_v1_me_earnings_daily",
        "summary": "Provider earnings by UTC day over the last `days` days, today included.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/export": {
      "get": {
        "operationId": "get_v1_me_export",
        "summary": "Everything Kracht holds about you, as one JSON file: profile, accounts, machines, rentals, ledger, audit and key names.",
        "description": "Needs a signed-in session. No API key can call this route.",
        "x-kracht-scope": "session",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/gpu-models": {
      "get": {
        "operationId": "get_v1_me_gpu_models",
        "summary": "The card catalog, so a client names a card by its code rather than typing a model name.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/hosts": {
      "get": {
        "operationId": "get_v1_me_hosts",
        "summary": "The machines this account lends to Kracht.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_hosts",
        "summary": "Register a machine against the calling account and issue its agent token.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "region_code": {
                    "type": "string",
                    "nullable": true
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/demand": {
      "get": {
        "operationId": "get_v1_me_hosts_by_host_id_demand",
        "summary": "\"Best hours to lend\": when renters rent this machine's card, by weekday and hour.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/install-command": {
      "post": {
        "operationId": "post_v1_me_hosts_by_host_id_install_command",
        "summary": "A new agent token and install command for one of your machines that has never reported.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/listing": {
      "put": {
        "operationId": "put_v1_me_hosts_by_host_id_listing",
        "summary": "Create or amend the standing offer for one of your own machines.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "floor_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "min_hours": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "active": {
                    "type": "boolean",
                    "nullable": true
                  },
                  "availability": {
                    "type": "object",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/market": {
      "get": {
        "operationId": "get_v1_me_hosts_by_host_id_market",
        "summary": "\"Is my price right?\": the market for this machine's card, and where its price sits.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/pause": {
      "put": {
        "operationId": "put_v1_me_hosts_by_host_id_pause",
        "summary": "Stop new rentals on one of your machines until `until`, or resume now with `null`.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "until": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  }
                },
                "required": [
                  "until"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/rentals": {
      "get": {
        "operationId": "get_v1_me_hosts_by_host_id_rentals",
        "summary": "When one of your machines was rented over the last `days` UTC days, today included.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/hosts/{host_id}/telemetry/daily": {
      "get": {
        "operationId": "get_v1_me_hosts_by_host_id_telemetry_daily",
        "summary": "Utilisation per card per day for one of your own machines, oldest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "host_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/idle-stop-default": {
      "get": {
        "operationId": "get_v1_me_idle_stop_default",
        "summary": "The account's default idle stop, in minutes; null is never.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "put": {
        "operationId": "put_v1_me_idle_stop_default",
        "summary": "Set the default idle stop, in minutes; null is never.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "minutes": {
                    "type": "integer",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/instance-groups": {
      "post": {
        "operationId": "post_v1_me_instance_groups",
        "summary": "Rent `count` machines at once, each an ordinary rental sharing one `group_id`.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string"
                  },
                  "command": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "entrypoint": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "connect_methods": {
                    "type": "array",
                    "items": {}
                  },
                  "gpu_count": {
                    "type": "integer"
                  },
                  "min_vram_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "gpu_vendor": {
                    "type": "string",
                    "nullable": true
                  },
                  "gpu_model_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "memory_mb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "disk_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "allow_networking": {
                    "type": "boolean"
                  },
                  "ssh_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "wg_user_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_snapshot_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_sealed_keys": {
                    "nullable": true
                  },
                  "sealed_secrets": {
                    "nullable": true
                  },
                  "regions": {
                    "type": "array",
                    "items": {}
                  },
                  "max_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "renter_region": {
                    "type": "string",
                    "nullable": true
                  },
                  "env": {
                    "type": "object"
                  },
                  "ports": {
                    "type": "array",
                    "items": {}
                  },
                  "use_hub": {
                    "type": "boolean"
                  },
                  "idle_stop_minutes": {
                    "type": "integer",
                    "nullable": true
                  },
                  "stop_at": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "auto_stop_snapshot": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "workload_type": {
                    "type": "string"
                  },
                  "count": {
                    "type": "integer"
                  },
                  "all_or_nothing": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "image",
                  "count"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/instance-groups/{group_id}": {
      "get": {
        "operationId": "get_v1_me_instance_groups_by_group_id",
        "summary": "The rentals launched together in this group, oldest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/instance-groups/{group_id}/stop": {
      "post": {
        "operationId": "post_v1_me_instance_groups_by_group_id_stop",
        "summary": "Stop every member still running.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/instances": {
      "get": {
        "operationId": "get_v1_me_instances",
        "summary": "Every rental on the account, newest first, in any state.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_instances",
        "summary": "Rent a host.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string"
                  },
                  "command": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "entrypoint": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "connect_methods": {
                    "type": "array",
                    "items": {}
                  },
                  "gpu_count": {
                    "type": "integer"
                  },
                  "min_vram_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "gpu_vendor": {
                    "type": "string",
                    "nullable": true
                  },
                  "gpu_model_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "memory_mb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "disk_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "allow_networking": {
                    "type": "boolean"
                  },
                  "ssh_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "wg_user_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_snapshot_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_sealed_keys": {
                    "nullable": true
                  },
                  "sealed_secrets": {
                    "nullable": true
                  },
                  "regions": {
                    "type": "array",
                    "items": {}
                  },
                  "max_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "renter_region": {
                    "type": "string",
                    "nullable": true
                  },
                  "env": {
                    "type": "object"
                  },
                  "ports": {
                    "type": "array",
                    "items": {}
                  },
                  "use_hub": {
                    "type": "boolean"
                  },
                  "idle_stop_minutes": {
                    "type": "integer",
                    "nullable": true
                  },
                  "stop_at": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "auto_stop_snapshot": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "workload_type": {
                    "type": "string"
                  }
                },
                "required": [
                  "image"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/instances/{instance_id}": {
      "get": {
        "operationId": "get_v1_me_instances_by_instance_id",
        "summary": "One rental, with the cards it ran on.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "patch": {
        "operationId": "patch_v1_me_instances_by_instance_id",
        "summary": "Change when a live rental stops itself, or what it is called and tagged.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idle_stop_minutes": {
                    "type": "integer",
                    "nullable": true
                  },
                  "stop_at": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "auto_stop_snapshot": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "note": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/instances/{instance_id}/connect": {
      "get": {
        "operationId": "get_v1_me_instances_by_instance_id_connect",
        "summary": "How to reach a rental you are paying for.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/instances/{instance_id}/launch-again": {
      "get": {
        "operationId": "get_v1_me_instances_by_instance_id_launch_again",
        "summary": "What Launch and `kracht launch --like` start from to repeat one of your rentals.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/instances/{instance_id}/logs": {
      "get": {
        "operationId": "get_v1_me_instances_by_instance_id_logs",
        "summary": "The last lines a rental printed, stdout and stderr together, newest at the end.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/instances/{instance_id}/stop": {
      "post": {
        "operationId": "post_v1_me_instances_by_instance_id_stop",
        "summary": "Stop a rental.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "snapshot",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/instances/{instance_id}/telemetry": {
      "get": {
        "operationId": "get_v1_me_instances_by_instance_id_telemetry",
        "summary": "The readings for one rental, oldest first, so a client can draw them.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/invitations": {
      "get": {
        "operationId": "get_v1_me_invitations",
        "summary": "Who has been asked to join and has not yet.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_invitations",
        "summary": "Invite an email address onto this account.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/invitations/accept": {
      "post": {
        "operationId": "post_v1_me_invitations_accept",
        "summary": "Join an account you were invited to.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/invitations/{invitation_id}": {
      "delete": {
        "operationId": "delete_v1_me_invitations_by_invitation_id",
        "summary": "Withdraw an invitation that has not been accepted.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "invitation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/jobs": {
      "get": {
        "operationId": "get_v1_me_jobs",
        "summary": "The account's batch jobs, newest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_jobs",
        "summary": "Submit a batch job, placed shard by shard like a rental.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string"
                  },
                  "task_count": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "command": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "entrypoint": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "connect_methods": {
                    "type": "array",
                    "items": {}
                  },
                  "max_parallel": {
                    "type": "integer",
                    "nullable": true
                  },
                  "max_retries": {
                    "type": "integer"
                  },
                  "gpu_count": {
                    "type": "integer"
                  },
                  "min_vram_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "gpu_vendor": {
                    "type": "string",
                    "nullable": true
                  },
                  "gpu_model_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "max_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "memory_mb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "disk_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "regions": {
                    "type": "array",
                    "items": {}
                  },
                  "allow_networking": {
                    "type": "boolean"
                  },
                  "snapshot_results": {
                    "type": "boolean"
                  },
                  "env": {
                    "type": "object"
                  }
                },
                "required": [
                  "image",
                  "task_count"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/jobs/{job_id}/cancel": {
      "post": {
        "operationId": "post_v1_me_jobs_by_job_id_cancel",
        "summary": "Cancel a job; shards already running are stopped.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/jobs/{job_id}/tasks": {
      "get": {
        "operationId": "get_v1_me_jobs_by_job_id_tasks",
        "summary": "The shards of one job and where each ran.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/launch-presets": {
      "get": {
        "operationId": "get_v1_me_launch_presets",
        "summary": "Saved launches, by name.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_launch_presets",
        "summary": "Save a launch under a name.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "request": {
                    "type": "object"
                  }
                },
                "required": [
                  "name",
                  "request"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/launch-presets/{preset_id}": {
      "delete": {
        "operationId": "delete_v1_me_launch_presets_by_preset_id",
        "summary": "Forget a saved launch.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "preset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/ledger": {
      "get": {
        "operationId": "get_v1_me_ledger",
        "summary": "The account's ledger, newest first: deposits, holds, charges, earnings and payouts, as USD strings.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/ledger.csv": {
      "get": {
        "operationId": "get_v1_me_ledger_csv",
        "summary": "A month of the ledger as CSV, for an accountant.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "month",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "detail",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/listings": {
      "get": {
        "operationId": "get_v1_me_listings",
        "summary": "Browse what is actually rentable right now.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "model",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "max_price_per_hour",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/members": {
      "get": {
        "operationId": "get_v1_me_members",
        "summary": "Who can act for this account.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_members",
        "summary": "Add someone to this account.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  }
                },
                "required": [
                  "user_id"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/members/{user_id}": {
      "patch": {
        "operationId": "patch_v1_me_members_by_user_id",
        "summary": "Change what someone may do.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string"
                  }
                },
                "required": [
                  "role"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_v1_me_members_by_user_id",
        "summary": "Remove someone, or leave yourself.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/members/{user_id}/monthly-limit": {
      "put": {
        "operationId": "put_v1_me_members_by_user_id_monthly_limit",
        "summary": "Set what one member may spend a month on rentals they start.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "spend_limit": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/payouts": {
      "get": {
        "operationId": "get_v1_me_payouts",
        "summary": "This provider's settlement history, newest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/payouts/setup": {
      "get": {
        "operationId": "get_v1_me_payouts_setup",
        "summary": "Whether this account can be paid, and what the payment processor still needs first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_payouts_setup",
        "summary": "Start or continue payout setup, and get a link to the payment processor's form.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/placements/preview": {
      "post": {
        "operationId": "post_v1_me_placements_preview",
        "summary": "The machines this launch would be placed on now, best first, each with its box key.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "image": {
                    "type": "string"
                  },
                  "command": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "entrypoint": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "connect_methods": {
                    "type": "array",
                    "items": {}
                  },
                  "gpu_count": {
                    "type": "integer"
                  },
                  "min_vram_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "gpu_vendor": {
                    "type": "string",
                    "nullable": true
                  },
                  "gpu_model_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "memory_mb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "disk_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "allow_networking": {
                    "type": "boolean"
                  },
                  "ssh_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "wg_user_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_snapshot_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_sealed_keys": {
                    "nullable": true
                  },
                  "sealed_secrets": {
                    "nullable": true
                  },
                  "regions": {
                    "type": "array",
                    "items": {}
                  },
                  "max_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "renter_region": {
                    "type": "string",
                    "nullable": true
                  },
                  "env": {
                    "type": "object"
                  },
                  "ports": {
                    "type": "array",
                    "items": {}
                  },
                  "use_hub": {
                    "type": "boolean"
                  },
                  "idle_stop_minutes": {
                    "type": "integer",
                    "nullable": true
                  },
                  "stop_at": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "auto_stop_snapshot": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  },
                  "workload_type": {
                    "type": "string"
                  }
                },
                "required": [
                  "image"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/price-alerts": {
      "get": {
        "operationId": "get_v1_me_price_alerts",
        "summary": "Price alerts, and whether the market meets each one now.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_price_alerts",
        "summary": "Watch for a card at or under a price.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gpu_model_code": {
                    "type": "string"
                  },
                  "region_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "max_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string."
                  }
                },
                "required": [
                  "gpu_model_code",
                  "max_price_per_hour"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/price-alerts/{alert_id}": {
      "delete": {
        "operationId": "delete_v1_me_price_alerts_by_alert_id",
        "summary": "Remove a price alert.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "alert_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/price-history": {
      "get": {
        "operationId": "get_v1_me_price_history",
        "summary": "Market-wide agreed prices on one card.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "gpu",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/price-history/by-hour": {
      "get": {
        "operationId": "get_v1_me_price_history_by_hour",
        "summary": "Market-wide agreed prices on one card by weekday and hour, in the caller's zone.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "gpu",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/scheduled-launches": {
      "get": {
        "operationId": "get_v1_me_scheduled_launches",
        "summary": "Waiting launches, soonest first, then the last week's started, failed and cancelled ones.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_scheduled_launches",
        "summary": "Start a launch at a set time, or as soon as the price allows before `wait_until`.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "start_at": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "wait_until": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "request": {
                    "type": "object"
                  }
                },
                "required": [
                  "request"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/scheduled-launches/{scheduled_id}": {
      "delete": {
        "operationId": "delete_v1_me_scheduled_launches_by_scheduled_id",
        "summary": "Withdraw a launch that has not started.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "scheduled_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/setup-reminders": {
      "get": {
        "operationId": "get_v1_me_setup_reminders",
        "summary": "Whether this account gets one email when a machine it added has not checked in.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "put": {
        "operationId": "put_v1_me_setup_reminders",
        "summary": "Switch the setup reminder off or on.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "enabled"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/snapshot-key": {
      "get": {
        "operationId": "get_v1_me_snapshot_key",
        "summary": "The public key this account's new snapshots are sealed to, or null for none.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "put": {
        "operationId": "put_v1_me_snapshot_key",
        "summary": "Seal this account's new snapshots to `public_key`; null stops sealing new ones.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "public_key": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/snapshots": {
      "get": {
        "operationId": "get_v1_me_snapshots",
        "summary": "Saved disks, newest first, with their state, size and the rental they came from.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/snapshots/uploads": {
      "post": {
        "operationId": "post_v1_me_snapshots_uploads",
        "summary": "Start putting files into /workspace: a pending upload and a presigned PUT for it.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "size_bytes": {
                    "type": "integer"
                  }
                },
                "required": [
                  "size_bytes"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/snapshots/{snapshot_id}": {
      "delete": {
        "operationId": "delete_v1_me_snapshots_by_snapshot_id",
        "summary": "Delete one of this account's snapshots, and stop the storage charge with it.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/snapshots/{snapshot_id}/complete": {
      "post": {
        "operationId": "post_v1_me_snapshots_by_snapshot_id_complete",
        "summary": "Finish an upload: storage is asked for the object's size, which must be the declared one.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/spend-limit": {
      "get": {
        "operationId": "get_v1_me_spend_limit",
        "summary": "This account's spending limit and its spend so far this UTC month.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/spend/by-member": {
      "get": {
        "operationId": "get_v1_me_spend_by_member",
        "summary": "Spend per person for owners and admins, this month unless a window is given.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/spend/by-rental": {
      "get": {
        "operationId": "get_v1_me_spend_by_rental",
        "summary": "Spend attributed per rental, computed over the whole ledger rather than a page of it.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/spend/by-tag": {
      "get": {
        "operationId": "get_v1_me_spend_by_tag",
        "summary": "Spend per tag, summed in the database over the whole ledger, never a page of it.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/spend/daily": {
      "get": {
        "operationId": "get_v1_me_spend_daily",
        "summary": "Charges by UTC day over the last `days` days, today included.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/ssh-keys": {
      "get": {
        "operationId": "get_v1_me_ssh_keys",
        "summary": "The account's saved public keys, oldest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_ssh_keys",
        "summary": "Save a public key.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "public_key": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "public_key"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/ssh-keys/{key_id}": {
      "delete": {
        "operationId": "delete_v1_me_ssh_keys_by_key_id",
        "summary": "Forget a saved key.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/statement": {
      "get": {
        "operationId": "get_v1_me_statement",
        "summary": "One month of the account, for the printable statement.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "month",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/stop-defaults": {
      "get": {
        "operationId": "get_v1_me_stop_defaults",
        "summary": "The account's defaults for a new rental's idle stop, spend cap and disk saving.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "put": {
        "operationId": "put_v1_me_stop_defaults",
        "summary": "Set the defaults a new rental starts with.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idle_stop_minutes": {
                    "type": "integer",
                    "nullable": true
                  },
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "auto_stop_snapshot": {
                    "type": "boolean"
                  },
                  "low_credit_warn_minutes": {
                    "type": "integer",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/storage": {
      "get": {
        "operationId": "get_v1_me_storage",
        "summary": "Storage held by this account, and the monthly charge it implies.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/tag-budgets": {
      "get": {
        "operationId": "get_v1_me_tag_budgets",
        "summary": "Every tag budget on the account, with what this month has spent against each.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/tag-budgets/{tag}": {
      "put": {
        "operationId": "put_v1_me_tag_budgets_by_tag",
        "summary": "Set or change the monthly budget on a tag.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monthly_limit": {
                    "type": "string",
                    "description": "A decimal amount, as a string."
                  }
                },
                "required": [
                  "monthly_limit"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_v1_me_tag_budgets_by_tag",
        "summary": "Remove the monthly budget on a tag.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/templates": {
      "get": {
        "operationId": "get_v1_me_templates",
        "summary": "The template catalog.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/templates/{template_id}/launch": {
      "post": {
        "operationId": "post_v1_me_templates_by_template_id_launch",
        "summary": "One-click rental from the catalog, charged to the caller.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ssh_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "wg_user_public_key": {
                    "type": "string",
                    "nullable": true
                  },
                  "restore_snapshot_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "gpu_count": {
                    "type": "integer",
                    "nullable": true
                  },
                  "min_vram_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "gpu_vendor": {
                    "type": "string",
                    "nullable": true
                  },
                  "gpu_model_code": {
                    "type": "string",
                    "nullable": true
                  },
                  "memory_mb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "disk_gb": {
                    "type": "integer",
                    "nullable": true
                  },
                  "max_price_per_hour": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "regions": {
                    "type": "array",
                    "items": {}
                  },
                  "workload_type": {
                    "type": "string",
                    "nullable": true
                  },
                  "renter_region": {
                    "type": "string",
                    "nullable": true
                  },
                  "env": {
                    "type": "object"
                  },
                  "use_hub": {
                    "type": "boolean"
                  },
                  "idle_stop_minutes": {
                    "type": "integer",
                    "nullable": true
                  },
                  "stop_at": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  },
                  "auto_stop_snapshot": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/topups": {
      "get": {
        "operationId": "get_v1_me_topups",
        "summary": "The smallest and largest amount of credit that can be bought at once, and whether payments are live.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_topups",
        "summary": "Buy credit: get a link to the payment processor's checkout for an amount in cents.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount_cents": {
                    "type": "integer"
                  }
                },
                "required": [
                  "amount_cents"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/usage": {
      "get": {
        "operationId": "get_v1_me_usage",
        "summary": "Metered spend for this account: the detail behind a bill.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {}
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/webhooks": {
      "get": {
        "operationId": "get_v1_me_webhooks",
        "summary": "The account's webhooks and how their last send went.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_webhooks",
        "summary": "Add a webhook.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "events": {
                    "type": "array",
                    "items": {}
                  }
                },
                "required": [
                  "url",
                  "events"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/webhooks/{webhook_id}": {
      "delete": {
        "operationId": "delete_v1_me_webhooks_by_webhook_id",
        "summary": "Forget a webhook and everything still queued for it.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/webhooks/{webhook_id}/deliveries": {
      "get": {
        "operationId": "get_v1_me_webhooks_by_webhook_id_deliveries",
        "summary": "The last 20 deliveries, newest first: what was sent, and what came back.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/webhooks/{webhook_id}/test": {
      "post": {
        "operationId": "post_v1_me_webhooks_by_webhook_id_test",
        "summary": "Queue a `ping`.",
        "description": "Needs a signed-in session. An API key holds read and launch only.",
        "x-kracht-scope": "admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/workflow-runs": {
      "get": {
        "operationId": "get_v1_me_workflow_runs",
        "summary": "The account's runs across every workflow, newest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/workflow-runs/{run_id}": {
      "get": {
        "operationId": "get_v1_me_workflow_runs_by_run_id",
        "summary": "One run: every step, every rental it made, and what each cost.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/workflow-runs/{run_id}/cancel": {
      "post": {
        "operationId": "post_v1_me_workflow_runs_by_run_id_cancel",
        "summary": "Stop a run.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/workflow-runs/{run_id}/resume": {
      "post": {
        "operationId": "post_v1_me_workflow_runs_by_run_id_resume",
        "summary": "Run again from where a failed or stopped run stopped, reusing the steps it finished.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/workflow-runs/{run_id}/steps/{step_key}/approve": {
      "post": {
        "operationId": "post_v1_me_workflow_runs_by_run_id_steps_by_step_key_approve",
        "summary": "Approve a step that waits for a person.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "step_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/workflows": {
      "get": {
        "operationId": "get_v1_me_workflows",
        "summary": "The account's workflows, most recently changed first, each with its newest run.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      }
    },
    "/v1/me/workflows/check": {
      "post": {
        "operationId": "post_v1_me_workflows_check",
        "summary": "Would this graph run? Every step is checked the way Launch checks a launch.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "graph": {
                    "type": "object"
                  }
                },
                "required": [
                  "graph"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/workflows/{workflow_id}/runs": {
      "get": {
        "operationId": "get_v1_me_workflows_by_workflow_id_runs",
        "summary": "A workflow's last 20 runs, newest first.",
        "description": "Needs an API key with the read scope or more.",
        "x-kracht-scope": "read",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        }
      },
      "post": {
        "operationId": "post_v1_me_workflows_by_workflow_id_runs",
        "summary": "Run a saved workflow now.",
        "description": "Needs an API key with the launch scope or more.",
        "x-kracht-scope": "launch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: the result is under `data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "No bearer token, or one that is not valid."
          },
          "404": {
            "description": "An id that is not yours answers 404, not 403."
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "spend_cap": {
                    "type": "string",
                    "description": "A decimal amount, as a string.",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key from https://kracht.ai/app/settings/keys, sent as `Authorization: Bearer <key>`."
      }
    }
  }
}
