Derive Accounts API

Model accounts: the credential a machine uses to call a model. Write-only.

Operations 4

GET /v1/accounts Your model accounts, and the workspace's shared ones #
POST /v1/accounts Add a model account by pasting a key or a login. Shared accounts need an owner #
PATCH /v1/accounts/{id} Rename an account, or share yours with the workspace (owners). #
DELETE /v1/accounts/{id} Disconnect an account. Yours, or a shared one if you own the workspace #

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/derive-to:derive-to-accounts-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

derive-to-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Derive Accounts API
  version: 1.0.0
  description: 'Derive''s HTTP API. Every response shape here is the single source of truth for the web client — generated from the same Zod schemas that back this reference, so the docs never drift from the running API.


    **Auth:** a session cookie (browser) or a bearer token (agents and the CLI). Most write routes are scoped to the caller''s active workspace. The `/v1` paths are the stable product surface; `/openapi.json` serves this spec and `/docs` renders it.'
tags:
- name: Accounts
  description: 'Model accounts: the credential a machine uses to call a model. Write-only.'
paths:
  /v1/accounts:
    get:
      tags:
      - Accounts
      summary: Your model accounts, and the workspace's shared ones
      responses:
        '200':
          description: Accounts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  accounts:
                    type: array
                    items:
                      $ref: '#/components/schemas/ModelAccount'
                required:
                - accounts
      operationId: getV1Accounts
      x-operation-id-source: derived
    post:
      tags:
      - Accounts
      summary: Add a model account by pasting a key or a login. Shared accounts need an owner
      responses:
        '201':
          description: The account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelAccount'
      operationId: postV1Accounts
      x-operation-id-source: derived
  /v1/accounts/{id}:
    patch:
      tags:
      - Accounts
      summary: Rename an account, or share yours with the workspace (owners).
      parameters:
      - schema:
          type: string
        required: true
        name: id
        in: path
      responses:
        '200':
          description: The account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelAccount'
      operationId: patchV1AccountsById
      x-operation-id-source: derived
    delete:
      tags:
      - Accounts
      summary: Disconnect an account. Yours, or a shared one if you own the workspace
      parameters:
      - schema:
          type: string
        required: true
        name: id
        in: path
      responses:
        '204':
          description: Disconnected.
      operationId: deleteV1AccountsById
      x-operation-id-source: derived
components:
  schemas:
    ModelAccount:
      type: object
      properties:
        id:
          type: string
        provider:
          type: string
          enum:
          - claude
          - codex
        kind:
          type: string
          enum:
          - oauth
          - api_key
          - login
        name:
          type:
          - string
          - 'null'
          description: What its owner calls it; null shows the provider.
        shared:
          type: boolean
          description: A workspace account every agent may fall back to.
        mine:
          type: boolean
        hint:
          type:
          - string
          - 'null'
        status:
          type: string
          enum:
          - ready
          - not_checked
          - connecting
          - needs_attention
        created_at:
          type: string
      required:
      - id
      - provider
      - kind
      - name
      - shared
      - mine
      - hint
      - status
      - created_at