Skip to main content

Quickstart

Go from zero to your first AI-powered document edit in 5 minutes.

1. Create an account

Sign up at use.superdocs.app with Google or email/password. Free plan includes 500 operations per month.

2. Create an API key

  1. Click the gear icon in the app to open Settings
  2. Go to the API Keys tab
  3. Click Create API Key and give it a name
  4. Copy the key immediately — it’s only shown once
Your key looks like: sk_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4

3. Make your first request

curl -X POST https://api.superdocs.app/v1/chat \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Add a paragraph about data privacy at the end",
    "session_id": "my-first-session",
    "document_html": "<h1>Company Policy</h1><p>Welcome to our company.</p>"
  }'

4. Read the response

{
  "response": "I've added a data privacy paragraph at the end of the document.",
  "session_id": "my-first-session",
  "document_changes": {
    "updated_html": "<div data-chunk-id=\"...\"><h1>Company Policy</h1>...</div>",
    "version_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "changes_summary": "Document updated by AI"
  },
  "usage": {
    "monthly_used": 1,
    "monthly_limit": 500,
    "monthly_remaining": 499,
    "was_billable": true,
    "subscription_tier": "free"
  }
}
Key fields:
  • response — The AI’s reply explaining what it did
  • document_changes.updated_html — The full updated document HTML. Render this in your editor.
  • usage — How many operations you’ve used this month

5. Continue the conversation

Use the same session_id to continue editing. Send back the updated HTML:
curl -X POST https://api.superdocs.app/v1/chat \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Make the data privacy section more formal",
    "session_id": "my-first-session",
    "document_html": "<div data-chunk-id=\"...\">...the HTML from the previous response..."
  }'

Next steps