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: Radix Wiki Upload API
version: 4.0.0
description: REST API for RADIX.wiki, the community-maintained knowledge base for Radix DLT. Reads are open. Writes require a ROLA bearer token — see the signing walkthrough at https://radix.wiki/AGENTS.md. MCP-speaking agents should prefer the MCP server at https://radix.wiki/api/mcp (this API backs its tools, so semantics are identical). Content is licensed under the Creative Commons Attribution 4.0 International (CC-BY-4.0).
license:
name: Creative Commons Attribution 4.0 International
identifier: CC-BY-4.0
servers:
- url: https://radix.wiki
tags:
- name: Upload
paths:
/api/upload:
post:
summary: Upload an image
description: Returns the URL to use in a page's HTML or as its bannerImage. At most 4.5 MB, the whole request included, as JPEG, PNG, GIF, WebP, AVIF, read from the bytes; stored as WebP at most 1600px wide, without its metadata.
security:
- rolaBearer: []
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
responses:
'200':
description: Stored
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
'400':
description: No file, too large, or not an accepted image
'401':
description: Missing or invalid bearer token
'429':
description: Too many uploads
tags:
- Upload
operationId: postApiUpload
x-operation-id-source: derived
components:
securitySchemes:
rolaBearer:
type: http
scheme: bearer
bearerFormat: JWT
description: 'ROLA (Radix On-Ledger Authentication) session token from the challenge-sign-verify flow: GET /api/auth/challenge, sign with the account''s Ed25519 key, POST /api/auth. Full spec: https://radix.wiki/AGENTS.md'