Skip to main content
After creating a user account, the next step is to register a business entity with Axis. Wallets belong to a business — not directly to a user — so this registration step is required before you can create any wallets or issue API keys. You only need to do this once per business.
Business accounts created via signup skip this step. When you pass accountType: "business" to POST /v1/auth/signup, Axis automatically creates the business entity for you. The businessId is returned in the signup response at data.user.businessId. You can still call POST /v1/onboarding afterwards to update business details, but it is not required.
This endpoint is authenticated with a session JWT, not an API key. Make sure you have completed the sign-in flow and are forwarding the session cookie (or Authorization header) before calling this endpoint. See Session authentication for details.

Register a business

Both paths point to the same handler. Use whichever base URL your environment is configured for — see Base URL and errors.

Request body

Example request

POST /api/onboarding

Example response

201 Created

Store the businessId

The businessId returned in the response is required when creating wallets. Store it in your application state as soon as you receive it — you will pass it to every wallet creation request. If you signed up with accountType: "business", your businessId was already returned in the signup response at data.user.businessId; there is no need to call this endpoint again just to retrieve it. Here is a complete TypeScript example that calls the onboarding endpoint from a React app and persists the businessId:
src/lib/onboarding.ts
src/components/OnboardingForm.tsx