Authentication

Manteca authenticates API requests with API keys passed in a request header. There are no tokens to refresh and no OAuth flows — one header, every request.


Required headers

md-api-key: <your_api_key>
Accept: application/json

Every response includes an X-RequestId header. Include it when reporting issues — it uniquely identifies the request in Manteca's logs.


Environments

EnvironmentBase URL
Sandboxhttps://sandbox.manteca.dev/
Productionhttps://api.manteca.dev/

Use sandbox for all development. No real funds move there. See Initial setup for dashboard links, test resources, and sandbox faucet.


Example request

curl --request GET \
  --url https://sandbox.manteca.dev/crypto/v2/users \
  --header "md-api-key: $MD_API_KEY" \
  --header 'Accept: application/json'

❗️

API keys grant full account-level access. Store them in secure backend infrastructure only. Never expose them in client-side code, mobile apps, or public repositories.

Key management

  • For stricter environments, Manteca can require IP whitelisting or VPN access

Error responses

401 — Missing or invalid API key

{
  "status": 401,
  "internalStatus": "UNAUTHORIZED",
  "message": "Unauthorized.",
  "errors": []
}

Common auth errors

HTTP statusTypical causeAction
401Missing or invalid md-api-keyVerify the header is present and the key is correct for the environment
403Key valid but not authorized for this scopeVerify enabled services and environment permissions with your integration manager
429Rate limit exceededBack off and retry; reduce request frequency

Rate limiting

Each API caps how many requests you can send per minute. Going over the cap returns 429 Too Many Requests.

APIPath prefixLimit
Crypto/crypto/v2/2,500 requests per minute
Wallet/wallet/v1/2,500 requests per minute
Broker/broker/v1/3,000 requests per minute

Requests are counted per API key, in 60 second windows. The broker API applies the same cap a second time per source IP address, so traffic from several integrations behind one IP shares that second counter.

🚧

A 429 is temporary. Retry it with exponential backoff instead of failing the operation. If your client treats 429 as a permanent error and drops the request, you lose operations that a retry would have completed.

Rate limit headers

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current window
X-RateLimit-RemainingRequests left in the current window
X-RateLimit-ResetUnix timestamp, in seconds, when the window resets
Retry-AfterSeconds to wait before retrying. Only sent on a 429

Related pages


Did this page help you?