{
  "opencollection": "1.0.0",
  "info": {
    "name": "Rainbrand Account API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-api-key",
      "value": "{{x-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.rainbrand.com/api/v1/account"
          },
          "docs": "Return basic profile information for the authenticated API key owner. Useful as a whoami probe to verify which account a key belongs to."
        },
        {
          "info": {
            "name": "Get credit balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.rainbrand.com/api/v1/credits",
            "params": [
              {
                "name": "workspaceId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Check the remaining credit balance for a workspace. Defaults to the caller's personal workspace; pass `workspaceId` to query a team workspace's balance."
        },
        {
          "info": {
            "name": "List workspaces",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.rainbrand.com/api/v1/workspaces"
          },
          "docs": "List the workspaces the caller can access. The personal workspace (is_personal: true) is listed first and is the default for create operations (omit workspace_id to use it). List endpoints span all workspaces unless a workspace_id is given."
        }
      ]
    }
  ],
  "bundled": true
}