Skip to content
mercenta.Docs

Documentation

Build & integrate

API authentication

Scoped, expiring and revocable integration keys.

Create a key from API Access after wallet sign-in. Name it, select scopes and choose a lifetime from 1 to 90 days. Ten active keys per account are allowed.

The full secret is shown once. The server stores a SHA-256 hash of a cryptographically random 256-bit secret, not plaintext. Lists show only a mask, expiry, scopes, last-used timestamp and status. Keep secrets in your server environment, never in browser code, URLs or chat.

The public testnet API base URL is https://api.mercenta.xyz. Send Authorization: Bearer YOUR_API_KEY to /api/v1/* on that host. For example, GET https://api.mercenta.xyz/api/v1/account. The browser portal uses its wallet session through a server-side proxy; do not send integration secrets in the browser.

ScopeAllowed operations
account:readBalance and dashboard
orders:readThis account's order history
orders:createTestnet simulated orders using this account's balance

Revocation takes effect immediately. Keys cannot withdraw, create other keys, modify balances, impersonate another account or sign transactions. Expired keys are rejected. Use one key per integration and minimum scopes. Never copy a sample credential from documentation.