MilaMila.gg

Get Started

Core

REST API

Agents

Pricing

Back to Mila
REST API

Errors

All error responses follow the standard response format:

JSON
{
  "success": false,
  "error": "Description of what went wrong."
}

Status Codes

StatusMeaning
400Bad request -- missing or invalid parameters
401Unauthorized -- missing or invalid API key
403Forbidden -- API key lacks the required scope
404Not found -- resource doesn't exist or isn't accessible
429Rate limited -- too many requests
500Server error

Common Errors

Authentication

JSON
// Missing API key
{ "success": false, "error": "API key is required" }

// Invalid or expired key
{ "success": false, "error": "Invalid API key" }

Authorization

JSON
// Key doesn't have the required scope
{ "success": false, "error": "API key does not have the required scope: documents:read" }

Validation

JSON
// Missing required field
{ "success": false, "error": "Title is required" }

// Invalid server access
{ "success": false, "error": "Invalid server_id or you don't have access to this server" }

Rate Limiting

JSON
// Too many requests
{ "success": false, "error": "Rate limit exceeded. Try again later." }

When rate limited, wait before retrying. The default limit is 60 requests per minute.