Skip to main content

TypeScript SDK

The Examplary API SDK for TypeScript provides a type-safe client for the Examplary API. It includes methods for all API endpoints, as well as type definitions for request and response data.

Installation

You can install the SDK using npm or yarn:

yarn add @examplary/sdk

Usage

To use the SDK, create an instance of the client and provide your API key or OAuth access token:

import { createExamplaryClient } from "@examplary/sdk";

const client = createExamplaryClient({
apiKey: "my-api-key-or-oauth-access-token",
});

const { data } = await client.questionTypes.listPublic();