# Scalr API Documentation

This is the complete API documentation for connecting to the Scalr API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Scalr connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/scalr/actions/{actionSlug}/run
```

## Scalr actions

- POST `create-access-token` Create Access Token
- POST `create-environment` Create Environment
- POST `create-service-account` Create Service Account
- DELETE `delete-access-token` Delete Access Token
- DELETE `delete-environment` Delete Environment
- DELETE `delete-service-account` Delete Service Account
- GET `get-access-token` Get Access Token
- GET `get-account` Get Account
- GET `get-account-metrics` Get Account Metrics
- GET `get-environment` Get Environment
- GET `get-service-account` Get Service Account
- GET `list-access-tokens` List Access Tokens
- GET `list-account-users` List Account Users
- GET `list-accounts` List Accounts
- GET `list-environments` List Environments
- GET `list-service-accounts` List Service Accounts
- PUT `lock-environment` Lock Environment
- PUT `unlock-environment` Unlock Environment
- PUT `update-access-token` Update Access Token
- PUT `update-environment` Update Environment
