OptScale Cloud Accounts API

Cloud account connections (AWS, Azure, GCP, Alibaba, Kubernetes)

Operations 4

GET /organizations/{organization_id}/cloud_accounts List cloud accounts for an organization #
POST /organizations/{organization_id}/cloud_accounts Create a cloud account connection #
GET /cloud_accounts/{cloud_account_id} Get cloud account #
DELETE /cloud_accounts/{cloud_account_id} Disconnect a cloud account #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/optscale-cloud-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

optscale-cloud-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OptScale REST Authentication Cloud Accounts API
  description: OptScale is an open-source FinOps and cloud cost optimization platform by Hystax. The REST API exposes endpoints for managing organizations, cloud accounts, employees, pools, resources, expenses, recommendations, and optimization runs across AWS, Azure, GCP, Alibaba Cloud, and Kubernetes.
  version: '2.0'
  contact:
    name: Hystax OptScale
    url: https://hystax.com/optscale/
    email: info@hystax.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://{host}/restapi/v2
  description: OptScale REST API server
  variables:
    host:
      default: my.optscale.com
      description: OptScale hostname
security:
- bearerAuth: []
tags:
- name: Cloud Accounts
  description: Cloud account connections (AWS, Azure, GCP, Alibaba, Kubernetes)
paths:
  /organizations/{organization_id}/cloud_accounts:
    get:
      tags:
      - Cloud Accounts
      summary: List cloud accounts for an organization
      operationId: listCloudAccounts
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      responses:
        '200':
          description: Cloud accounts
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CloudAccount'
    post:
      tags:
      - Cloud Accounts
      summary: Create a cloud account connection
      operationId: createCloudAccount
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloudAccount'
      responses:
        '201':
          description: Cloud account connected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudAccount'
  /cloud_accounts/{cloud_account_id}:
    get:
      tags:
      - Cloud Accounts
      summary: Get cloud account
      operationId: getCloudAccount
      parameters:
      - $ref: '#/components/parameters/CloudAccountId'
      responses:
        '200':
          description: Cloud account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudAccount'
    delete:
      tags:
      - Cloud Accounts
      summary: Disconnect a cloud account
      operationId: deleteCloudAccount
      parameters:
      - $ref: '#/components/parameters/CloudAccountId'
      responses:
        '204':
          description: Cloud account disconnected
components:
  parameters:
    OrganizationId:
      name: organization_id
      in: path
      required: true
      schema:
        type: string
    CloudAccountId:
      name: cloud_account_id
      in: path
      required: true
      schema:
        type: string
  schemas:
    CloudAccount:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
          - aws_cnr
          - azure_cnr
          - gcp_cnr
          - alibaba_cnr
          - kubernetes_cnr
        config:
          type: object
          additionalProperties: true
        organization_id:
          type: string
        last_import_at:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
externalDocs:
  description: OptScale Documentation
  url: https://hystax.com/documentation/optscale/