Roar AI Account API

Profile, onboarding and account-wide reporting

GitHub OpenAPI

Operations 14

GET /client/whoami Who this key belongs to #
POST /client/github/member-connect Allow or stop members connecting their own GitHub #
GET /client/github/repo-allow-list Which repositories this workspace may deploy from #
PUT /client/github/repo-allow-list Limit which repositories this workspace may deploy from #
GET /client/organizations Organisations you belong to #
POST /client/organizations/default Set the organisation this connection acts in #
GET /client/models Models available to you, with prices #
GET /client/credits Credit balance #
GET /client/credits/statement Credit statement #
GET /client/credits/summary Credit statement as a ledger #
GET /client/profile Read the account profile #
PATCH /client/profile Update the account profile #
GET /client/overview Account overview #
POST /client/log-requests Turn prompt and response logging on or off, and choose how long it is kept #

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/roar-ai-com:roar-ai-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

roar-ai-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Roar AI Account API
  version: 1.0.0
  description: 'One key, two surfaces. The **gateway** (`/v1/*`) is OpenAI-compatible — point any OpenAI SDK at it. The **management API** (`/client/*`) lets an agent provision keys, read spend, and deploy apps. Both authenticate with a `roar_live_…` key sent as `Authorization: Bearer `. A key carries scopes (inference, keys:read, keys:write, usage:read, requests:read, apps:read, apps:deploy, data:read, projects:write, webhooks:read, webhooks:write, mcp:read, mcp:write); each `/client` route requires a specific one. There is also a hosted MCP server at `POST /mcp` exposing the same operations as tools.'
servers:
- url: https://api.roar-ai.com
security:
- BearerAuth: []
tags:
- name: Account
  description: Profile, onboarding and account-wide reporting
paths:
  /client/whoami:
    get:
      tags:
      - Account
      summary: Who this key belongs to
      description: The account and project this credential acts for, and the scopes it carries. The cheapest way to check a key works.
      responses:
        '200':
          description: The caller
      operationId: getClientWhoami
      x-operation-id-source: derived
  /client/github/member-connect:
    post:
      tags:
      - Account
      summary: Allow or stop members connecting their own GitHub
      description: Owner-only. When allowed (the default), any member who can deploy may connect a GitHub account of their own, and it ADDS to what the company can reach rather than replacing anything. Turning it off leaves existing connections in place — disconnect one explicitly to remove it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - allowed
              properties:
                allowed:
                  type: boolean
      responses:
        '200':
          description: The policy now in force
        '403':
          description: Only an owner can change this
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postClientGithubMemberConnect
      x-operation-id-source: derived
  /client/github/repo-allow-list:
    get:
      tags:
      - Account
      summary: Which repositories this workspace may deploy from
      description: 'Owner-only. `restricted: false` (the default) means every repository the workspace’s GitHub connections grant; `true` means only what `mode` names — `repos` (`allowed`) or `orgs` (`allowedOrgs`, GitHub accounts, matched against the owner half of `owner/name`). Both lists are kept while the other mode is active. `candidateOrgs` is the accounts this workspace is connected to. `candidates` is what the caller can choose from — the repositories the connections grant that THIS PERSON can also see on GitHub — and is never narrowed by the list itself, so a removed repository can be added back.'
      responses:
        '200':
          description: The setting, what is allowed, and what can be added
        '403':
          description: Only an owner can see this
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getClientGithubRepoAllowList
      x-operation-id-source: derived
    put:
      tags:
      - Account
      summary: Limit which repositories this workspace may deploy from
      description: 'Owner-only, and a replace: send the whole list. Exists because GitHub holds one repository selection per installation and several workspaces can share one, so narrowing it there narrows it for all of them. Holding the list here leaves GitHub’s selection alone. While `restricted`, a repository outside the list cannot be chosen, browsed or deployed — by a person, an API key or an operator — and a repository that is not on it is refused with a 404. `repos`/`orgs` omitted keeps the stored list. Refused (409) when an app here deploys from a repository or organisation the list omits, because that app would stop deploying; and (400) for a repository the caller cannot see on GitHub, or an organisation this workspace is not connected to.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - restricted
              properties:
                restricted:
                  type: boolean
                mode:
                  type: string
                  enum:
                  - repos
                  - orgs
                  description: What the limit counts. Omitted keeps the stored mode.
                repos:
                  type: array
                  items:
                    type: string
                    description: '"owner/name"'
                  maxItems: 500
                orgs:
                  type: array
                  items:
                    type: string
                    description: A GitHub account login
                  maxItems: 100
      responses:
        '200':
          description: The setting now in force
        '400':
          description: A name that is not owner/name, or one the caller cannot see
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Only an owner can change this
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: An app here deploys from a repository the list omits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: putClientGithubRepoAllowList
      x-operation-id-source: derived
  /client/organizations:
    get:
      tags:
      - Account
      summary: Organisations you belong to
      description: 'The organisations this person is a member of. `current` is where calls act right now and is always set; `defaultOrganizationId` is what has actually been STORED and is null when nothing has been chosen — the two differ whenever the caller has not picked yet. An API key is issued inside one organisation and always acts there, so it returns an empty list with `fixed: true`.'
      responses:
        '200':
          description: Memberships, and the organisation in use
      operationId: getClientOrganizations
      x-operation-id-source: derived
  /client/organizations/default:
    post:
      tags:
      - Account
      summary: Set the organisation this connection acts in
      description: Point an MCP connection at one of your own organisations, for good. Refuses an organisation you do not belong to (404) and one that is not active (400). An API key cannot be repointed — mint a key in the organisation you want instead.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              properties:
                organizationId:
                  type: string
                  format: uuid
      responses:
        '200':
          description: The organisation now in use
        '400':
          description: Not an active organisation, or the caller is an API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postClientOrganizationsDefault
      x-operation-id-source: derived
  /client/models:
    get:
      tags:
      - Account
      summary: Models available to you, with prices
      description: The catalogue as YOUR account sees it — the models you may call and what each costs. `GET /v1/models` is the OpenAI-compatible version and carries no prices.
      responses:
        '200':
          description: Models with pricing
      operationId: getClientModels
      x-operation-id-source: derived
  /client/credits:
    get:
      tags:
      - Account
      summary: Credit balance
      description: 'What is left to spend. Requests are refused once it reaches zero, so this is the number to watch. The recent movements are included for an owner or admin; a member gets the balance with an empty `entries`. **A person signed in to the console only**: an API key gets 403 — a key reads the balance from `GET /client/budget` (`balanceUsd`).'
      responses:
        '200':
          description: Balance and recent movements
      operationId: getClientCredits
      x-operation-id-source: derived
  /client/credits/statement:
    get:
      tags:
      - Account
      summary: Credit statement
      description: 'Every movement of your balance, newest first, with the balance after each one. Owners and admins only, **signed in to the console**: an API key gets 403.


        Narrow it with `lens`: `payments` (card top-ups, refunds and manual adjustments), `usage` (AI gateway spend) or `hosting` (app hosting). Omit it for all three interleaved.


        **Use `lens=payments` to find a card payment.** Gateway usage is written about once a minute while traffic flows, so an unfiltered statement on a busy account reaches back roughly an hour. `limit` defaults to 100 and caps at 500. `from` and `to` (ISO timestamps, `to` exclusive) bound it to a date range.


        A day of metered app-hosting charges arrives as ONE line carrying `coversUtcDay` and `coversEntries`; the per-day hosting base fee keeps its own line with a note saying what it bought.'
      responses:
        '200':
          description: Statement lines, newest first
        '403':
          description: Owners and admins only
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getClientCreditsStatement
      x-operation-id-source: derived
  /client/credits/summary:
    get:
      tags:
      - Account
      summary: Credit statement as a ledger
      description: 'Owners and admins, **signed in to the console only** (an API key gets 403). One period of your balance: `openingBalanceUsd`, then `paymentsUsd` (top-ups), `adjustmentsUsd` (refunds and corrections, signed), `hostingUsd` and `aiUsd` (what was spent, positive), and `closingBalanceUsd`. Opening + payments + adjustments − hosting − AI = closing, exactly.


        `from` and `to` are ISO timestamps, `to` exclusive; with no `from` the opening balance is zero and the period is your whole history.'
      responses:
        '200':
          description: The period as a ledger
        '403':
          description: Owners and admins only
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getClientCreditsSummary
      x-operation-id-source: derived
  /client/profile:
    get:
      tags:
      - Account
      summary: Read the account profile
      description: Name, status, region policy and the account-wide defaults a key inherits. Requires `usage:read`.
      responses:
        '200':
          description: The account profile. (Response shape not yet modelled in this spec.)
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks usage:read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getClientProfile
      x-operation-id-source: derived
    patch:
      tags:
      - Account
      summary: Update the account profile
      description: 'Account-wide settings an owner controls, including the organization `name`. **A routing policy cannot be set here** — the field is refused by name: each model is served one chosen way and that is not a per-account choice (see `GET /v1/models`). Requires `projects:write`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The updated profile. (Response shape not yet modelled in this spec.)
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: A field that is not settable, or an invalid value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Key lacks projects:write
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: patchClientProfile
      x-operation-id-source: derived
  /client/overview:
    get:
      tags:
      - Account
      summary: Account overview
      description: The headline figures the console home page is built from — spend, requests, apps and credit, over the current window. Requires `usage:read`.
      responses:
        '200':
          description: Overview figures. (Response shape not yet modelled in this spec.)
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Key lacks usage:read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getClientOverview
      x-operation-id-source: derived
  /client/log-requests:
    post:
      tags:
      - Account
      summary: Turn prompt and response logging on or off, and choose how long it is kept
      description: 'Account-wide. `enabled: false` stops storing content and deletes what is stored; we keep metadata only, so `GET /client/requests/{id}` has nothing to return for those calls. `retention` is how long stored content is kept: `7d`, `30d` (the default) or `forever` (until you delete it or turn logging off). A new retention applies to what is already stored, so a shorter one deletes older content at once. Requires `projects:write`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                retention:
                  type: string
                  enum:
                  - 7d
                  - 30d
                  - forever
      responses:
        '200':
          description: Applied
        '403':
          description: Key lacks projects:write
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postClientLogRequests
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          - type
          - code
          - param
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
              nullable: true
            param:
              type: string
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: roar_live_…
      description: A scoped Roar API key.
externalDocs:
  description: Guides and the interactive reference
  url: https://roar-ai.com/docs