Skip to main content
Every operation takes one argument object. The object has up to five keys, and TypeScript requires only the ones the operation actually uses. Operations with no required input accept no argument at all.

Path and body together

An operation with both takes them as separate keys of one object:
Assignment is repeatable. Send the same request again to get the same result.

Headers

Idempotency-Key is the only optional header on the public contract, and it applies only to note creation.
Reuse the same key with the same body to retry safely. Reusing the key with a different body returns 409.

Per-request controls

The request key overrides the client defaults for one call:
timeoutMs defaults to the client timeout of 30 seconds. Set it to 0 to disable the timeout for one call. Aborting through signal rejects with the signal’s reason and does not retry.

Custom fetch

Pass your own fetch for tests, proxies, or instrumentation.
You can also set headers on the client to add a header to every request, such as a service name for your own tracing.

Types

The SDK derives its types from the contract, so you can name the exact input or output of any operation without importing a hand-written interface.
Named model types are also exported for the shapes you pass around your own code.
Import from the package entrypoint only. Internal paths such as @reconifyhq/sdk/dist/core/transport.js are not part of the supported interface and can change in a patch release.

Next

Read collections page by page in Pagination.