Server SDK

A TypeScript library for server-side integrations: submit files and poll results with your API key.
The server SDK wraps the same endpoints with typed helpers, so your API key never leaves the server. The sections below describe its scope at a high level. Exact names and signatures come with the package.

Installation

A TypeScript package with type definitions included, for Node.js services and other server runtimes. The result types are the same shapes documented under API Reference, so a verdict your code reads matches the reference field for field.

Initialization

Created with an API key scoped to one application, read from your own configuration or secret store. The key travels as a bearer token on every call, exactly as described in Authentication.

What it covers

One typed call per public operation, plus the polling most integrations write by hand:
  • Submit a file for verification and receive the verdict, matching Assess.
  • Wait for a result without writing a poll loop: the helper polls Get job until the status leaves processing, then returns the finished job.
  • Page through previous submissions, matching List jobs.
  • Reuse an idempotency key on retries, so a repeated submission returns the existing job instead of creating a duplicate.

Errors

Failures arrive as typed errors carrying the same codes the REST API returns, so a caller can branch on a code instead of matching text. Transient conditions are separable from permanent ones: rate_limited and service_unavailable are worth retrying, while unsupported_format and invalid_request are not. Every code is listed under Error codes, and the limits behind rate_limited under Rate limits.
Pixel Systems - Server SDK