epilot SDK
tip
Every epilot API ships with a typed TypeScript client. Full types and IntelliSense out of the box.
info
Not using TypeScript? All epilot APIs are published with standard OpenAPI definitions. You can generate a typed client in any language using tools like openapi-generator, Speakeasy, or Kiota.
Install​
- npm
- yarn
- pnpm
npm i @epilot/sdk axios openapi-client-axios
yarn add @epilot/sdk axios openapi-client-axios
pnpm add @epilot/sdk axios openapi-client-axios
@epilot/sdk is the official TypeScript SDK for the epilot platform. One package, 30+ API clients, full type safety.
- Typed operations: every endpoint has typed params and responses, generated from OpenAPI specs
- Tree-shakeable: import only the APIs you use; unused clients never touch your bundle
- Lazy-loaded: API specs are loaded on first use, not at import time
- Batteries included: automatic retries, large response handling, and auth management out of the box
- Just an axios client: every client is a standard axios instance with typed methods from openapi-client-axios. Interceptors, defaults, and all other axios features work as expected.
Quick start​
import { epilot } from '@epilot/sdk'
// Authorize once, all clients pick up the token
epilot.authorize(() => '<my-bearer-token>')
// Call any API with full type safety and auto-complete
const { data: entity } = await epilot.entity.createEntity(
{ slug: 'contact' },
{ first_name: 'John', last_name: 'Doe' },
)
const { data: file } = await epilot.file.getFile({ id: 'file-123' })
const { data: executions } = await epilot.workflow.getExecutions()
Each operation is forwarded to a lazy singleton. The spec is loaded and the client initialized on first use, then cached.
Only import what you need​
For smaller bundles, use tree-shakeable subpath imports:
import { entity, authorize } from '@epilot/sdk/entity'
authorize(entity, () => '<my-bearer-token>')
const { data } = await entity.getEntity({ slug: 'contact', id: '123' })
See Client Usage for all import patterns.
Available APIs​
| API | Import | Reference |
|---|---|---|
epilot.accessToken | @epilot/sdk/access-token | SDK · API |
epilot.addressSuggestions | @epilot/sdk/address-suggestions | SDK · API |
epilot.app | @epilot/sdk/app | SDK · API |
epilot.auditLogs | @epilot/sdk/audit-logs | SDK · API |
epilot.automation | @epilot/sdk/automation | SDK · API |
epilot.billing | @epilot/sdk/billing | SDK · API |
epilot.blueprintManifest | @epilot/sdk/blueprint-manifest | SDK · API |
epilot.consent | @epilot/sdk/consent | SDK · API |
epilot.customerPortal | @epilot/sdk/customer-portal | SDK · API |
epilot.dashboard | @epilot/sdk/dashboard | SDK · API |
epilot.design | @epilot/sdk/design | SDK · API |
epilot.document | @epilot/sdk/document | SDK · API |
epilot.emailSettings | @epilot/sdk/email-settings | SDK · API |
epilot.emailTemplate | @epilot/sdk/email-template | SDK · API |
epilot.entity | @epilot/sdk/entity | SDK · API |
epilot.entityMapping | @epilot/sdk/entity-mapping | SDK · API |
epilot.environments | @epilot/sdk/environments | SDK · API |
epilot.erpIntegration | @epilot/sdk/erp-integration | SDK · API |
epilot.eventCatalog | @epilot/sdk/event-catalog | SDK · API |
epilot.file | @epilot/sdk/file | SDK · API |
epilot.journey | @epilot/sdk/journey | SDK · API |
epilot.kanban | @epilot/sdk/kanban | SDK · API |
epilot.message | @epilot/sdk/message | SDK · API |
epilot.metering | @epilot/sdk/metering | SDK · API |
epilot.notes | @epilot/sdk/notes | SDK · API |
epilot.notification | @epilot/sdk/notification | SDK · API |
epilot.organization | @epilot/sdk/organization | SDK · API |
epilot.partnerDirectory | @epilot/sdk/partner-directory | SDK · API |
epilot.permissions | @epilot/sdk/permissions | SDK · API |
epilot.pricing | @epilot/sdk/pricing | SDK · API |
epilot.purpose | @epilot/sdk/purpose | SDK · API |
epilot.submission | @epilot/sdk/submission | SDK · API |
epilot.targeting | @epilot/sdk/targeting | SDK · API |
epilot.templateVariables | @epilot/sdk/template-variables | SDK · API |
epilot.user | @epilot/sdk/user | SDK · API |
epilot.validationRules | @epilot/sdk/validation-rules | SDK · API |
epilot.webhooks | @epilot/sdk/webhooks | SDK · API |
epilot.workflow | @epilot/sdk/workflow | SDK · API |
epilot.workflowDefinition | @epilot/sdk/workflow-definition | SDK · API |