The Swagger/OpenAPI documentation for the FluidStack API is available at https://api.fluidstack.io/.
To interact with our API, you will need an api_key and an api_token. Think of it as your username and password.
To get one, navigate to https://console.fluidstack.io and look in the “Instant Deployment API” section. Grab your API key and API token there.
Your API key cannot be changed, but you can regenerate a random API token anytime from your dashboard.
You can pass your api_key and api_token as url parameters using the following format:
curl -H "Content-Type: application/json" --request GET '<https://<api_key>:<api_token>@api.fluidstack.io/v1/servers>'
You can also pass them using basic access authentication with the following format:
curl -H "Content-Type: application/json" --request GET '<https://api.fluidstack.io/v1/servers>' -u '<your_api_key>:<your_api_token>'