SCRIBETOOLS Api API

Intelligent OCR API with multiple engines and smart routing

GitHub OpenAPI

Operations 105

GET /health Health Check #
GET / Root #
GET /api/v1/providers List Providers #
POST /api/v1/detect-pdf-type Detect Pdf Type #
POST /api/v1/sync/jobs Create Sync Jobs #
POST /api/v1/upload-urls Get Upload Urls #
GET /api/v1/jobs List Jobs #
POST /api/v1/jobs Create Async Job #
POST /api/v1/outcome-jobs Create Outcome Job #
GET /api/v1/outcome-jobs List Outcome Jobs #
GET /api/v1/me Get Account #
GET /api/v1/outcome-jobs/{job_id} Get Outcome Job #
GET /api/v1/outcome-jobs/{job_id}/results List Outcome Job Results #
GET /api/v1/outcome-jobs/{job_id}/results/{result_id}/download Download Outcome Job Result #
GET /api/v1/outcome-jobs/{job_id}/results/{result_id}/content Read Outcome Job Result Content #
POST /api/v1/outcome-jobs/{job_id}/cancel Cancel Outcome Job #
POST /api/v1/jobs/{job_id}/items Add Job Items #
GET /api/v1/jobs/{job_id}/items Get Job Items #
GET /api/v1/jobs/{job_id} Get Job Summary #
PATCH /api/v1/jobs/{job_id} Update Job #
GET /api/v1/jobs/{job_id}/artifacts Get Job Artifacts #
GET /api/v1/jobs/{job_id}/items/{item_id}/source Get Job Item Source #
GET /api/v1/jobs/{job_id}/artifacts/download-all Download All Artifacts #
POST /api/v1/jobs/{job_id}/cancel Cancel Job #
POST /api/v1/webhooks/stripe Stripe Webhook #
GET /api/v1/pricing Get Pricing #
POST /api/v1/checkout/subscription Create Subscription Checkout #
POST /api/v1/checkout/credits Create Credit Checkout #
POST /api/v1/billing/portal Create Billing Portal #
GET /api/v1/user/tier Get User Tier #
GET /api/v1/capabilities Get Capabilities #
POST /api/v1/user/premium-export/consume Consume Premium Export #
POST /api/v1/user/reconcile-entitlements Reconcile User Entitlements #
GET /api/v1/admin/me Me #
GET /api/v1/admin/stuck-summary Stuck Summary #
GET /api/v1/admin/audit Audit Log #
GET /api/v1/admin/jobs List Jobs #
GET /api/v1/admin/jobs/{job_id} Get Job Detail #
POST /api/v1/admin/jobs/outputs/download Download Outputs #
POST /api/v1/admin/jobs/{job_id}/cancel Cancel Job #
POST /api/v1/admin/jobs/{job_id}/fail Fail Job #
POST /api/v1/admin/jobs/{job_id}/replay Replay Job #
POST /api/v1/admin/steps/{step_id}/retry Retry Step #
POST /api/v1/admin/steps/{step_id}/expire-lease Expire Lease #
POST /api/v1/admin/steps/{step_id}/cancel Cancel Step #
POST /api/v1/admin/steps/{step_id}/force-fail Force Fail Step #
POST /api/v1/admin/reaper/run Run Reaper #
GET /api/v1/admin/workers Workers #
GET /api/v1/admin/providers/stats Provider Stats #
PATCH /api/v1/admin/providers/{provider_key} Set Provider Active #
GET /api/v1/admin/emails/overview Lifecycle Overview #
PATCH /api/v1/admin/emails/settings Update Lifecycle Settings #
PATCH /api/v1/admin/emails/templates/{trigger_key} Update Lifecycle Template #
GET /api/v1/admin/users Search Users #
GET /api/v1/admin/users/{user_id} User Detail #
GET /api/v1/admin/users/{user_id}/jobs User Jobs #
POST /api/v1/admin/users/{user_id}/credits Grant Credits #
GET /api/v1/admin/artifacts/{artifact_id}/content Artifact Content #
GET /api/v1/admin/search Global Search #
GET /api/v1/admin/tiers List Tiers #
PATCH /api/v1/admin/users/{user_id}/profile Update User Profile #
POST /api/v1/admin/users/{user_id}/subscription Set Subscription #
PATCH /api/v1/admin/users/{user_id}/subscription Patch Subscription #
POST /api/v1/admin/users/{user_id}/subscription/cancel Cancel Subscription #
POST /api/v1/admin/users/{user_id}/subscription/grant-monthly-credits Grant Monthly Credits #
POST /api/v1/admin/users/{user_id}/subscription/correct-plan Correct Plan #
POST /api/v1/admin/users/{user_id}/reset-monthly-usage Reset Monthly Usage #
POST /api/v1/api-keys Create Api Key #
GET /api/v1/api-keys List Api Keys #
DELETE /api/v1/api-keys/{key_id} Revoke Api Key #
GET /api/v1/outcomes List Outcomes #
GET /api/v1/extraction-templates/predefined List Predefined #
GET /api/v1/extraction-templates List Templates #
POST /api/v1/extraction-templates Create Template #
GET /api/v1/extraction-templates/{template_id} Get Template #
PATCH /api/v1/extraction-templates/{template_id} Update Template #
DELETE /api/v1/extraction-templates/{template_id} Delete Template #
POST /api/v1/extraction-schemas/validate Validate Schema #
POST /api/v1/extraction-schemas/generate Generate Schema #
POST /api/v1/extraction-schemas/simplify Simplify Schema #
GET /api/v1/jobs/{job_id}/artifacts/{artifact_id}/export Export Artifact #
PUT /api/v1/jobs/{job_id}/artifacts/{artifact_id}/draft Update Editable Document Draft #
GET /api/v1/jobs/{job_id}/items/{item_id}/grounding Get Item Grounding #
GET /api/v1/jobs/{job_id}/items/{item_id}/original Get Item Original #
GET /api/v1/jobs/{job_id}/artifacts/{artifact_id}/bilingual-draft Get Bilingual Draft #
PUT /api/v1/jobs/{job_id}/artifacts/{artifact_id}/bilingual-draft Update Bilingual Draft #
POST /api/v1/jobs/{job_id}/segments/{segment_id}/retranslate Retranslate Segment #
POST /api/v1/jobs/{job_id}/glossary/extract Extract Glossary Terms #
POST /api/v1/jobs/{job_id}/chat Translation Chat #
POST /api/v1/jobs/{job_id}/agent Translation Agent #
POST /api/v1/manuscript-pilot/session Browser Session #
GET /api/v1/manuscript-pilot/access Access #
GET /api/v1/manuscript-pilot/workspace Workspace #
POST /api/v1/manuscript-pilot/uploads Upload #
GET /api/v1/manuscript-pilot/pages/{page_id}/image Image #
POST /api/v1/manuscript-pilot/pages/{page_id}/process Process #
PATCH /api/v1/manuscript-pilot/pages/{page_id}/lines/{line_id} Edit #
POST /api/v1/manuscript-pilot/feedback Feedback #
GET /api/v1/manuscript-pilot/export/{format} Export #
DELETE /api/v1/manuscript-pilot/pages/{page_id} Delete Page #
GET /api/v1/jobs/{job_id}/artifacts/{artifact_id}/structured-result Get Structured Result #
PATCH /api/v1/jobs/{job_id}/artifacts/{artifact_id}/structured-result/reviewed Patch Structured Result #
POST /api/v1/jobs/{job_id}/artifacts/{artifact_id}/structured-result/mark-reviewed Mark Structured Result Reviewed #
GET /api/v1/jobs/{job_id}/artifacts/{artifact_id}/structured-result/download Download Structured Result #
GET /api/v1/jobs/{job_id}/structured-results/download-all Download All Structured Results #

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/scribetools-com:scribetools-api-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

scribetools-com-api-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"SCRIBETOOLS","description":"Intelligent OCR API with multiple engines and smart routing","version":"1.0.0"},"paths":{"/health":{"get":{"summary":"Health Check","description":"Health check endpoint","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/":{"get":{"summary":"Root","description":"Root endpoint with API information","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/providers":{"get":{"summary":"List Providers","description":"List all available OCR/VLM providers with their capabilities and pricing.\n\nReturns providers from the database with:\n- provider_key: Unique identifier for API calls\n- display_name: Human-readable name\n- credits_per_page: Cost per page processed\n- supported_step_types: What operations the provider can perform\n- supported_output_formats: What output formats are supported","operationId":"list_providers_api_v1_providers_get","parameters":[{"name":"step_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by supported step type","title":"Step Type"},"description":"Filter by supported step type"},{"name":"provider_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by provider type (vlm or traditional_ocr)","title":"Provider Type"},"description":"Filter by provider type (vlm or traditional_ocr)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/detect-pdf-type":{"post":{"summary":"Detect Pdf Type","description":"Classify a PDF as digital, scanned, or mixed.\n\nUsed by the editable-document Auto mode to pick between Standard\n(Gemini only) and Difficult scan (DocAI + Gemini) without forcing the\nuser to guess. Heuristic, not a model call — runs in ~50ms via\nPyMuPDF text/image extraction. Requires auth so we don't get\ndrive-by classification of arbitrary PDFs.","operationId":"detect_pdf_type_api_v1_detect_pdf_type_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_detect_pdf_type_api_v1_detect_pdf_type_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sync/jobs":{"post":{"summary":"Create Sync Jobs","description":"Synchronous OCR for up to 10 image files, capped at 15MB total.\n\nReturns extracted text per file and a credit summary.","operationId":"create_sync_jobs_api_v1_sync_jobs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_sync_jobs_api_v1_sync_jobs_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncOCRResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/upload-urls":{"post":{"summary":"Get Upload Urls","description":"Generate signed URLs for direct GCS uploads. Session or API key.","operationId":"get_upload_urls_api_v1_upload_urls_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Not allowed for this caller or plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/jobs":{"get":{"summary":"List Jobs","description":"List all jobs for the authenticated user with pagination.","operationId":"list_jobs_api_v1_jobs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Async Job","operationId":"create_async_job_api_v1_jobs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/outcome-jobs":{"post":{"summary":"Create Outcome Job","description":"Create a job by outcome name. The server builds the pipeline.","operationId":"create_outcome_job_api_v1_outcome_jobs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOutcomeJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeJobCreated"}}}},"200":{"description":"Replay of an earlier request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeJobCreated"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Insufficient credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Not allowed for this caller or plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found (or not yours)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Outcome Jobs","description":"Your jobs, newest first.","operationId":"list_outcome_jobs_api_v1_outcome_jobs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeJobList"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/me":{"get":{"summary":"Get Account","description":"Who this credential belongs to, its plan and pages (plan 017).\n\nIntegrations use it to test a connection and label it.","operationId":"get_account_api_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/outcome-jobs/{job_id}":{"get":{"summary":"Get Outcome Job","description":"Compact status. While not terminal, Retry-After says when to poll again.","operationId":"get_outcome_job_api_v1_outcome_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeJobStatus"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found (or not yours)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/outcome-jobs/{job_id}/results":{"get":{"summary":"List Outcome Job Results","description":"One result per completed file. Listing never renders or charges.","operationId":"list_outcome_job_results_api_v1_outcome_jobs__job_id__results_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeJobResults"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found (or not yours)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/outcome-jobs/{job_id}/results/{result_id}/download":{"get":{"summary":"Download Outcome Job Result","description":"A short-lived signed URL for one result.\n\nDOCX/XLSX/CSV are rendered on the first download and reused after that;\non plans with a free-export allowance the first download of each such\nresult uses one export.","operationId":"download_outcome_job_result_api_v1_outcome_jobs__job_id__results__result_id__download_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"result_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Result Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultDownload"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Insufficient credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found (or not yours)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/outcome-jobs/{job_id}/results/{result_id}/content":{"get":{"summary":"Read Outcome Job Result Content","description":"A TXT or JSON result's content, up to 1 MiB (plan 017).\n\nFor automation steps that map extracted text or fields directly. Other\nformats and larger results are download-only.","operationId":"read_outcome_job_result_content_api_v1_outcome_jobs__job_id__results__result_id__content_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"result_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Result Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultContent"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found (or not yours)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Too large to return inline","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/outcome-jobs/{job_id}/cancel":{"post":{"summary":"Cancel Outcome Job","description":"Cancel a running job. Completed steps' output stays and is charged;\nunused holds are released. Cancelling a finished job changes nothing.","operationId":"cancel_outcome_job_api_v1_outcome_jobs__job_id__cancel_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeJobStatus"}}}},"401":{"description":"Missing, invalid, or revoked credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found (or not yours)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/jobs/{job_id}/items":{"post":{"summary":"Add Job Items","operationId":"add_job_items_api_v1_jobs__job_id__items_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddJobItemsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Job Items","operationId":"get_job_items_api_v1_jobs__job_id__items_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}":{"get":{"summary":"Get Job Summary","operationId":"get_job_summary_api_v1_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Job","description":"Update editable fields on a job (currently: name).","operationId":"update_job_api_v1_jobs__job_id__patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/artifacts":{"get":{"summary":"Get Job Artifacts","operationId":"get_job_artifacts_api_v1_jobs__job_id__artifacts_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/items/{item_id}/source":{"get":{"summary":"Get Job Item Source","description":"Return a short-lived signed URL for a job item's source upload.\n\nUsed by the editable-document editor to show the original PDF/image\nalongside the structured artifact. Source URIs aren't exposed by the\nplain `/items` listing because most callers don't need them and\nsigning per-item adds latency.","operationId":"get_job_item_source_api_v1_jobs__job_id__items__item_id__source_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/artifacts/download-all":{"get":{"summary":"Download All Artifacts","description":"Download final outputs, rendering editable documents as Word files.","operationId":"download_all_artifacts_api_v1_jobs__job_id__artifacts_download_all_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/cancel":{"post":{"summary":"Cancel Job","operationId":"cancel_job_api_v1_jobs__job_id__cancel_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/stripe":{"post":{"summary":"Stripe Webhook","description":"Handle Stripe webhook events.\n\nEvents handled:\n- checkout.session.completed: Subscription or credit purchase completed\n- customer.subscription.created/updated/deleted: Subscription lifecycle\n- invoice.paid: Monthly subscription renewal (grants credits)\n- invoice.payment_failed: Payment failure notification","operationId":"stripe_webhook_api_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/pricing":{"get":{"summary":"Get Pricing","description":"Public price list for the visitor's region (no auth).","operationId":"get_pricing_api_v1_pricing_get","parameters":[{"name":"x-scribetools-country","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Scribetools-Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/checkout/subscription":{"post":{"summary":"Create Subscription Checkout","description":"Create a Stripe checkout session for subscription.","operationId":"create_subscription_checkout_api_v1_checkout_subscription_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-scribetools-country","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Scribetools-Country"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_subscription_checkout_api_v1_checkout_subscription_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/checkout/credits":{"post":{"summary":"Create Credit Checkout","description":"Create a Stripe checkout session for one-time credit purchase.","operationId":"create_credit_checkout_api_v1_checkout_credits_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-scribetools-country","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Scribetools-Country"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_credit_checkout_api_v1_checkout_credits_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/portal":{"post":{"summary":"Create Billing Portal","description":"Create a Stripe customer portal session for subscription management.","operationId":"create_billing_portal_api_v1_billing_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/tier":{"get":{"summary":"Get User Tier","description":"Get current user's subscription tier and limits.","operationId":"get_user_tier_api_v1_user_tier_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capabilities":{"get":{"summary":"Get Capabilities","operationId":"get_capabilities_api_v1_capabilities_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/premium-export/consume":{"post":{"summary":"Consume Premium Export","description":"Consume one premium export allowance (client-side DOCX / table copy).","operationId":"consume_premium_export_api_v1_user_premium_export_consume_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/user/reconcile-entitlements":{"post":{"summary":"Reconcile User Entitlements","description":"Idempotently migrate first-login entitlements for priority users.","operationId":"reconcile_user_entitlements_api_v1_user_reconcile_entitlements_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/me":{"get":{"tags":["admin"],"summary":"Me","description":"Bootstrap endpoint the frontend calls to confirm admin access.","operationId":"me_api_v1_admin_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/stuck-summary":{"get":{"tags":["admin"],"summary":"Stuck Summary","operationId":"stuck_summary_api_v1_admin_stuck_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/audit":{"get":{"tags":["admin"],"summary":"Audit Log","operationId":"audit_log_api_v1_admin_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/jobs":{"get":{"tags":["admin"],"summary":"List Jobs","operationId":"list_jobs_api_v1_admin_jobs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated statuses","title":"Status"},"description":"Comma-separated statuses"},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated providers","title":"Provider"},"description":"Comma-separated providers"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"has_stale_lease","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Has Stale Lease"}},{"name":"has_failed_step","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Has Failed Step"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created Before"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"in

# --- truncated at 32 KB (122 KB total) ---
# Full source: https://artifacts.apis.io/scribetools-com/openapi/_original/scribetools-com-api-openapi.json