ScaledThought Account API

The Account API from ScaledThought — 2 operation(s) for account.

GitHub OpenAPI

Operations 4

GET /v1/account Get account #
PATCH /v1/account Change account settings: the account's name and the ad-measurement opt-out #
DELETE /v1/account Close the account: revokes every key, erases personal data, files and adapters… #
PUT /v1/account/email Name your human as the account's owner: we email them one confirmation link #

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/scaledthought-com:scaledthought-com-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

scaledthought-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScaledThought control plane Account API
  version: 0.1.0
  description: Accounts, keys, budgets, usage, prepaid credits (human-approved top-ups), files, batches and models. Inference is OpenAI-compatible at the base_url returned by signup.
servers:
- url: https://api.us.scaledthought.com
  description: us region
tags:
- name: Account
paths:
  /v1/account:
    get:
      operationId: getAccount
      security:
      - apiKey: []
      responses:
        '200':
          description: 'Plan, spend, limits; owner_email_status (confirmed | pending | not_set); notices (low_balance: the x-st-notice codes, for your human; with no credit left at all, topup instead of low_balance) with notice_text; ad_measurement (true only for a us account with a stored ad click that hasn''t opted out) and ad_measurement_opt_out'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Account
      summary: Get account
      x-summary-source: derived
    patch:
      operationId: updateAccount
      summary: 'Change account settings: the account''s name and the ad-measurement opt-out'
      description: '{"name": "Acme research"} renames the account (shown on the dashboard and in its emails; blank or null goes back to the default, "Account "); it needs the keys or billing scope. {"ad_measurement": false} opts the account out of ad measurement: nothing about it is ever sent to an ad platform, unsent conversion events are skipped and its stored ad click is deleted within the hour. Only accounts that signed up through an opt-in ad-measurement link (US campaigns only; never the ca region) ever have anything sent. Any key can opt out; turning it back on needs the keys or billing scope. Audited.'
      security:
      - apiKey: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountInput'
      responses:
        '200':
          description: '{account_id, name, ad_measurement, ad_measurement_opt_out}: ad_measurement is true only when something about the account could be sent (a us account with a stored ad click that hasn''t opted out); ad_measurement_opt_out is the stored preference'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Account
    delete:
      operationId: deleteAccount
      summary: 'Close the account: revokes every key, erases personal data, files and adapters…'
      description: 'Needs a key with the billing or keys scope and {"confirm": ""}. Financial records (amounts, payment ids) are kept as tax law requires. Irreversible.'
      security:
      - apiKey: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteAccountInput'
      responses:
        '200':
          description: The account is closed
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Account
  /v1/account/email:
    put:
      operationId: setOwnerEmail
      summary: 'Name your human as the account''s owner: we email them one confirmation link'
      description: '{"email": ""}. Stores it as the pending owner (replacing an earlier pending one) and emails one confirmation link (7 days); once they click it they own the account (GET /v1/account owner_email_status: confirmed). Account email, and product emails they can unsubscribe from. 409 owner_exists once someone has signed in or paid; 429 too_many_dashboard_emails (per account, address, client address and region); 503 email_unavailable where the region has no customer email. billing or keys scope.'
      security:
      - apiKey: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetOwnerEmailInput'
      responses:
        '200':
          description: '{account_id, owner_email_status: pending, email_confirmation: sent, message_for_human}'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired (code key_expired) API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '421':
          description: Key belongs to another region
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Account
components:
  schemas:
    SetOwnerEmailInput:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        email:
          type: string
          maxLength: 320
      required:
      - email
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type:
              - string
              - 'null'
          required:
          - message
          - type
          - code
      required:
      - error
    UpdateAccountInput:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        name:
          description: 'The account''s name, shown on the dashboard and in its emails. Blank or null: the default (Account <last 6 characters of the id>). Needs the keys or billing scope.'
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
        ad_measurement:
          description: 'false: never send this account''s ad click or conversions to an ad platform (opt-out). Only accounts that signed up through an opt-in ad-measurement link (US campaigns only) ever have anything sent.'
          type: boolean
      additionalProperties: false
    DeleteAccountInput:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        confirm:
          type: string
          minLength: 1
          maxLength: 64
      required:
      - confirm
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: st_{region}_{env}_… key
    anthropicApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: st_{region}_{env}_… key