Changelog

All changes to the Partner API, each with the version it affects.

v1

The first version of the Partner API, for analyzing uploaded documents.

Operations

  • Upload and delete a file, and download its preview PDF.
  • Create, read, cancel and delete an analysis.
  • Read the current catalog.

Analyses

  • An analysis classifies every file into builtin document types.
  • It supports fields, checks, requirements for each document, and collection requirements. A collection requirement counts documents or months across the file set.
  • Builtin fields such as an address, a name or a list of existing loans return structured JSON values. Each structured value has its own value type.
  • Citations locate evidence as polygons on each displayed page it covers, or as byte spans of the original UTF-8 text. A passage across several pages is one citation.
  • Creating an analysis returns 200 once it has finished and 202 while it is still pending.
  • Responses carry a fingerprint of the catalog.

Requests and errors

  • Errors are RFC 9457 problems.
  • Create operations take an Idempotency-Key. A retry with the same key creates no duplicate.

Keys and integrations

  • You create API keys yourself in the AirCredit account settings, for a personal workspace or an organization.
  • Every key belongs to an integration. Each integration keeps its files, analyses, idempotency records and webhooks separate.
  • Free test keys (sk_test_) validate requests like live keys (sk_live_) and return deterministic sample results. Every resource and event states its mode.
  • Live analyses are paid from a prepaid balance. A request that the balance does not cover returns 402 insufficient_balance.
  • An analysis costs a base price plus a price per page, field and check. Pages are counted when a file is uploaded, a text file as one page per 3,000 characters, and a document with more than 500 pages is refused at upload.
  • Deleting an integration revokes its keys and deletes its content.

Webhooks

  • Webhooks follow Standard Webhooks and report when an analysis has finished.
  • Each integration sets its own test and live webhook URL in the settings and rotates its signing secret there.

Retention

  • Files and analyses expire automatically.
  • Deleted or expired content is cleaned up in the background.

On this page