Socket
Book a DemoInstallSign in
Socket

@epilot/document-client

Package Overview
Dependencies
Maintainers
43
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epilot/document-client

API Client for epilot document API

latest
npmnpm
Version
0.18.1
Version published
Maintainers
43
Created
Source

@epilot/document-client

API Client for epilot Document API.

Uses openapi-client-axios

Getting Started

Install the package:

npm install --save-dev @epilot/document-client

Import the package:

import { getClient } from '@epilot/document-client';

Use the client:

// get typed client
const client = await getClient();

// call an operation
const res = await client.generateDocument(null, {});

BaseURL & Authorization

To pass an authorization header and set up the API url, you can use axios defaults:

const client = getClient();
client.defaults.baseURL = config.API_URL;
client.defaults.headers['authorization'] = `Bearer ${token}`;

API Docs:

https://docs.api.epilot.io/document

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts