Skip to main content
@reconifyhq/sdk is a server-side client for Node.js 18 or newer, or any runtime with a standard fetch. It needs a write or admin key, which Authentication covers.
Reconify has no sandbox or test mode. The event you send below becomes immutable evidence in your real organization, and the public API deletes nothing.

Install

The package installs from npm:
npm

Configure a client

A client holds the key and the base URL:
The client reads RECONIFY_API_KEY and RECONIFY_API_URL when you omit apiKey and baseUrl. The default base URL is https://api.reconifyhq.com, and the client appends /v2 for you. A base URL that already ends in /v2 works too.
The constructor throws a TypeError when the key is missing or does not start with rk_. This happens before any network call, so a misconfigured deployment fails at startup rather than at the first event.
Store the key in a secret manager. Never commit it, log it, or send it to a browser. The SDK is a server-side client.

Send one event

Request fields use the wire format rather than camelCase, so an event carries occurred_at, entity_id, and type. amount is a decimal string such as "150.00", and a number fails type checking before it reaches the API.
Each result is accepted, duplicate, or rejected, and its index matches the position of the event you sent. accepted means Reconify stored the event, not that the monitored operation is complete.

Read the event back

One field name changes direction: you send type, and an event read returns event_type.

Next

Build batches, handle every item result, and retry safely in Send events with TypeScript.