Skip to main content

Before you start

Account creation and login happen at the dashboard — not through the API.
EnvironmentDashboardAPI Base URL
Livecrypto.yativo.comhttps://crypto-api.yativo.com/api
Sandboxsandbox-crypto.yativo.comhttps://crypto-sandbox.yativo.com/api
Sign up is passwordless — enter your email, confirm the one-time code, and you’re in. Once logged in, go to Settings → API Keys to generate credentials for API access.

Authentication

Every API endpoint (except POST /auth/token) requires:
Authorization: Bearer YOUR_ACCESS_TOKEN

Getting a Bearer token

Exchange your API key and secret for a short-lived token. Tokens expire after 60 minutes; API keys never expire.
curl -X POST 'https://crypto-api.yativo.com/api/auth/token' \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key":    "yativo_...",
    "api_secret": "..."
  }'
Response
{
  "success": true,
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "expires_at": "2026-03-28T11:00:00.000Z"
}
Refresh by calling POST /auth/token again before the token expires — no separate refresh endpoint needed. See Authentication for the full flow including scopes and the auto-refresh pattern.

Common headers

HeaderRequiredDescription
AuthorizationYesBearer YOUR_ACCESS_TOKEN
Content-TypeYes (POST/PUT)application/json
Idempotency-KeyOptionalPrevents duplicate transactions

Response format

{
  "status": true,
  "message": "Human-readable message",
  "data": { ... }
}
Errors return "status": false with an appropriate HTTP status code (400, 401, 403, 404, 422, 429, 500).

Sandbox

The sandbox at https://crypto-sandbox.yativo.com/api uses testnet blockchains — no real funds. Use the environment switcher at the top-right of each API reference page to toggle between Sandbox and Production. A shared sandbox account is pre-populated for immediate testing:
curl -X POST 'https://crypto-sandbox.yativo.com/api/auth/token' \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key":    "yativo_e072b3ef7e30fcb420183aa86ddd8452abd28a9ac8f5d04d",
    "api_secret": "df8da4d6b855c7e89bd3b4216dd0a1f4b30de1963c9bff0dcd666b15a0f836a5"
  }'
For isolated sandbox data, sign up at sandbox-crypto.yativo.com and generate your own sandbox keys.

Further reading