SDK
[GitHub]
tip
Every epilot API ships with a typed TypeScript client — full types and IntelliSense out of the box.
Getting Started​
Install the client for the API you need:
- npm
- yarn
- pnpm
Install
npm install --save @epilot/entity-client
Install
yarn add @epilot/entity-client
Install
pnpm add @epilot/entity-client
Authorize with an Access Token and call an API:
Create a contact entity
import { getClient } from '@epilot/entity-client';
const entityClient = getClient();
entityClient.defaults.headers['Authorization'] = 'Bearer <your-access-token>';
await entityClient.createEntity('contact', {
first_name: 'Example',
last_name: 'Contact',
});
Available Clients​
All clients are published on npm under the @epilot scope and listed on GitHub: epilot-dev/sdk-js/clients