Developers & SDK

Partner preview

The 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.

JavaScript, illustrative pattern
// 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.

Illustrative preview
Illustrative sequence. Endpoints and token format are in the partner reference docs.

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.

AreaWhat it coversStatus
AuthenticationServer-side partner key for calls from your backendPartner preview
TenantsPartner accounts and the client businesses delegated to themPartner preview
Embedded sessionsShort-lived tokens for one tenant, one employee and their permissionsPartner preview
JavaScript SDKMounts the embedded inbox, with TypeScript definitions and a cross-origin handshakePartner preview
ChannelsThe channels each tenant has authorisedPartner preview
ConversationsConversations and messages for a tenantPartner preview
ContactsThe people each client business talks toPartner preview
Business contextContact, order, invoice, booking, deal, ticket and inventory context contractsPartner preview
UsageActivity per tenantPartner preview
Role restrictionsLimits on what each employee can do in the inboxPartner preview
WebhooksSigned events to your endpoint. The delivery worker and retries are being validatedRolling 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.
Illustrative preview
Illustrative session scope with sample values.

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.

  1. Apply to the partner programme

    Tell us what your software does and where the inbox would live in it.

  2. Scoping call

    Our team reviews your UI, your tenant model and the context you want to show.

  3. Partner account and test setup

    You receive partner credentials and a test setup during onboarding.

  4. 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.

Get your engineers into the partner preview

Tell us about your stack and where the inbox would live. Partners receive the reference docs, the SDK and a test setup during onboarding.