Skip to Content
Integrate AssetEmbedded

Embedded Overview

What is Embedded?

In the Embedded model, accounting lives inside your product. Your Tenant platform uses the Asset API for the accounting logic and Asset's UI components for the screens, so your customers never leave your app.

Embedded is made of two parts, and you can use either one or both:

PartWhat it gives youPackage
APIEvery accounting feature, available to your backend or frontend. Use it to build any experience you want.None, call the API directly
UI componentsReady-made screens (dashboards, reports, transactions, bank connections) that fetch their own data and handle loading, error and empty states.@get-asset/react, built on @get-asset/sdk
  • @get-asset/sdk contains the headless primitives and API interactions, with no styling.
  • @get-asset/react uses those primitives to provide styled components.

Most integrations use @get-asset/react and reach for the headless components only where they need full control over the markup. See Components for the full catalog.

How it fits together

Your backend holds your Asset credentials and hands short-lived access tokens to your frontend. The credentials never reach the browser.

  1. Your backend requests a token. It calls the Asset API with your client_id and client_secret, and asks for a token for one Business with only the scopes it needs.
  2. Your backend gives the token to your app. Your frontend passes it to the AssetProvider.
  3. Components load their own data. Every Asset component inside the AssetProvider uses the token to fetch and render what it needs. You don't write any data fetching.

If you only use the API, steps 1 and 2 are the whole integration: generate a token and use it to call the API from your backend or your frontend.

Environments

Every Tenant has a sandbox and a production environment, with separate credentials. Build against sandbox first.

EnvironmentAPI URL
Sandboxhttps://api.sandbox.getasset.com
Productionhttps://api.getasset.com

Credentials and tokens only work in the environment they were created in. A sandbox token is rejected by the production API, and the other way around.

Before you start

You will need:

  1. OAuth credentials (client_id and client_secret) for your environment. You can create them in the Tenant dashboard.
  2. A demo Business in the sandbox. The Quickstart shows how to create one. Keep its ID.
  3. A backend server that can mint access tokens. A fully static site can't keep your secret safe.
  4. A React app (React 18 or newer) to render the components.

Next Steps

Follow the guides in order:

  1. Embed the UI: render your first Asset component, using the credentials and demo Business above.
  2. Managing Businesses: when you go live, let each of your customers create their own Business.

Questions? Reach out via our Contact form.

On this page