How do I access the VeloCMS API?
Every VeloCMS blog serves a versioned REST API under /api/v1. Authenticate with an API token to read and write posts, media, members, and settings.
Every VeloCMS blog serves a public REST API under /api/v1 on the blog's own address (for example https://yourblog.com/api/v1/posts). To access it, generate an API key from Admin → Settings → Advanced (API Keys section), include the key as a Bearer token in the Authorization header of your requests, and you can read and write the resources its scopes allow — posts, media, comments, members, products, site settings, and webhooks — programmatically.
Where is the API documentation?
The API is documented by two machine-readable specs served on your blog itself: an OpenAPI 3.1 document at /api/v1/openapi (endpoints, request and response shapes, required scopes) and an AsyncAPI 3.0 document at /api/v1/asyncapi (the webhook event catalog). Import either one into Postman, Insomnia, or an OpenAPI code generator to get a typed client. The setup command under Set up Zapier / Make in Admin → Settings → Advanced (API Keys section) shows your exact base URL. VeloCMS runs on a PocketBase backend, but that is an internal surface; the supported public API for integrations is /api/v1.
How do I authenticate API requests?
Generate an API token in Admin → Settings → Advanced (API Keys section). Click New key, give it a name (for example 'Zapier integration' or 'migration script'), select the permission scopes you need (Read posts, Write posts, Read members, etc.), and click Create API key. The token is shown once — copy it immediately because it's hashed before storage and VeloCMS can't display it again. Include the token in the Authorization header of your requests as 'Bearer your-token-here'. Tokens can be revoked individually from the same settings panel without affecting other active tokens.
Which resources are available through the API?
The v1 API exposes resource endpoints for posts (list and create), media (list and upload), comments (list and create, plus a moderation endpoint with the comments:moderate scope), members (list and update your reader accounts), site-settings (read the blog's public settings), products (create, list, read and update, for commerce tenants: title, description, price, active flag, stock and SKU; stock changes need the product's updated value so a sale is never overwritten), orders (list and read, read-only: totals, status and line items, with the buyer's email masked and no other buyer details), and webhooks (manage webhook subscriptions and poll delivery events). Three newer scopes cover pages and drafting: pages:read lists and reads your pages, pages:write renames a page, edits its SEO fields or publishes and unpublishes it (never its content), site-settings:write changes your site name, description, social links and SEO defaults (never secrets), and newsletter:write creates and edits newsletter drafts and sends a test copy to the person who created the key. newsletter:write cannot send a newsletter to your audience; a person reviews the draft in the admin and presses Send. Scheduling over the API is a separate, sensitive scope, newsletter:send, covered in the next section. The insights:read scope adds eight read-only summaries of form submissions, leads, reviews, abandoned checkouts, wishlist saves and page views: counts and masked metadata only, with no form answers, raw emails, IP addresses or per-cart details, and review text from the public is returned as untrusted content that is never to be followed as instructions. Each endpoint requires the matching scope on your API key — a key scoped to posts:read can't touch your member list or site settings, and write scopes like posts:write and members:write are granted separately from read scopes.
How do I schedule a newsletter through the API?
Scheduling needs a key with the newsletter:send scope, which is sensitive: the person who creates the key confirms it in the admin. It takes two calls. First, send-request with the audience (all, free, paid or a set of tags), the time and the campaign's updated value. It changes nothing and returns a confirmation token and a summary: the recipient count, the sender domain and the time. Second, send with that token. Even then nothing is mailed immediately: the campaign is scheduled, and until the time you can cancel it with the cancel call. The time must be at least 15 minutes and at most 14 days ahead. Rules: your site needs a verified custom sender domain, which is a Business or Agency plan feature; an audience has 1 to 5,000 recipients; at most 2 campaigns can be scheduled over the API per day (UTC), and cancelling does not give the slot back. The API can only pick an audience, never a list of email addresses. The person who created the key must still be an editor or higher. When the time comes the key, that person's permissions, the sender domain, the content and the audience size are checked again; if any of them changed, nothing is sent, the campaign goes back to a draft and you are told by email and in the dashboard. You are also emailed the moment a key schedules a send, with a link to unschedule it. The send-status call shows progress as counts only.
How do I control who can read a post through the API?
Every post has a visibility: public (everyone), members (signed-in members) or paid (paying members). When you create a post with the posts:write scope you can set visibility; anything other than public needs the publish permission of the person who created the API key. To change the visibility of an existing post, send visibility together with the post's updated value as expected_updated. Making a published or scheduled post readable by more people, for example from paid to public, is refused until you repeat the request with confirm_exposure set to true, so only send that after the site owner has agreed. Narrowing a post never needs confirmation. After a change, feeds and other machine-readable outputs can keep serving the previous audience for a few minutes, and copies that a search engine or feed reader already holds are not recalled.
What are good use cases for the VeloCMS API?
The API enables a wide range of scenarios that aren't possible through the admin UI alone. Content migration tools can create posts in bulk from a JSON or CSV export of another platform. Headless front-end deployments can fetch posts via API and render them in a completely custom React or Next.js template without using VeloCMS's built-in themes. Static site generators like Astro or Eleventy can pull VeloCMS posts at build time to generate a fully static site. Automation scripts can publish posts from a content queue, update post metadata based on analytics data, or sync subscriber lists with email marketing platforms. The API makes VeloCMS act as a full headless CMS backend while still providing the managed editor and publishing interface.
API tokens with write permissions give external systems direct access to your blog's data. Treat them like passwords — store them in environment variables, not in source code, and rotate them if you suspect a token was exposed. Delete tokens for integrations you no longer use.