Hosted Portal quick start

Open the hosted tax portal for a user with one server call: POST /api/launch.

How it works

When a user opens taxes in your app, your server calls POST /api/launch with the user's ID and wallets. Awaken creates the user if they are new, adds any new wallets, starts their imports, and returns a portal URL with a short-lived access token. Send the user to that URL.

1. Your server calls POST /api/launch

Send your client ID and API secret, the user's stable referenceId, and up to 4 wallets.

2. Awaken sets up the user

New users are created. New wallets are added and imported. Wallets that were already added are not imported again.

3. Open data.portalUrl

Redirect the user, or open it in a web view, before data.expiresAt.

Before you begin

Email embed@awaken.tax for a client ID and API secret. Keep both on your server. Never ship them in a mobile or web app.

Environment
export AWAKEN_CLIENT_ID=your-client-id
export AWAKEN_API_SECRET=your-api-secret

Call POST /api/launch

Call this every time the user opens the portal. Repeat calls with the same wallets do not restart imports.

Launch the portal
curl --fail-with-body 'https://api.awaken.tax/api/launch' \
-H "x-client-id: $AWAKEN_CLIENT_ID" \
-H "x-api-secret: $AWAKEN_API_SECRET" \
-H 'Content-Type: application/json' \
--data-raw '{"referenceId":"YOUR_USER_REFERENCE","email":"user@example.com","wallets":[{"address":"YOUR_EVM_ADDRESS"},{"address":"YOUR_SOLANA_ADDRESS","provider":"solana"}]}'

Request fields

FieldRequiredValue
referenceIdYesYour stable ID for this user. A new value creates the user. Users created through POST /api/crunch or /launch keep their old userId as the referenceId.
emailNoSaved on a new user and added to the portal URL.
walletsNoUp to 4 wallets. Omit it for a returning user whose wallets have not changed.
wallets[].addressFor each walletThe wallet address or ENS name.
wallets[].providerNoThe chain, such as solana or ethereum. Leave it off for 0x and ENS addresses: Awaken adds them on Ethereum, Base, BSC, Monad, Robinhood Chain, Arc and Elysium, plus every other chain where the wallet has activity. Set it for non-EVM addresses; other addresses without a provider are skipped.
wallets[].nameNoA wallet label. Awaken uses your company name if you omit it.
expiresInSecondsNoHow long the access token lasts. The default is 3,600 seconds. The server caps larger values.

Response

data.portalUrl is ready to open. data.expiresAt is when the access token stops working, as an ISO 8601 time. data.accounts lists the accounts this call added; it is empty when nothing new was added. data.skippedAccounts lists wallet chains that were not added because the user reached the account limit; contact us to raise it.

200 OK
{
"type": "success",
"message": "Portal launched successfully",
"data": {
"accessToken": "<access-token-jwt>",
"tokenType": "Bearer",
"referenceId": "YOUR_USER_REFERENCE",
"expiresInSeconds": 3600,
"expiresAt": "2026-07-30T00:42:57.891Z",
"portalUrl": "https://embed.awaken.tax/portal?code=YOUR_USER_REFERENCE&token=<access-token-jwt>",
"user": { "id": "<awaken-user-id>", "referenceId": "YOUR_USER_REFERENCE", "partnerName": "Your Company" },
"accounts": [{ "id": "<account-id>", "walletAddress": "0x…", "provider": "ethereum" }],
"skippedAccounts": []
}
}

Handle expiry

Call POST /api/launch again when the user opens the portal after data.expiresAt. Do not cache portal URLs across sessions.

Send the URL only to this user

The portal URL contains an access token for this user. It cannot reach other users or partner-wide endpoints, but anyone with the URL can view this user's portal until it expires.

Moving from /launch or crunch

Use the userId you sent before as referenceId; no data migration is needed. If you call POST /api/crunch and then POST /api/access-tokens today, you can replace both with POST /api/launch.