Skip to main content
Use DocRaptor through Corsair: one client, typed API calls. Sign up at https://docraptor.com/signup and read the API key from your account dashboard. The key is the HTTP Basic username with an empty password, and the plugin builds that header for you. DocRaptor’s public test key YOUR_API_KEY_HERE makes test documents too. Things to know before you send:
  • Test mode is the default. The plugin sends test: true unless you set test: false, so documents are not charged against the plan, but PDFs carry a watermark and Excel output is cut to 20 rows. Set test: false only when you mean to spend quota. Every create is marked destructive, so the permission check runs before it.
  • Synchronous or asynchronous. documents.create waits for the conversion (up to 60 seconds) and returns the file itself: base64 under the inline limit, or a file id when the host keeps files. documents.createAsync queues a conversion and returns a status_id; documents.status reads it back with queued, working, completed or failed, and documents.download fetches the finished file by its download_id.
  • Download URLs allow few fetches. A non-hosted download_url can be fetched only a few times (as few as once, depending on the account’s data retention setting) and disappears when retention expires. Download and store the file yourself.
  • Hosted documents are a paid add-on. documents.createHosted and documents.createHostedAsync put the finished document on a public unbranded URL that is billed per download. The account’s retention setting does not apply to them: a hosted URL stays up until hosted_download_limit fetches are used, hosted_expires_at passes, or documents.expire removes it. Hosted test documents allow five downloads and expire after one day.
  • Expiring is permanent. documents.expire removes a hosted document immediately and cannot be undone.
  • The throttle is a 403, not a 429. More than 30 simultaneous generation requests are refused with a 403 whose message names simultaneous requests; the plugin retries that once on reads. Other 403s mean a missing permission or a denied listing and are never retried. Errors are core ApiErrors whose body holds DocRaptor’s XML or JSON error text; describeDocRaptorErrorBody reads it.
  • Listing needs a real key. The public test key is refused documents.list with a 403, so its row fields are unverified and pass through as sent.
  • Webhooks. DocRaptor’s callback_url posts completion notices to your own endpoint. The callback is not signed, so the plugin does not receive it as a webhook; poll documents.status instead.
What you get:
  • 9 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

Read where a document stands
Expire a hosted document
See the full list on the API page.

What’s next

API reference

Every docraptor.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.