Page2Doc
    |||
    API v3.0.0 Β· OpenAPI 3.1

    Page2Doc API

    Convert any URL to PDF, Word, Excel, Markdown, and more β€” from any app or AI workflow.

    1Base URL

    example
    https://page2doc.com/api/chatgpt

    2Authentication

    All requests require a Bearer token in the Authorization header. Use your license key or API key from the dashboard.

    example
    Authorization: Bearer YOUR_API_KEY

    3API Endpoints

    Convert a URL

    Submit a URL and target format. Returns a job ID to poll until complete.

    POST/convert

    Request body

    example
    POST https://page2doc.com/api/chatgpt/convert
    Authorization: Bearer YOUR_API_KEY
    Content-Type: application/json
    
    {
      "url": "https://example.com/article",
      "format": "pdf"
    }

    Response

    example
    {
      "jobId": "job_abc123",
      "status": "pending",
      "format": "pdf",
      "url": "https://example.com/article",
      "createdAt": "2026-05-30T10:00:00Z"
    }

    Check job status

    Poll this endpoint until status is β€œcompleted” or β€œfailed”.

    GET/jobs/:jobId

    Request body

    example
    GET https://page2doc.com/api/chatgpt/jobs/:jobId
    Authorization: Bearer YOUR_API_KEY

    Response

    example
    {
      "jobId": "job_abc123",
      "status": "completed",
      "format": "pdf",
      "downloadUrl": "https://page2doc.com/api/chatgpt/files/job_abc123?t=hmac",
      "expiresAt": "2026-05-31T10:00:00Z"
    }

    Supported formats

    pdf, docx, xlsx, markdown, html, json, csv

    GET/formats

    Request body

    example
    GET https://page2doc.com/api/chatgpt/formats

    Response

    example
    {
      "formats": [
        { "id": "pdf",      "label": "PDF Document",         "ext": ".pdf" },
        { "id": "docx",     "label": "Word Document",         "ext": ".docx" },
        { "id": "xlsx",     "label": "Excel Spreadsheet",     "ext": ".xlsx" },
        { "id": "markdown", "label": "Markdown",               "ext": ".md" },
        { "id": "html",     "label": "Clean HTML",             "ext": ".html" },
        { "id": "json",     "label": "Structured JSON",        "ext": ".json" },
        { "id": "csv",      "label": "CSV",                    "ext": ".csv" }
      ]
    }

    Account & credits

    Check your plan, remaining conversions, and AI token balance.

    GET/account

    Request body

    example
    GET https://page2doc.com/api/chatgpt/account
    Authorization: Bearer YOUR_API_KEY

    Response

    example
    {
      "plan": "pro",
      "conversionsToday": 12,
      "dailyLimit": null,
      "tokensRemaining": 247000,
      "tokensLimit": 300000
    }
    Rate limits: Free: 3 conversions/day. Pro: unlimited conversions.

    OpenAPI Specification

    Import the full OpenAPI 3.1 spec into ChatGPT Actions, Postman, or any REST client.

    Use Page2Doc in ChatGPT

    Page2Doc is available as a native ChatGPT Action. Import the OpenAPI spec into your custom GPT to convert URLs directly from any conversation.

    ChatGPT integration guide β†’