Skip to main content
The @datasite/api-client package provides a typed TypeScript client for the Datasite API. Install it from npm before using the examples on this page.

Create a client

Call operations

Generated input types determine the accepted fields. The client replaces and URL-encodes path parameters, adds non-null query parameters, sends bearer authorization when configured, serializes a body as JSON, parses successful JSON responses, and applies the configured timeout.

Options

Types

Errors

DatasiteApiError exposes status, code, body, isNotFound, and isUnauthorized.