@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.
Install
The package installs from npm:npm
Configure a client
A client holds the key and the base URL: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.
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 carriesoccurred_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 sendtype, and an event read returns event_type.