Errors
Errors
This page describes how the Token Custody API communicates errors.
Base URL
All API endpoints are relative to:
https://api.testmachine.aiHTTP status codes
The API uses standard HTTP status codes. Common ones include:
400 Bad Request— invalid input (malformed address, unsupported network id, etc.)401 Unauthorized— missing/invalid API key403 Forbidden— authenticated, but not permitted for this resource404 Not Found— resource not found409 Conflict— request conflicts with current state (when applicable)422 Unprocessable Entity— well-formed request, but fails validation (when applicable)429 Too Many Requests— rate limited5xx— server-side error
Error body
Error responses are returned as JSON.
Because the exact error schema can vary by API version, you should:
key off HTTP status codes for high-level handling
treat the JSON body as human-readable context (message/details)
If you share a sample error payload from your environment, I can document the exact fields here.
Troubleshooting
Re-check authentication in Authentication (the API key must be passed via
X-API-Key).Confirm the chain ID exists in Supported networks.
Ensure the address is a contract address on the target network.
Last updated