API Reference

SDK Reference

JavaScript and TypeScript SDK documentation

Installation

Install the Inpera SDK using npm:

npm install @inpera/sdk

Basic Usage

Initialize and use the SDK:

import { Inpera } from '@inpera/sdk';

const inpera = new Inpera({
  apiKey: process.env.INPERA_API_KEY,
  projectId: process.env.INPERA_PROJECT_ID
});

// Create a snapshot
const snapshot = await inpera.snapshots.create({
  url: 'https://example.com',
  name: 'Homepage'
});

// Create an annotation
await inpera.annotations.create({
  snapshotId: snapshot.id,
  x: 100,
  y: 200,
  comment: 'Fix this button'
});