API Documentation

Integrate OptiDraft directly into your stack.

The OptiDraft API lets product teams, agencies, and platforms generate SEO-ready long-form content programmatically — using the same engine that powers the OptiDraft app.

API access is reserved for companies and teams with structured use cases. If you’d like access, your organization can apply for an API key and onboarding session.

POST /v1/articles/generate

curl https://api.optidraft.com/v1/articles/generate \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "keyword": "best email marketing strategies",
    "language": "en-US",
    "article_size": "m",
    "tone": "professional",
    "include_faq": true
  }'
Example request only. Actual endpoints, fields, and limits are provided after your company’s API access is approved.

Overview

The OptiDraft API is designed for companies that want to integrate SEO-ready article generation directly into their own products, internal tools, or client workflows.

You can send structured requests to our API and receive fully formatted drafts, outlines, or sections of content that follow the same SEO and readability principles as the OptiDraft web app.

Because this is a production-grade API, we only provide access to organizations with clear use cases and appropriate safeguards for usage, quality control, and end-user experience.

Who can access the API?

  • • SaaS companies integrating AI writing for their users.
  • • Agencies building internal production tools.
  • • Media & publishing teams with high content volume.
  • • Enterprise SEO teams needing custom pipelines.

Individual creators can use the OptiDraft web app and generators instead of the API.

Common ways companies use the OptiDraft API

Use the API as the content engine behind your own products, dashboards, or workflows.

In-app blog generators

Add “Generate article” buttons to your SaaS product, letting users create SEO-friendly content without leaving your platform.

Internal content pipelines

Agencies and SEO teams can plug OptiDraft into internal tools for outline generation, first drafts, and content briefs at scale.

Programmatic content

Generate content for large keyword lists (locations, categories, variants) using your own logic and guardrails on top.

Authentication & security

All requests to the OptiDraft API must be authenticated using a secret API key associated with your company account.

  • • Authentication via Authorization: Bearer <API_KEY>
  • • API keys scoped and rate-limited by organization.
  • • HTTPS required for all requests.
  • • Ability to rotate and revoke keys on request.

Detailed security notes, IP allowlisting options, and rate limit specifics are shared during your company’s onboarding.

Example request


POST /v1/articles/generate HTTP/1.1
Host: api.optidraft.com
Authorization: Bearer <API_KEY>
Content-Type: application/json

{
  "keyword": "how to start a coffee shop",
  "language": "en-US",
  "article_size": "m",
  "tone": "friendly",
  "include_conclusion": true
}

Note: The exact fields and schema may differ. You’ll receive the full, versioned specification once your company is approved for access.

High-level endpoint overview

Exact endpoints and parameters are shared in full documentation after your company is onboarded. Here’s a simplified view of what’s possible.

Articles

Generate long-form SEO articles

Send a keyword, language, and article configuration. Receive a complete draft or structured blocks.

POST /v1/articles/generate

Outlines & briefs

Create outlines & content briefs

Generate structured outlines, headings, and talking points your writers or app can build from.

POST /v1/outlines/create

Sections & utilities

Generate sections, FAQs, CTAs & more

Use focused endpoints for introductions, FAQs, meta descriptions, and other on-page elements.

POST /v1/sections/generate

Example response (simplified)

A typical article generation response includes metadata, an outline, and the full draft. You can store this, post-process it, or plug it directly into your CMS or application.

The actual schema can be returned as HTML, markdown, or structured JSON blocks depending on the configuration agreed with your team.

{
  "id": "art_12345",
  "keyword": "how to start a coffee shop",
  "language": "en-US",
  "word_estimate": {
    "min": 2400,
    "max": 3600
  },
  "outline": [
    { "type": "h2", "text": "Why coffee shops are still a great business" },
    { "type": "h2", "text": "Step 1: Validate your market and concept" },
    { "type": "h2", "text": "Step 2: Plan your menu, pricing, and margins" }
  ],
  "content_html": "<h1>How to Start a Coffee Shop...</h1> ...",
  "content_markdown": "# How to Start a Coffee Shop ...",
  "created_at": "2025-01-15T12:34:56Z"
}

API access is available for companies and teams.

If your organization is interested in using the OptiDraft API, we’ll review your use case, discuss volume, and share detailed technical documentation under an appropriate agreement.

Step 1

Submit your use case

Tell us about your product, workflow, and how you plan to use the API.

Step 2

Technical & volume review

We’ll review requirements, estimate volume, and discuss pricing & limits.

Step 3

Onboarding & docs

Your team receives API keys, full documentation, and implementation guidance.

Please note: API access is not enabled by default for regular OptiDraft accounts. It is provided only to approved company accounts.