API

Let’s go!!!

We release version 0 of our API. Very simple but powerful.

Common

We use token-based authn & authz. This must be sent in the form of a Bearer Authorization header:

Authorization: Bearer <token>

You can find your token on the console (log in first, look under your profile picture).

The API base is: /api. Current beta status API url: https://console.beta.k8spin.cloud/api

Error responses

The following responses are returned in all endpoints in the following cases:

  • If you do not send token in the header Authorization

    Code: 401 UNAUTHORIZED

    Content: { "error" : "No token provided. See our docs at docs.k8spin.cloud" }

  • If the token is invalid:

    Code: 401 UNAUTHORIZED

    Content: { "error" : "Invalid token" }