API documentation

Tutorial-style reference for the Omnicap Developer API. All requests are server-side; use API keys from the dashboard.

1. Authentication

Send Authorization: Bearer omni_live_… on every request. Browser origins are rejected — call the API from your backend only.

2. Security

  • Never call the API from a browser or mobile app with a live key. Requests that include an Origin header are rejected.
  • Store keys in a secret manager or server environment variable. Rotate and revoke compromised keys from the developer dashboard.
  • Optional Idempotency-Key header on POST requests deduplicates billing for retries within the same calendar month.
  • Uploaded files and job exports are kept for a limited TTL on the server. Source files are removed when a job finishes; downloads typically up to 24 hours. Full detail: https://omnicap.app/trust. Do not send data you are not allowed to process.
  • Signing URLs and envelope IDs are secrets. Anyone with the link can view the unsigned PDF until it expires. The sender chooses that deadline, up to 30 days.

Errors return JSON: statusCode, message, code.

3. Base URL

https://api.omnicap.app/v1

Local sandbox: http://localhost:4000/v1

4. Limits & billing

  • 100 successful calls included per month
  • 60 requests per minute per key
  • Max upload 20 MB per file
  • Overage $0.01 USD per call with billing enabled
  • Send optional Idempotency-Key on POST to avoid double billing on retries. PDF to Excel bills when the job finishes; sign-send bills when the envelope is sent; other tools bill on a successful response.

5. Errors

CodeHTTPMeaning
INVALID_API_KEY401Missing, revoked, or invalid API key.
RATE_LIMITED429Too many requests for this key in the current window.
API_QUOTA_EXCEEDED403Monthly included calls used; add billing for overage.
BILLING_REQUIRED403Subscribe to the Developer plan to continue past the free tier.
FILE_TOO_LARGE400Upload exceeds the per-file size limit.
BATCH_LIMIT403Too many files in one request.
CREDITS_EXHAUSTED403Not used on the Developer API (page credits are web-only).

6. Async convert jobs

PDF to Excel and Credit card to Excel return a job handle. Poll GET /v1/jobs/{id} until ready, then download.

  • POST /v1/jobs/from-url — JSON body { "url", "password?", "filename?" } fetches an HTTPS PDF into a convert job (no multipart upload).
  • POST /v1/jobs/from-drive — JSON body { "accessToken", "fileId", "password?", "filename?" } pulls a Google Drive file with the caller's OAuth token.
  • GET /v1/jobs/{id}/download?format=xlsx|csv|ofx|qbo|qfx — spreadsheets always; OFX/QBO/QFX when transactions were extracted (bank id and masked account applied when detected).
  • Job status may include validationPassed for ledger tie-out plus bank/period metadata used by the statement studio UI.

curl — from-url

curl -X POST "https://api.omnicap.app/v1/jobs/from-url" \
  -H "Authorization: Bearer $OMNICAP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/statement.pdf"}'

Node SDK

import OmnicapClient from "@omnicap/sdk";

const client = new OmnicapClient({ apiKey: process.env.OMNICAP_API_KEY! });
const job = await client.createJobFromUrl("https://example.com/statement.pdf");
// or: await client.createJobFromDrive(accessToken, fileId);

7. Tools

Each live product tool has a dedicated endpoint page with request fields and copy-paste examples. OpenAPI also lists job helpers under /v1/jobs/*.