Contentrain API

Contentrain API as documented publicly: 51 operations. Contract generated from the documentation by API Evangelist (2026-11-04); not the provider's own document.

Operations 51

POST /api/auth/login Get OAuth redirect URL #
POST /api/auth/magic-link Send magic link email #
GET /api/auth/magic/verify Magic-link landing (managed pair) #
GET /api/auth/oauth/{provider} OAuth sign-in legs (managed pair) #
POST /api/auth/refresh Exchange a refresh token (CLI) #
POST /api/auth/review-login Directory-review password login (managed pair, opt-in) #
POST /api/auth/verify Exchange code/token for session #
POST /api/billing/webhook/{provider} Billing webhook receiver (per provider) #
GET /api/cdn/v1/{projectid} CDN content delivery (API key auth; media binaries also support a keyless public-media mode gated by cdn_public_media) #
GET /api/cdn/v1/{projectid}/{path} Fetch content through the CDN #
POST /api/comments/v1/{projectid}/{modelid}/{entryid} Read and post comments (public) #
GET /api/conversation/v1/{projectid}/history Conversation history (Bearer conversation key) #
POST /api/conversation/v1/{projectid}/message Conversation API (Bearer conversation key) #
POST /api/forms/v1/{projectid}/{modelid}/submit Form submission (public) #
GET /api/health Health check #
GET /api/media/v1/{projectid}/assets List assets. #
POST /api/media/v1/{projectid}/assets Upload asset. #
DELETE /api/media/v1/{projectid}/assets/{assetid} Delete asset. #
GET /api/media/v1/{projectid}/assets/{assetid} Get asset. #
PATCH /api/media/v1/{projectid}/assets/{assetid} Update asset metadata. #
POST /api/media/v1/{projectid}/assets/bulk Bulk operations on assets. #
POST /api/webhooks/github GitHub webhook receiver #
POST /api/workspaces/{workspaceid}/projects/{projectid}/attachments Pre‑upload files or pasted links before sending a chat message. #
GET /api/workspaces/{workspaceid}/projects/{projectid}/cdn/builds List Builds #
POST /api/workspaces/{workspaceid}/projects/{projectid}/cdn/builds/trigger Trigger Build #
GET /api/workspaces/{workspaceid}/projects/{projectid}/cdn/keys List CDN Keys #
POST /api/workspaces/{workspaceid}/projects/{projectid}/cdn/keys Create CDN Key #
DELETE /api/workspaces/{workspaceid}/projects/{projectid}/cdn/keys/{keyid} Revoke CDN Key #
GET /api/workspaces/{workspaceid}/projects/{projectid}/cdn/settings Get CDN Settings #
PATCH /api/workspaces/{workspaceid}/projects/{projectid}/cdn/settings Update CDN Settings #
GET /api/workspaces/{workspaceid}/projects/{projectid}/conversations Returns the caller's conversations in this project, most recent first, with title and timestamps. #
DELETE /api/workspaces/{workspaceid}/projects/{projectid}/conversations/{conversationid} Deletes the conversation and all its messages. #
GET /api/workspaces/{workspaceid}/projects/{projectid}/conversations/{conversationid}/messages Returns up to 300 messages in chronological order, each with id, role, content, content_blocks, tool_calls, model, created_at, and turn_id. #
GET /api/workspaces/{workspaceid}/projects/{projectid}/forms/{modelid}/submissions List Submissions #
DELETE /api/workspaces/{workspaceid}/projects/{projectid}/forms/{modelid}/submissions/{submissionid} Delete Submission #
PATCH /api/workspaces/{workspaceid}/projects/{projectid}/forms/{modelid}/submissions/{submissionid} Update Submission Status #
POST /api/workspaces/{workspaceid}/projects/{projectid}/forms/{modelid}/submissions/bulk Bulk Update #
GET /api/workspaces/{workspaceid}/projects/{projectid}/media List media assets with filtering and pagination. #
POST /api/workspaces/{workspaceid}/projects/{projectid}/media POST /api/workspaces/{workspaceid}/projects/{projectid}/media #
DELETE /api/workspaces/{workspaceid}/projects/{projectid}/media/{assetid} Delete an asset and all its variants from storage and database. #
GET /api/workspaces/{workspaceid}/projects/{projectid}/media/{assetid} Get full metadata for a specific media asset. #
PATCH /api/workspaces/{workspaceid}/projects/{projectid}/media/{assetid} Update alt text, tags, or focal point for an asset. #
GET /api/workspaces/{workspaceid}/projects/{projectid}/media/{assetid}/preview Get a binary preview of a media asset (serves the file). #
GET /api/workspaces/{workspaceid}/projects/{projectid}/media/{assetid}/source Download the file exactly as it was uploaded (the delivery master may have had metadata stripped). #
POST /api/workspaces/{workspaceid}/projects/{projectid}/media/bulk Perform bulk operations on multiple assets. #
POST /api/workspaces/{workspaceid}/projects/{projectid}/media/bulk-ingest Import many remote images in one call and get back a map from each source URL to its new delivery URL. #
POST /api/workspaces/{workspaceid}/projects/{projectid}/media/rehost Rewrite the media URLs committed in a project's content so they point at this project's delivery URLs. #
POST /api/workspaces/{workspaceid}/projects/{projectid}/media/upload-url Import a media asset from an external URL. #
GET /assets List assets (public). #
POST /assets Upload (multipart or URL) a media asset via the public Media API. #
POST /assets/bulk Bulk operations on assets (public). #

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/contentrain-io:contentrain-io-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

contentrain-io-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Contentrain API
  version: '2026-11-04'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-04: 51 operation(s) read from 5 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Contentrain has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 5
    documentation: 46
    pages-with-code: 3
    pages-read: 5
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-04'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.contentrain.io/developer/api-reference
  - https://docs.contentrain.io/developer/api-reference/cdn
  - https://docs.contentrain.io/developer/api-reference/chat
  - https://docs.contentrain.io/developer/api-reference/forms


# --- truncated at 32 KB (61 KB total) ---
# Full source: https://artifacts.apis.io/contentrain-io/openapi/_ae-authored/contentrain-io-openapi-generated.yml