Diagnose and resolve common API errors when using the DocsAutomator API
400 Bad Request
Problem
The API returns 400 Bad Request when the request is missing required parameters or has invalid values.
Common Error Messages
Missing automation ID:
{ "message": "Please add a valid automation id with key 'automationId' (or 'docId') to the request." }
Include the automationId field in your request body with your automation ID.Different automation IDs in one request:
{ "message": "The request has both 'automationId' and 'docId' with different values. Send only 'automationId'." }
Send the automation ID once, in automationId. docId is still accepted on its own.Invalid template override:
{ "message": "Invalid docTemplateLink format. Please provide either a valid Google Docs URL or a document ID directly." }
Use a full Google Docs URL (e.g., https://docs.google.com/document/d/DOC_ID/edit) or just the document ID.
401 Unauthorized
Problem
API requests return 401 Unauthorized with a message indicating authentication failure.
Common Error Messages & Causes
Missing or wrong API key
Expired Google refresh token
Copied key has extra whitespace
Error message:
{ "message": "Incorrect / missing API key" }
Ensure you include the Authorization header with the correct format:
Authorization: Bearer YOUR_API_KEY
Check that the key is still listed in Settings > API keys and was not revoked. A revoked key stops working at once. Compare the start of the key in your app with the Key column there. If no key matches, the key was revoked or belongs to another workspace. Create a new key, put it in the app, and revoke any key the app no longer needs. See API keys.
Each key has a name, its first characters, the day it was created and the day it was last used.
API keys are scoped to a workspace. If you have multiple workspaces, make sure you’re using the key from the correct one.
Error message:
{ "message": "No Google access permissions. Please add your Google account under settings in your DocsAutomator account" }
DocsAutomator needs an active Google connection to generate documents. If the Google refresh token has expired or been revoked, you get this error.Solution: Log into the DocsAutomator app and reconnect your Google account at Settings > Integrations.
When copying the API key, extra spaces or newlines may be included. Trim any whitespace from the key value.
402 Payment Required
Problem
The API returns 402 Payment Required, indicating your document generation quota has been exceeded.Error message:
{ "message": "You have reached your documents limit. Please upgrade your plan: https://app.docsautomator.co/change-plan" }
Solution
Check your current usage at Settings > Billing in the DocsAutomator app
Enable overage documents in billing settings to continue beyond your plan limit
Upgrade your plan or wait for the billing cycle to reset
If overage billing is already enabled, this error means the overage cap was also reached
Test documents do not count against your quota. Send "mode": "test" in your request, or keep the automation in test mode, while you test.
404 Not Found
Problem
The API returns 404 Not Found when trying to create a document or access an automation.
Common Error Messages
Error Message
Cause
Solution
"Automation / template id does not exist or is not part of the account with the given API key."
Wrong automationId or wrong workspace
Verify the automation ID and API key match the same workspace
"No Google Docs template set for the given document id."
No template linked
Open the automation in the app and configure a Google Doc template
"Automation is not active."
Automation is disabled
Activate the automation in the app or set isActive: true via the API
How to Find Your Automation ID
Open the automation in the DocsAutomator app
The automation ID is displayed on the settings page
Or call GET /automations to list all automations with their IDs
429 Too Many Requests
Problem
The API returns 429 Too Many Requests, indicating you’ve exceeded the rate limit.
Rate Limits
Scope
Limit
Global
2000 requests per 15 minutes per API key, except document requests
Document requests
Never limited under 20 open requests. See Rate Limits
Queue
Max 50 queued jobs per workspace
Queue concurrency
Max 5 active jobs per workspace
Test email
5 per hour per workspace
Solution
Implement backoff: Wait and retry with exponential backoff (start at 2 seconds, double each attempt, max 60 seconds)
Spread requests: If generating many documents, space out requests or use async mode with the queue system
Check the Retry-After header: When present, wait the indicated number of seconds before retrying
// Example: exponential backoffasync function createDocumentWithRetry(payload, maxRetries = 3) { let delay = 2000; for (let i = 0; i < maxRetries; i++) { const response = await fetch("https://api.docsautomator.co/createDocument", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify(payload), }); if (response.status !== 429) return response.json(); await new Promise((resolve) => setTimeout(resolve, delay)); delay *= 2; } throw new Error("Rate limit exceeded after retries");}
500 Internal Server Error
Problem
The API returns 500 Internal Server Error, indicating something went wrong on the server side.
What to Do
Retry the request after a short delay. Transient errors (Google API timeouts, etc.) are often resolved by retrying.
Check your template for issues such as very large images, complex formatting, or corrupted elements.
Verify your data does not contain unexpected characters or excessively long values.
Contact support if the error persists. Include the request payload (without your API key) and the approximate timestamp.
Debugging Tips
When troubleshooting API issues, always check the response body for a detailed error message. DocsAutomator returns structured error responses with specific details about what went wrong.
Use the API playground: Each endpoint page in the API Reference tab includes an interactive playground where you can test requests directly.
Check Documents: Failed runs appear under the Needs attention filter on the Documents page in the app, also for runs that the API started. Click a run to see its error message.
Validate your JSON: Malformed JSON payloads return 400 Bad Request. Use a JSON validator before sending requests.
Related
API Introduction
API setup, authentication, and code examples
Documents
Monitor all document generation attempts
Last modified on November 23, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DocsAutomator","colors":{"primary":"#4f46e5","light":"#818cf8","dark":"#3730a3"},"logo":{"light":"https://mintcdn.com/docsautomator/aWJzng63hl4bgVX9/logo/light.svg?fit=max\u0026auto=format\u0026n=aWJzng63hl4bgVX9\u0026q=85\u0026s=a89d4e949fd24be7b244a51939eccb26","dark":"https://mintcdn.com/docsautomator/aWJzng63hl4bgVX9/logo/dark.svg?fit=max\u0026auto=format\u0026n=aWJzng63hl4bgVX9\u0026q=85\u0026s=155c195e2edcade52d5cbcbe58d64b76"},"favicon":"https://mintcdn.com/docsautomator/aWJzng63hl4bgVX9/favicon.svg?fit=max\u0026auto=format\u0026n=aWJzng63hl4bgVX9\u0026q=85\u0026s=9656fbf52a0ead3b218121003b721847","api":{"playground":{"display":"interactive","proxy":true}},"appearance":{},"background":{"decoration":"gradient"},"navbar":{"primary":{"type":"button","label":"Get Started Free","href":"https://app.docsautomator.co"}},"footer":{"socials":{"x":"https://x.com/docsautomator","youtube":"https://youtube.com/@docsautomator"},"links":[{"header":"Product","items":[{"label":"Pricing","href":"https://docsautomator.co/pricing"},{"label":"Template Gallery","href":"https://docsautomator.co/templates"},{"label":"Changelog","href":"/docs/changelog"}]},{"header":"Resources","items":[{"label":"Documentation","href":"/docs"},{"label":"API Reference","href":"/docs/api-reference/introduction"},{"label":"Video Tutorials","href":"https://youtube.com/@docsautomator"}]},{"header":"Company","items":[{"label":"Website","href":"https://docsautomator.co"},{"label":"Book a Call","href":"https://cal.com/docsautomator/20min"},{"label":"Contact","href":"mailto:support@docsautomator.co"}]}]},"search":{"prompt":"Search DocsAutomator docs..."},"seo":{"metatags":{"og:image":"https://docsautomator.co/docs/images/og/docs-default.jpg","og:image:alt":"DocsAutomator documentation","twitter:image":"https://docsautomator.co/docs/images/og/docs-default.jpg","og:site_name":"DocsAutomator Documentation","twitter:card":"summary_large_image","twitter:site":"@docsautomator"},"indexing":"all"},"integrations":{"posthog":{"apiKey":"phc_yPsDdVmPczJK4ypcWm1RiPWfri6c2eSTgCiaQP95X3X"}},"banner":{"content":"New: DocsAutomator now works inside HubSpot. [See the setup guide →](https://docsautomator.co/docs/integrations-api/hubspot)","dismissible":true},"contextual":{"options":["copy","chatgpt","claude","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"docsautomator","hasAudioNarration":false,"actualSubdomain":"docsautomator","customDomains":["docsautomator.co"],"gitSource":{"type":"github","owner":"docsautomator","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b04ae2a5fc7cb1074f0057e","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Documentation","count":97},{"language":"default","tag":"Features","count":48},{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Integrations","count":18},{"language":"default","tag":"Resources","count":14},{"language":"default","tag":"Actions After Document Generation","count":10},{"language":"default","tag":"Getting Started","count":9},{"language":"default","tag":"Signing \u0026 Acceptance","count":9},{"language":"default","tag":"Troubleshooting","count":9},{"language":"default","tag":"Documents","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"more/troubleshooting-guide/api-error-troubleshooting","slug":"/more/troubleshooting-guide/api-error-troubleshooting","pageMetadata":{"title":"API Error Troubleshooting","description":"Diagnose and resolve common API errors when using the DocsAutomator API","icon":"code","href":"/more/troubleshooting-guide/api-error-troubleshooting"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Diagnose and resolve common API errors when using the DocsAutomator API\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Frame,Heading,Info,OptimizedImage,Tab,Table,Tabs,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`400-bad-request`,children:`400 Bad Request`}),`\n`,_jsx(Heading,{level:`3`,id:`problem`,children:`Problem`}),`\n`,_jsxs(_components.p,{children:[`The API returns `,_jsx(_components.code,{children:`400 Bad Request`}),` when the request is missing required parameters or has invalid values.`]}),`\n`,_jsx(Heading,{level:`3`,id:`common-error-messages`,children:`Common Error Messages`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Missing automation ID:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Please add a valid automation id with key 'automationId' (or 'docId') to the request.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Include the `,_jsx(_components.code,{children:`automationId`}),` field in your request body with your automation ID.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Different automation IDs in one request:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The request has both 'automationId' and 'docId' with different values. Send only 'automationId'.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Send the automation ID once, in `,_jsx(_components.code,{children:`automationId`}),`. `,_jsx(_components.code,{children:`docId`}),` is still accepted on its own.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Invalid template override:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid docTemplateLink format. Please provide either a valid Google Docs URL or a document ID directly.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use a full Google Docs URL (e.g., `,_jsx(_components.code,{children:`https://docs.google.com/document/d/DOC_ID/edit`}),`) or just the document ID.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`401-unauthorized`,children:`401 Unauthorized`}),`\n`,_jsx(Heading,{level:`3`,id:`problem-2`,children:`Problem`}),`\n`,_jsxs(_components.p,{children:[`API requests return `,_jsx(_components.code,{children:`401 Unauthorized`}),` with a message indicating authentication failure.`]}),`\n`,_jsx(Heading,{level:`3`,id:`common-error-messages-\u0026-causes`,children:`Common Error Messages \u0026 Causes`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Missing or wrong API key`,id:`missing-or-wrong-api-key`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Error message:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Incorrect / missing API key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Ensure you include the `,_jsx(_components.code,{children:`Authorization`}),` header with the correct format:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` YOUR_API_KEY`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Check that the key is still listed in `,_jsx(_components.a,{href:`https://app.docsautomator.co/settings/workspace/api`,children:`Settings > API keys`}),` and was not revoked. A revoked key stops working at once. Compare the start of the key in your app with the `,_jsx(_components.strong,{children:`Key`}),` column there. If no key matches, the key was revoked or belongs to another workspace. Create a new key, put it in the app, and revoke any key the app no longer needs. See `,_jsx(_components.a,{href:`/more/finding-your-api-key`,children:`API keys`}),`.`]}),_jsx(Frame,{caption:`Each key has a name, its first characters, the day it was created and the day it was last used.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=923940937c26f7c1c1f5be7a150e0c3f`,alt:`The API keys list with three keys named Original key, Make and Zapier: Invoices, with their first characters, the day each was created, when each was last used and a Revoke button`,\"data-og-width\":`3200`,width:`3200`,\"data-og-height\":`1800`,height:`1800`,\"data-path\":`images/api-keys/api-keys-list.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?w=280\u0026fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=e55b3a488c896a872c6e4b1de078b558 280w, https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?w=560\u0026fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=3b5f65032b3edc570a88275325640236 560w, https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?w=840\u0026fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=2f4c2ce5b110635908482cf41ed84c22 840w, https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=320ea35e76b38de8cccd99fe147fe8e6 1100w, https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=3e7f86c0e06ee0f393e0ae161b20a88a 1650w, https://mintcdn.com/docsautomator/Aq2hrnXrAZ39cS85/images/api-keys/api-keys-list.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Aq2hrnXrAZ39cS85\u0026q=85\u0026s=7ecf72fe1fd53a05442fef1fdc4f9a19 2500w`})}),_jsx(Warning,{children:_jsx(_components.p,{children:`API keys are scoped to a workspace. If you have multiple workspaces, make sure you’re using the key from the correct one.`})})]}),_jsxs(Tab,{title:`Expired Google refresh token`,id:`expired-google-refresh-token`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Error message:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No Google access permissions. Please add your Google account under settings in your DocsAutomator account\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(_components.p,{children:`DocsAutomator needs an active Google connection to generate documents. If the Google refresh token has expired or been revoked, you get this error.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution:`}),` Log into the DocsAutomator app and reconnect your Google account at `,_jsx(_components.strong,{children:`Settings > Integrations`}),`.`]})]}),_jsx(Tab,{title:`Copied key has extra whitespace`,id:`copied-key-has-extra-whitespace`,children:_jsx(_components.p,{children:`When copying the API key, extra spaces or newlines may be included. Trim any whitespace from the key value.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`402-payment-required`,children:`402 Payment Required`}),`\n`,_jsx(Heading,{level:`3`,id:`problem-3`,children:`Problem`}),`\n`,_jsxs(_components.p,{children:[`The API returns `,_jsx(_components.code,{children:`402 Payment Required`}),`, indicating your document generation quota has been exceeded.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Error message:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You have reached your documents limit. Please upgrade your plan: https://app.docsautomator.co/change-plan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`solution`,children:`Solution`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Check your current usage at `,_jsx(_components.strong,{children:`Settings > Billing`}),` in the DocsAutomator app`]}),`\n`,_jsx(_components.li,{children:`Enable overage documents in billing settings to continue beyond your plan limit`}),`\n`,_jsx(_components.li,{children:`Upgrade your plan or wait for the billing cycle to reset`}),`\n`,_jsx(_components.li,{children:`If overage billing is already enabled, this error means the overage cap was also reached`}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Test documents do not count against your quota. Send `,_jsx(_components.code,{children:`\"mode\": \"test\"`}),` in your request, or keep the automation in test mode, while you test.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`404-not-found`,children:`404 Not Found`}),`\n`,_jsx(Heading,{level:`3`,id:`problem-4`,children:`Problem`}),`\n`,_jsxs(_components.p,{children:[`The API returns `,_jsx(_components.code,{children:`404 Not Found`}),` when trying to create a document or access an automation.`]}),`\n`,_jsx(Heading,{level:`3`,id:`common-error-messages-2`,children:`Common Error Messages`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Message`}),_jsx(_components.th,{children:`Cause`}),_jsx(_components.th,{children:`Solution`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"Automation / template id does not exist or is not part of the account with the given API key.\"`})}),_jsxs(_components.td,{children:[`Wrong `,_jsx(_components.code,{children:`automationId`}),` or wrong workspace`]}),_jsx(_components.td,{children:`Verify the automation ID and API key match the same workspace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"No Google Docs template set for the given document id.\"`})}),_jsx(_components.td,{children:`No template linked`}),_jsx(_components.td,{children:`Open the automation in the app and configure a Google Doc template`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"Automation is not active.\"`})}),_jsx(_components.td,{children:`Automation is disabled`}),_jsxs(_components.td,{children:[`Activate the automation in the app or set `,_jsx(_components.code,{children:`isActive: true`}),` via the API`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`how-to-find-your-automation-id`,children:`How to Find Your Automation ID`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Open the automation in the DocsAutomator app`}),`\n`,_jsx(_components.li,{children:`The automation ID is displayed on the settings page`}),`\n`,_jsxs(_components.li,{children:[`Or call `,_jsx(_components.code,{children:`GET /automations`}),` to list all automations with their IDs`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`429-too-many-requests`,children:`429 Too Many Requests`}),`\n`,_jsx(Heading,{level:`3`,id:`problem-5`,children:`Problem`}),`\n`,_jsxs(_components.p,{children:[`The API returns `,_jsx(_components.code,{children:`429 Too Many Requests`}),`, indicating you’ve exceeded the rate limit.`]}),`\n`,_jsx(Heading,{level:`3`,id:`rate-limits`,children:`Rate Limits`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Limit`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Global`}),_jsx(_components.td,{children:`2000 requests per 15 minutes per API key, except document requests`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Document requests`}),_jsxs(_components.td,{children:[`Never limited under 20 open requests. See `,_jsx(_components.a,{href:`/api-reference/introduction#rate-limits`,children:`Rate Limits`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Queue`}),_jsx(_components.td,{children:`Max 50 queued jobs per workspace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Queue concurrency`}),_jsx(_components.td,{children:`Max 5 active jobs per workspace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Test email`}),_jsx(_components.td,{children:`5 per hour per workspace`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`solution-2`,children:`Solution`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Implement backoff`}),`: Wait and retry with exponential backoff (start at 2 seconds, double each attempt, max 60 seconds)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Spread requests`}),`: If generating many documents, space out requests or use async mode with the queue system`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Check the `,_jsx(_components.code,{children:`Retry-After`}),` header`]}),`: When present, wait the indicated number of seconds before retrying`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Example: exponential backoff`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createDocumentWithRetry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`maxRetries`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` delay`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` maxRetries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.docsautomator.co/createDocument\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 429`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`resolve`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resolve`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`delay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` delay`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Rate limit exceeded after retries\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`500-internal-server-error`,children:`500 Internal Server Error`}),`\n`,_jsx(Heading,{level:`3`,id:`problem-6`,children:`Problem`}),`\n`,_jsxs(_components.p,{children:[`The API returns `,_jsx(_components.code,{children:`500 Internal Server Error`}),`, indicating something went wrong on the server side.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-to-do`,children:`What to Do`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Retry the request`}),` after a short delay. Transient errors (Google API timeouts, etc.) are often resolved by retrying.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Check your template`}),` for issues such as very large images, complex formatting, or corrupted elements.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Verify your data`}),` does not contain unexpected characters or excessively long values.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Contact support`}),` if the error persists. Include the request payload (without your API key) and the approximate timestamp.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`debugging-tips`,children:`Debugging Tips`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`When troubleshooting API issues, always check the response body for a detailed error message. DocsAutomator returns structured error responses with specific details about what went wrong.`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use the API playground`}),`: Each endpoint page in the API Reference tab includes an interactive playground where you can test requests directly.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Check Documents`}),`: Failed runs appear under the `,_jsx(_components.strong,{children:`Needs attention`}),` filter on the Documents page in the app, also for runs that the API started. Click a run to see its error message.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Validate your JSON`}),`: Malformed JSON payloads return `,_jsx(_components.code,{children:`400 Bad Request`}),`. Use a JSON validator before sending requests.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`API Introduction`,icon:`code`,href:`/api-reference/introduction`,children:_jsx(_components.p,{children:`API setup, authentication, and code examples`})}),_jsx(Card,{title:`Documents`,icon:`clock-rotate-left`,href:`/features/documents`,children:_jsx(_components.p,{children:`Monitor all document generation attempts`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"API Error Troubleshooting","description":"Diagnose and resolve common API errors when using the DocsAutomator API","icon":"code","href":"/more/troubleshooting-guide/api-error-troubleshooting"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"400 Bad Request","slug":"400-bad-request","depth":2,"children":[{"title":"Problem","slug":"problem","depth":3,"children":[]},{"title":"Common Error Messages","slug":"common-error-messages","depth":3,"children":[]}]},{"title":"401 Unauthorized","slug":"401-unauthorized","depth":2,"children":[{"title":"Problem","slug":"problem-2","depth":3,"children":[]},{"title":"Common Error Messages \u0026 Causes","slug":"common-error-messages-\u0026-causes","depth":3,"children":[]}]},{"title":"402 Payment Required","slug":"402-payment-required","depth":2,"children":[{"title":"Problem","slug":"problem-3","depth":3,"children":[]},{"title":"Solution","slug":"solution","depth":3,"children":[]}]},{"title":"404 Not Found","slug":"404-not-found","depth":2,"children":[{"title":"Problem","slug":"problem-4","depth":3,"children":[]},{"title":"Common Error Messages","slug":"common-error-messages-2","depth":3,"children":[]},{"title":"How to Find Your Automation ID","slug":"how-to-find-your-automation-id","depth":3,"children":[]}]},{"title":"429 Too Many Requests","slug":"429-too-many-requests","depth":2,"children":[{"title":"Problem","slug":"problem-5","depth":3,"children":[]},{"title":"Rate Limits","slug":"rate-limits","depth":3,"children":[]},{"title":"Solution","slug":"solution-2","depth":3,"children":[]}]},{"title":"500 Internal Server Error","slug":"500-internal-server-error","depth":2,"children":[{"title":"Problem","slug":"problem-6","depth":3,"children":[]},{"title":"What to Do","slug":"what-to-do","depth":3,"children":[]}]},{"title":"Debugging Tips","slug":"debugging-tips","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"docsautomator","siteName":"DocsAutomator","title":"API Error Troubleshooting - DocsAutomator","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T15:36:04.929Z","gitLastModified":"2026-11-23T15:35:51.000Z","originalFileLocation":"more/troubleshooting-guide/api-error-troubleshooting.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Diagnose and resolve common API errors when using the DocsAutomator API\">\u003cmeta data-mint-head name=\"application-name\" content=\"DocsAutomator\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API Error Troubleshooting - DocsAutomator\">\u003cmeta data-mint-head property=\"og:description\" content=\"Diagnose and resolve common API errors when using the DocsAutomator API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DocsAutomator Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docsautomator.co/docs/images/og/docs-default.jpg\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"API Error Troubleshooting - DocsAutomator\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Diagnose and resolve common API errors when using the DocsAutomator API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docsautomator.co/docs/images/og/docs-default.jpg\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/docsautomator/rNkJLQINO18QuKfc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DocsAutomator\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4f46e5\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"DocsAutomator documentation\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/more/troubleshooting-guide/api-error-troubleshooting.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docsautomator.co/#organization\",\"name\":\"DocsAutomator\",\"url\":\"https://docsautomator.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/docsautomator/aWJzng63hl4bgVX9/logo/light.svg?fit=max\u0026auto=format\u0026n=aWJzng63hl4bgVX9\u0026q=85\u0026s=a89d4e949fd24be7b244a51939eccb26\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docsautomator.co/docs#website\",\"name\":\"DocsAutomator\",\"url\":\"https://docsautomator.co/docs\",\"publisher\":{\"@id\":\"https://docsautomator.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting#webpage\",\"url\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting\",\"name\":\"API Error Troubleshooting\",\"description\":\"Diagnose and resolve common API errors when using the DocsAutomator API\",\"dateModified\":\"2026-11-23T15:35:51.000Z\",\"isPartOf\":{\"@id\":\"https://docsautomator.co/docs#website\"},\"breadcrumb\":{\"@id\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Resources\",\"item\":\"https://docsautomator.co/docs/more/faq\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting\",\"item\":\"https://docsautomator.co/docs/more/troubleshooting-guide\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API Error Troubleshooting\",\"item\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting#article\",\"headline\":\"API Error Troubleshooting\",\"name\":\"API Error Troubleshooting\",\"description\":\"Diagnose and resolve common API errors when using the DocsAutomator API\",\"url\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting\",\"mainEntityOfPage\":{\"@id\":\"https://docsautomator.co/docs/more/troubleshooting-guide/api-error-troubleshooting#webpage\"},\"image\":\"https://docsautomator.co/docs/images/og/docs-default.jpg\",\"dateModified\":\"2026-11-23T15:35:51.000Z\",\"publisher\":{\"@id\":\"https://docsautomator.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docsautomator.co/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DocsAutomator\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DocsAutomator\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/more/troubleshooting-guide/api-error-troubleshooting.md","siteName":"DocsAutomator","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Overview","icon":"house","href":""},{"title":"How It Works","icon":"gears","href":"/docsautomator-basics/how-it-works"},{"title":"Quickstart Guide","icon":"bolt","href":"/docsautomator-basics/quickstart-guide"},{"group":"Templates Overview","icon":"file-lines","pages":[{"title":"Templates Overview","icon":"files","href":"/docsautomator-basics/templates-overview"},{"title":"Google Doc Template Guide","icon":"google","href":"/docsautomator-basics/google-doc-template-guide"},{"title":"PDF Template Guide","icon":"file-pdf","href":"/docsautomator-basics/pdf-template-guide"},{"title":"Word Template Guide","icon":"file-word","href":"/docsautomator-basics/word-template-guide"}]},{"title":"Placeholder Syntax Reference","icon":"code","href":"/docsautomator-basics/placeholder-syntax-reference"}]},{"group":"Integrations","pages":[{"title":"Claude","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/claude.webp","href":"/integrations-api/claude"},{"title":"ChatGPT","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/chatgpt.webp","href":"/integrations-api/chatgpt"},{"title":"Airtable","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/airtable.png","href":"/integrations-api/airtable"},{"title":"Notion","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/notion.png","href":"/integrations-api/notion"},{"title":"Google Sheets","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/google-sheets.png","href":"/integrations-api/google-sheets"},{"title":"Google Forms","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/google-forms.png","href":"/integrations-api/google-forms"},{"title":"SmartSuite","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/smartsuite.png","href":"/integrations-api/smartsuite"},{"title":"ClickUp","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/clickup.png","href":"/integrations-api/clickup"},{"title":"HubSpot","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/hubspot.svg","href":"/integrations-api/hubspot"},{"title":"Glide","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/glide.png","href":"/integrations-api/glide"},{"title":"Noloco","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/noloco.png","href":"/integrations-api/noloco"},{"title":"Softr","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/softr.png","href":"/integrations-api/softr"},{"title":"Zapier","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/zapier.svg","href":"/integrations-api/zapier"},{"title":"n8n","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/n8n.svg","href":"/integrations-api/n8n"},{"title":"Make","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/make.svg","href":"/integrations-api/make"},{"title":"DocsAutomator API","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/api.png","href":"/integrations-api/docsautomator-api"},{"title":"DocsAutomator MCP","icon":"https://mintlify.s3.us-west-1.amazonaws.com/docsautomator/icons/mcp.svg","href":"/integrations-api/docsautomator-mcp"},{"title":"How AI clients use DocsAutomator","icon":"shield-check","href":"/integrations-api/how-ai-clients-use-docsautomator"}]},{"group":"Features","pages":[{"title":"DocsAutomator AI Agent","icon":"sparkles","href":"/features/docsautomator-ai-agent"},{"group":"Signing \u0026 Acceptance","icon":"signature","pages":[{"title":"Signing \u0026 Acceptance","sidebarTitle":"Overview","icon":"signature","href":"/features/docsautomator-esign"},{"title":"Send a document for signature","sidebarTitle":"Send for signature","icon":"paper-plane","href":"/features/docsautomator-esign/send-for-signature"},{"title":"Get a document accepted with one click","sidebarTitle":"Acceptance","icon":"circle-check","href":"/features/docsautomator-esign/acceptance"},{"title":"Compliance \u0026 Legal Validity","icon":"scale-balanced","href":"/features/docsautomator-esign/compliance-and-legal-validity"},{"title":"Is acceptance legally binding?","icon":"gavel","href":"/features/docsautomator-esign/is-acceptance-legally-binding"},{"title":"eSign API Reference","icon":"code","href":"/features/docsautomator-esign/docsautomator-esign-api-reference"},{"title":"Email Delivery Outcomes","icon":"envelope-circle-check","href":"/features/docsautomator-esign/email-delivery-outcomes"},{"title":"E-Signing Tutorials from Data Sources","icon":"book-open-reader","href":"/features/docsautomator-esign/e-signing-tutorials-from-data-sources"},{"title":"E-Sign Date Format Options","icon":"calendar","href":"/features/docsautomator-esign/e-sign-date-format-options"}]},{"title":"Approvals","icon":"stamp","href":"/features/approvals"},{"title":"E-invoices (ZUGFeRD and XRechnung)","icon":"file-invoice","href":"/features/e-invoices"},{"title":"Swiss QR-bill","icon":"qrcode","href":"/features/swiss-qr-bill"},{"group":"Line Items","icon":"list","pages":[{"title":"Line Items","sidebarTitle":"Overview","icon":"list","href":"/features/line-items"},{"title":"Repeating Sections","icon":"repeat","href":"/features/line-items/repeating-sections"},{"title":"Nested Line Items","icon":"layer-group","href":"/features/line-items/nested-line-items"},{"title":"Line Items Grouping + Calculations","icon":"calculator","href":"/features/line-items/line-items-grouping-+-calculations"},{"title":"Auto Row Numbers","icon":"hashtag","href":"/features/line-items/auto-row-numbers"}]},{"group":"Advanced Placeholder Options","icon":"sliders","pages":[{"title":"Advanced Placeholder Options","sidebarTitle":"Overview","icon":"sliders","href":"/features/advanced-placeholder-options"},{"title":"Conditional Paragraph / Row Deletion","icon":"trash","href":"/features/advanced-placeholder-options/conditional-paragraph-row-deletion"},{"title":"Enable Markdown Formatting","icon":"markdown","href":"/features/advanced-placeholder-options/enable-markdown-formatting"},{"title":"Format Values","icon":"coins","href":"/features/advanced-placeholder-options/format-values"},{"title":"Hidden Values","icon":"eye-slash","href":"/features/advanced-placeholder-options/hidden-values"},{"title":"Show Unique Values Only","icon":"layer-group","href":"/features/advanced-placeholder-options/show-unique-values"},{"title":"Conditional Show / Hide","icon":"eye","href":"/features/advanced-placeholder-options/conditional-show-hide"},{"title":"Conditional Styling","icon":"palette","href":"/features/advanced-placeholder-options/conditional-styling"}]},{"group":"Actions After Document Generation","icon":"wand-magic-sparkles","pages":[{"title":"Actions After Document Generation","sidebarTitle":"Overview","icon":"wand-magic-sparkles","href":"/features/actions-after-document-generation"},{"title":"Saving Google Docs","icon":"file-lines","href":"/features/actions-after-document-generation/saving-google-docs"},{"title":"Save Word Document","icon":"file-word","href":"/features/actions-after-document-generation/save-word-document"},{"title":"Save PDF in Google Drive","icon":"hard-drive","href":"/features/actions-after-document-generation/save-pdfs-in-google-drive"},{"title":"Save PDFs in OneDrive","icon":"cloud","href":"/features/actions-after-document-generation/save-pdfs-in-onedrive"},{"title":"Save PDFs in Dropbox","icon":"dropbox","href":"/features/actions-after-document-generation/save-pdfs-in-dropbox"},{"title":"Send Email","icon":"envelope","href":"/features/actions-after-document-generation/send-email"},{"title":"Merge Existing PDFs","icon":"object-group","href":"/features/actions-after-document-generation/merge-existing-pdfs"},{"title":"Notify Webhook","icon":"webhook","href":"/features/actions-after-document-generation/notify-webhook"},{"title":"Start a Claude or ChatGPT Agent","icon":"robot","href":"/features/actions-after-document-generation/start-an-ai-agent"}]},{"title":"Dynamic Images","icon":"image","href":"/features/dynamic-images"},{"title":"Sections","icon":"square-dashed","href":"/features/sections"},{"title":"Document Previews","icon":"eye","href":"/features/document-previews"},{"title":"Documents","icon":"clock-rotate-left","href":"/features/documents"},{"title":"PDF Expiration / Storage","icon":"clock","href":"/features/pdf-expiration-storage"},{"title":"AI Template Generator","icon":"wand-magic-sparkles","href":"/features/ai-template-generator"},{"title":"AI Field Mapping","icon":"brain","href":"/features/ai-field-mapping"},{"title":"Folder Organization","icon":"folder","href":"/features/folder-organization"},{"title":"Error Notifications","icon":"bell-exclamation","href":"/features/error-notifications"},{"title":"Team Management","icon":"users","href":"/features/team-management"},{"title":"Workspaces","icon":"building","href":"/features/workspaces"},{"title":"Transfer Automations","icon":"share","href":"/features/transfer-automations"}]},{"group":"Use Cases","pages":[{"title":"Generate Invoices from Airtable","icon":"file-invoice-dollar","href":"/use-cases/invoices-from-airtable"},{"title":"Bulk Generate Certificates from Google Sheets","icon":"certificate","href":"/use-cases/bulk-certificates-from-google-sheets"},{"title":"Create Contracts with E-Signatures","icon":"file-signature","href":"/use-cases/contracts-with-esign"}]},{"group":"Account \u0026 Billing","pages":[{"title":"Manage or Cancel Your Subscription","icon":"credit-card","href":"/account-billing/manage-cancel-subscription"},{"title":"Overage Documents","icon":"layer-plus","href":"/account-billing/overage-documents"},{"title":"Invoices \u0026 Receipts","icon":"file-invoice","href":"/account-billing/invoices-and-receipts"},{"title":"Nonprofit \u0026 Education Discount","icon":"heart","href":"/account-billing/nonprofit-education-discount"},{"title":"Refund Policy","icon":"rotate-left","href":"/account-billing/refund-policy"},{"title":"Delete Your Account \u0026 Data","icon":"trash","href":"/account-billing/delete-account-and-data"}]},{"group":"Resources","pages":[{"title":"FAQ","icon":"circle-question","href":"/more/faq"},{"title":"DocsAutomator Reviews","icon":"star","href":"/more/docsautomator-reviews"},{"title":"DocsAutomator Unlimited Fair Use Policy","icon":"scale-balanced","href":"/more/docsautomator-unlimited-fair-use-policy"},{"title":"API keys","icon":"key","href":"/more/finding-your-api-key"},{"title":"Responsible Disclosure","icon":"shield-halved","href":"/more/responsible-disclosure"},{"group":"Troubleshooting","icon":"wrench","pages":[{"title":"Troubleshooting Guide","sidebarTitle":"Overview","icon":"wrench","href":"/more/troubleshooting-guide"},{"title":"Airtable: 120 Seconds Limit on Automation Scripts","icon":"clock","href":"/more/troubleshooting-guide/airtable-120-seconds-limit-on-automation-scripts"},{"title":"Airtable: Attachment URL Issue When Sending Emails","icon":"paperclip","href":"/more/troubleshooting-guide/airtable-attachment-url-issue-when-sending-emails"},{"title":"Airtable: No Record ID Given","icon":"database","href":"/more/troubleshooting-guide/data-source-is-set-as-airtable-and-no-record-id-is-given"},{"title":"Google Shared Drive Template Permissions","icon":"folder","href":"/more/troubleshooting-guide/google-shared-drive-template-permissions"},{"title":"Google Sheets: Common Issues","description":"Resolve common problems with Google Sheets automations in DocsAutomator","icon":"table","href":"/more/troubleshooting-guide/google-sheets-common-issues"},{"title":"API Error Troubleshooting","icon":"code","href":"/more/troubleshooting-guide/api-error-troubleshooting"},{"title":"Template: Common Mistakes","description":"Fix common issues with Google Docs template placeholders and formatting","icon":"file-circle-exclamation","href":"/more/troubleshooting-guide/template-common-mistakes"},{"title":"Email Delivery Issues","icon":"envelope-circle-exclamation","href":"/more/troubleshooting-guide/email-delivery-issues"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"API Error Troubleshooting - DocsAutomator","deploymentId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","buildId":"dpl_3DZuqjnfdjREuPshghHhyiLeMG3U","dynamics":["10e4515597","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-BbWf_M5_.js","dist-5uEodgD_.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","Frame-9igxfQ2B.js","DynamicMarkdown-DYGX_69W.js","zoom-image-lightbox-BwrdYPf2.js","lightbox-handle-r17bVUz3.js"]}