docrocket-ai Generate Document API

The Generate Document API from docrocket-ai — 1 operation(s) for generate document.

Operations 1

POST /generate-document Generate a branded document #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/docrocket-ai:docrocket-ai-generate-document-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

docrocket-ai-generate-document-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DocRocket Generate Document API
  description: 'DocRocket surfaces: (1) **HTTPS JSON API** at `api.docrocket.ai/v1` — POST a single JSON envelope with `action` plus optional `account_id`, `user_id`, and a `body` object for action-specific fields. Use an Auth0 access token or DocRocket API key JWT in `Authorization: Bearer`. (2) **MCP-aligned HTTP paths** on the MCP gateway for high-level document flows. (3) **Direct Lambda invoke** with the same envelope shape for batch/tool integrations.'
  version: 1.0.0
  contact:
    email: hello@docrocket.ai
    url: https://docrocket.ai
  x-mcp-endpoint: https://mcp.docrocket.ai/v1/mcp-tools/docrocket-control/mcp
servers:
- url: https://api.docrocket.ai/v1
  description: Production HTTPS API (Auth0 or API key JWT)
- url: https://mcp.docrocket.ai/v1/mcp-tools/docrocket-control
  description: DocRocket MCP HTTP gateway (OAuth / MCP client flows)
security:
- oauth2: []
tags:
- name: Generate Document
paths:
  /generate-document:
    post:
      servers:
      - url: https://mcp.docrocket.ai/v1/mcp-tools/docrocket-control
        description: MCP gateway base URL for these paths
      operationId: docrocket_generate_document
      summary: Generate a branded document
      description: Generate a professional branded document using a saved brand, a template, and your content. Returns a PDF URL and a shareable web URL within 2 seconds. Documents are permanently hosted.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - brand_id
              - template
              - content
              properties:
                brand_id:
                  type: string
                  description: ID of the customer brand to apply. Get from docrocket_list_brands or docrocket_brand_from_url.
                template:
                  type: string
                  description: Template slug (e.g. 'proposal', 'report', 'qbr', 'contract', 'invoice'). Get full list from docrocket_list_templates.
                  example: proposal
                content:
                  type: object
                  description: Document content structured for the chosen template. Keys vary by template; use docrocket_list_templates to see required fields.
                title:
                  type: string
                  description: Optional document title override.
      responses:
        '200':
          description: Document generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  document_id:
                    type: string
                  web_url:
                    type: string
                    example: https://docs.docrocket.ai/d/abc123
                  pdf_url:
                    type: string
                    example: https://docs.docrocket.ai/d/abc123.pdf
                  generated_at:
                    type: string
                    format: date-time
      tags:
      - Generate Document
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Auth0 access token (DocRocket SPA audience) or DocRocket-issued API key JWT.
    oauth2:
      type: oauth2
      description: OAuth 2.0 via DocRocket account. No API keys needed.
      flows:
        authorizationCode:
          authorizationUrl: https://app.docrocket.ai/oauth/authorize
          tokenUrl: https://app.docrocket.ai/oauth/token
          scopes:
            documents:write: Generate documents
            documents:read: Read documents
            brands:write: Create and update brands
            brands:read: Read brands
            templates:read: Read templates