Skip to main content
Use this endpoint to register a new Axis account. Choose "developer" to explore the API with personal credentials, or "business" to unlock wallet creation and agent payment infrastructure. A signed JWT session token is returned immediately on success — store it securely (e.g. in memory or an httpOnly cookie) and attach it to subsequent requests via the Authorization header.

Endpoint

Authentication

None required. This is a public endpoint.

Request Body

string
required
A valid email address. Must be unique across all Axis accounts.
string
required
The account password. Minimum 6 characters.
string
required
The type of account to create. Accepted values: "developer" or "business".
string
The legal or trading name of the business. Required when accountType is "business".

Request Example

Response — 201 Created

A successful request returns HTTP 201 with a JSON body containing a JWT session token and the newly created user record. Note that token lives directly inside data, alongside user — it is not nested inside data.user.
string
Always "success" for a successful response.
object
Container for the session token and user details.

Error Responses

400 — Validation Error

Returned when one or more request fields fail validation. The errors array contains individual Zod issue objects, each identifying the failing field and the reason.

409 — Email Already Registered

Returned when an account with the supplied email address already exists. Use this response to prompt the user to log in instead.