Setup guide
Publish to your own site
Last updated 16 November 2026
Draft Otter can publish each article and white paper straight onto your own website. Your site needs a small publishing endpoint for this, which a developer or an AI coding agent can build in an hour or two. This page explains the three steps.
1. Build the endpoint
Your site needs two web addresses that Draft Otter can call: one to check the connection and one to receive a post. What each must accept and return is set out in the API contract:
https://draftotter.com/publishing-api.md
The contract is plain Markdown, complete in one file, so an AI coding agent can build from it directly. Give your agent this instruction, in your site’s code:
Read https://draftotter.com/publishing-api.md and add the publishing endpoint it specifies to this site. Follow its implementation checklist, then run its four test commands and show me the results.
If a developer looks after your site, send them the same link.
2. Create a publish key
The publish key is the password Draft Otter sends with every post. Your site creates it and keeps it secret. It must be:
- at least 32 characters long. Your endpoint should refuse anything shorter;
- random, made by a generator, never a word or phrase you chose;
- stored as a secret on your site, never in its code.
This command makes a suitable 64-character key:
openssl rand -hex 32
Keep a copy until you have finished step 3. Most sites cannot show the key again after it is saved.
3. Connect it in Draft Otter
Sign in, open Publishing, and find Custom API. Enter:
- Endpoint address: the address your endpoint answers on, for example https://api.yourcompany.com/content. It must start with https://.
- Publish key: the key from step 2.
Draft Otter tests the key as you connect. If it says the key was refused, check that the same key is saved on your site and that it is at least 32 characters. We store your key encrypted.
What gets published
- Articles, sent as type blog. Publish one from its page, or switch on automatic publishing to send each new article as it is written.
- White papers, sent as type whitepaper. Publish one from the White papers page; with automatic publishing on, each new one is sent too.
Publishing the same piece again replaces it on your site and never makes a second copy. Draft Otter never deletes anything from your site: to remove a post, do that on your site.