Four APIs to build with
Content Delivery API
GraphQLRead published content from any front-end via a fast, cached GraphQL endpoint.
@datocms/cda-client Content Management API
RESTCreate, update, and publish records programmatically through a typed client.
@datocms/cma-client Asset API
CDNUpload, transform, and serve images, video, and files from a global CDN.
Real-time Updates API
SSEStream live content changes to power instant previews and live published views.
datocms-listen import { buildClient } from '@datocms/cda-client';
const client = buildClient({ apiToken: process.env.DATOCMS_TOKEN,});
const { allPosts } = await client.request({ query: `{ allPosts(first: 10) { id title slug _publishedAt } }`,});import { buildClient } from '@datocms/cma-client';
const client = buildClient({ apiToken: process.env.DATOCMS_CMA_TOKEN,});
const post = await client.items.create({ item_type: Schema.BlogPost.REF, title: 'Hello, world', slug: 'hello-world',});
await client.items.publish(post.id);# Upload a file via the CMA, then transform via the CDN.curl https://www.datocms-assets.com/12345/hero.jpg \ ?fit=crop&w=1200&h=630&auto=format
# Or in GraphQL — responsive variants from the CDA:{ hero { responsiveImage(imgixParams: { w: 400, h: 400, fit: crop }) { src srcSet sizes width height alt blurUpThumb } }}import { subscribeToQuery } from 'datocms-listen';
const unsubscribe = await subscribeToQuery({ query: `{ allPosts { id title } }`, token: process.env.DATOCMS_TOKEN, includeDrafts: true, onUpdate: ({ response }) => { console.log('content changed', response.data); },});Build with AI. Ship to AI.
Extend & integrate
Visual Editing
Real-time edit overlays on the front-end.
Structured Text
The dast format, renderers, migration from rich text.
Plugin SDK
Field extensions, sidebars, dropdowns, hooks.
Site Search
Configuration, crawling, React & Vue widgets.
Streaming Videos
HLS vs MP4, Mux analytics, player config.
Webhooks
Subscribe to record / model / asset events.
Run in production
Environments & migrations
Sandbox, primary, scripting migrations with the CLI.
Import & Export
Contentful import, WordPress import, enterprise exports.
SSO & security
Conceptual primer for the CMA SSO endpoints.
Audit Logs
Who did what, when. Compliance-ready.
Custom asset domains
Serve assets from your own domain.
Pro tips
Customize admin domain, live/preview, more.