Errors & SDKs
Error Response Format
{
"error": {
"type": "validation_error",
"message": "Invalid request parameters",
"details": [
{
"field": "title",
"issue": "Title is required"
}
],
"request_id": "req_abc123"
}
}HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Successful request |
| 201 | Created | Resource created successfully |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource does not exist |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Contact support |
Error Types
authentication_errorvalidation_errorpermission_errorrate_limit_errornot_found_errorserver_error
SDKs
Python
pip install rosetta-clientfrom rosetta import RosettaClient
client = RosettaClient(api_key="YOUR_API_KEY")
documents = client.documents.list(limit=10)JavaScript / TypeScript
npm install @rosetta/clientimport { RosettaClient } from "@rosetta/client";
const client = new RosettaClient({ apiKey: "YOUR_API_KEY" });
const documents = await client.documents.list({ limit: 10 });Last updated on