Convert any URL to PDF, Word, Excel, Markdown, and more β from any app or AI workflow.
https://page2doc.com/api/chatgptAll requests require a Bearer token in the Authorization header. Use your license key or API key from the dashboard.
Authorization: Bearer YOUR_API_KEYConvert a URL
Submit a URL and target format. Returns a job ID to poll until complete.
/convertRequest body
POST https://page2doc.com/api/chatgpt/convert
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"url": "https://example.com/article",
"format": "pdf"
}Response
{
"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β.
/jobs/:jobIdRequest body
GET https://page2doc.com/api/chatgpt/jobs/:jobId
Authorization: Bearer YOUR_API_KEYResponse
{
"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
/formatsRequest body
GET https://page2doc.com/api/chatgpt/formatsResponse
{
"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.
/accountRequest body
GET https://page2doc.com/api/chatgpt/account
Authorization: Bearer YOUR_API_KEYResponse
{
"plan": "pro",
"conversionsToday": 12,
"dailyLimit": null,
"tokensRemaining": 247000,
"tokensLimit": 300000
}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 β