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/jsonEvery response includes an X-RequestId header. Include it when reporting issues — it uniquely identifies the request in Manteca's logs.
Environments
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.manteca.dev/ |
| Production | https://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 status | Typical cause | Action |
|---|---|---|
401 | Missing or invalid md-api-key | Verify the header is present and the key is correct for the environment |
403 | Key valid but not authorized for this scope | Verify enabled services and environment permissions with your integration manager |
429 | Rate limit exceeded | Back 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.
| API | Path prefix | Limit |
|---|---|---|
| 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
429is temporary. Retry it with exponential backoff instead of failing the operation. If your client treats429as a permanent error and drops the request, you lose operations that a retry would have completed.
Rate limit headers
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in the current window |
X-RateLimit-Remaining | Requests left in the current window |
X-RateLimit-Reset | Unix timestamp, in seconds, when the window resets |
Retry-After | Seconds to wait before retrying. Only sent on a 429 |
Related pages
Updated 1 day ago