Installation
Package Manager
npm install @spaceinvoices/embed-sdk
# or
yarn add @spaceinvoices/embed-sdk
# or
pnpm add @spaceinvoices/embed-sdkCDN (Script Tag)
For quick integration without a build step:
Requirements
- Entity API key (
ek_live_*orek_sandbox_*) - Modern browser (Chrome 80+, Firefox 75+, Safari 13.1+)
Getting an Entity API Key
Entity API keys are scoped to a single entity (business). After signup, create the entity you want to embed first, then generate its key in the Space Invoices app:
- Go to Settings → API Keys
- Click Create Entity Key
- Copy the key starting with
ek_live_orek_sandbox_
Next Steps
Continue to Quick Start to embed your first view.