Skip to main content

Environments

AX provides two environments. Use sandbox for development and testing. Use production when you are ready to trade with real funds. Each environment has its own accounts and API keys. A key created in one environment does not work in the other.

Health Check

Both environments expose a public health endpoint that requires no authentication:
Example: https://gateway.architect.exchange/api/health Use this to verify connectivity or check whether the service is up.

Authentication

Every endpoint except /health requires a session token. You get a token by exchanging an API key and its secret.
  1. Create an API key in the web app of the environment you want to use: sandbox or production. The app shows the key and its secret.
  2. Exchange the key and secret for a token with POST /authenticate. expiration_seconds sets how long the token is valid.
  1. Send the token in the Authorization header of every REST request and of every WebSocket upgrade request:
Do not send the API key itself as the Bearer value. Request a new token before the current one expires.

Server Location

The production environment runs on AWS eu-west-2 (London).