Authorization header. Tokens are tied to a user account, not to any individual wallet.
Sign up
POST /v1/auth/signup
Create a new Axis account. The response includes a JWT that you can use immediately — no separate login step required after registration.
When you sign up with accountType: "business", Axis automatically creates a business record and returns the businessId in the user object. For accountType: "developer", businessId will be null.
Request body
Example
"business" signup, businessId will be populated rather than null:
Log in
POST /v1/auth/login
Exchange credentials for a fresh JWT. Use this on returning visits after the stored token has expired or been cleared.
Request body
Log out
POST /v1/auth/logout
Invalidates the current session server-side. No request body is needed — just include your Authorization header as usual.
Using the token
Once you have a token, attach it to every protected request in theAuthorization header using the Bearer scheme. Tokens expire after 7 days — after expiry, the API will return 401 Unauthorized and you will need to call POST /v1/auth/login again.