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.
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