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 Assets 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: Assets
description: Standalone binary image assets referenced from bundles.
paths:
/v1/assets:
post:
tags:
- Assets
summary: Stage a binary asset (image or web font) and get a permanent URL + its asset…
responses:
'200':
description: The stored asset's public URL and content-addressed handle.
content:
application/json:
schema:
$ref: '#/components/schemas/AssetRef'
operationId: postV1Assets
x-operation-id-source: derived
/v1/assets/t/{token}:
post:
tags:
- Assets
summary: Stage a binary asset with a short-lived upload token (minted over MCP)
parameters:
- schema:
type: string
required: true
name: token
in: path
responses:
'200':
description: The stored asset's public URL and content-addressed handle.
content:
application/json:
schema:
$ref: '#/components/schemas/AssetRef'
operationId: postV1AssetsTByToken
x-operation-id-source: derived
components:
schemas:
AssetRef:
type: object
properties:
key:
type: string
description: The blob hash (content-addressed storage key)
url:
type: string
description: A permanent public URL for these bytes — embed it in any artifact's content
ref:
type: string
description: The exact "asset:<hash>" string to drop into a publish files map
type:
type: string
enum:
- image/png
- image/jpeg
- image/gif
- image/webp
- font/woff2
- font/woff
description: The sniffed MIME type (PNG, JPEG, GIF, WebP, WOFF2, or WOFF)
size:
type: number
description: The asset's size in bytes
required:
- key
- url
- ref
- type
- size