Developers & SDK
Partner previewThe partner API and JavaScript SDK for embedding Exenra
Your backend requests a short-lived session for one client business and one employee. Your web app hands that session to the Exenra SDK, which mounts the inbox where you want it. Public reference docs are not published yet, so developer access comes through the partner programme.
// Your backend (Node.js shown). Names are illustrative.
const exenra = new PartnerClient(process.env.EXENRA_PARTNER_KEY);
app.post("/inbox-session", async (req, res) => {
const session = await exenra.sessions.create({
tenant: req.user.clientAccountId, // one client business
employee: { id: req.user.id, role: req.user.role },
});
res.json({ token: session.token }); // short-lived, scoped
});
// Your web app. The partner key never reaches the browser.
const res = await fetch("/inbox-session", { method: "POST" });
const { token } = await res.json();
ExenraEmbedded.mount("#customer-inbox", { token });Illustrative only. Method and package names are placeholders, not a published API. The reference docs are shared with partners during onboarding.
Session flow
How an embedded session is created
The partner key never leaves your server. The browser only holds a short-lived token scoped to one tenant and one employee, and the SDK uses it to load that tenant's inbox.
Responsibilities
What your team builds, and what Exenra runs
A clear line between your code and ours keeps the integration small and the responsibilities obvious.
Your team builds
A thin layer around your existing product.
- A tenant mapping between each client account and an Exenra tenant
- A session endpoint on your backend that calls the partner API
- The container in your UI where the SDK mounts the inbox
- A feed of business context, such as orders, invoices or bookings
- The rules for which employees get access, and with which role
Exenra runs
The messaging layer behind the inbox.
- Channel connections through each provider's official onboarding
- Receiving provider events and storing conversations per tenant
- The inbox view, composer, notes and assignment
- AI agents with handoff to a person
- Usage reporting per tenant, and signed webhooks (rolling out)
API areas
API areas and their status
The partner API is split into these areas. Calls that touch client data are scoped to a single tenant.
| Area | What it covers | Status |
|---|---|---|
| Authentication | Server-side partner key for calls from your backend | Partner preview |
| Tenants | Partner accounts and the client businesses delegated to them | Partner preview |
| Embedded sessions | Short-lived tokens for one tenant, one employee and their permissions | Partner preview |
| JavaScript SDK | Mounts the embedded inbox, with TypeScript definitions and a cross-origin handshake | Partner preview |
| Channels | The channels each tenant has authorised | Partner preview |
| Conversations | Conversations and messages for a tenant | Partner preview |
| Contacts | The people each client business talks to | Partner preview |
| Business context | Contact, order, invoice, booking, deal, ticket and inventory context contracts | Partner preview |
| Usage | Activity per tenant | Partner preview |
| Role restrictions | Limits on what each employee can do in the inbox | Partner preview |
| Webhooks | Signed events to your endpoint. The delivery worker and retries are being validated | Rolling out |
Security model
A security model built around the partner key and the tenant
Every request is tied either to your partner account, from your server, or to one tenant and one employee, through a session. Nothing in the browser can act at partner level.
- Partner key, server-side only. Store it like any production secret. It authenticates your backend and never ships in a browser or app bundle.
- Short-lived session tokens. Issued per tenant and employee. When one expires, your backend requests another.
- Tenant scoping. Each session and each scoped API call is bound to one client business.
- Role restrictions. The permissions you pass decide what the employee can do in the inbox.
- Cross-origin handshake. The SDK uses a handshake between your page and the embedded inbox before it loads.
- Signed webhooks, rolling out. Verify each event's signature before acting on it. Delivery and retries are still being validated.
Getting access
How developer access works
Public reference documentation is not published yet. Until it is, the docs, the SDK and a test setup are shared with partners.
Apply to the partner programme
Tell us what your software does and where the inbox would live in it.
Scoping call
Our team reviews your UI, your tenant model and the context you want to show.
Partner account and test setup
You receive partner credentials and a test setup during onboarding.
Docs and build support
Your engineers get the reference docs and SDK, with technical support during the build.
Developer questions
Where are the API reference docs?
They are not public yet. The reference docs and SDK are shared with software partners during onboarding. Apply to the partner programme to get access.
Can we call the partner API from the browser?
No. The partner key belongs on your server. Your backend requests a short-lived session and passes only that token to the browser, where the SDK uses it to mount the inbox.
Which languages and frameworks are supported?
The partner API is called from your backend, so the server language is your choice. The SDK is JavaScript with TypeScript definitions for your web front end. Framework-specific questions are covered during scoping.
Is there a sandbox?
Partners get a test setup during onboarding, so your engineers can build and test the integration before client businesses use it.
Are webhooks available?
Webhooks are rolling out. Event signing and the outbox schema are in place, while the delivery worker and retry behaviour are still being validated. See the planned events.
Can we use the API without embedding the inbox?
API access is granted to software partners and to enterprise projects we scope with you. To connect Exenra to your own business systems, ask us about a custom integration.
Related pages
- Exenra EmbeddedThe offer for software vendors
- Embedded Unified InboxWhat your clients' staff see
- APIs & WebhooksAPI access and planned events
- Software Partner ProgrammeHow developer access is granted
- Integration BuilderTrigger and action flows, in development
- Custom softwareScoped work for in-house systems