SDK
The official TypeScript SDK is generated and tested against the public OpenAPI contract.
Install
npm install @instaclaim/sdk
Authentication
Pass an API key or OAuth access-token provider when constructing the client.
import { InstaClaimClient } from '@instaclaim/sdk';
export const instaClaim = new InstaClaimClient({
apiKey: process.env.INSTACLAIM_API_KEY,
});
Built-in behavior
- Typed request and response models from the public contract.
- Typed
InstaClaimApiErrorfor non-2xx responses. - Pagination helpers and examples for list endpoints.
- Idempotency-key support on write calls.
- Webhook signature verification helper.
Drift protection
The SDK operation mapping is checked against OpenAPI so public SDK methods cannot silently drift from public routes or point at internal surfaces.