The Everruns API uses standard HTTP status codes to indicate the success or failure of requests. All error responses follow a consistent JSON format.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/everruns/everruns/llms.txt
Use this file to discover all available pages before exploring further.
Error Response Format
When an error occurs, the API returns a JSON response with the following structure:| Field | Type | Description |
|---|---|---|
error | string | Human-readable error message |
status | integer | HTTP status code |
HTTP Status Codes
The API uses the following standard HTTP status codes:400 Bad Request
The request is malformed or contains invalid parameters. Common causes:- Invalid JSON in request body
- Missing required fields
- Invalid field values
- Input exceeds size limits
Input validation errors return generic messages for security. Check server logs for detailed validation failures.
401 Unauthorized
Authentication is required or the provided credentials are invalid. Common causes:- Missing
Authorizationheader - Invalid or expired access token
- Invalid API key
- Include valid authentication credentials
- Refresh expired access tokens using
POST /v1/auth/refresh - Check that your API key is correct and not expired
403 Forbidden
The request is authenticated but the user lacks permission to perform the action. Common causes:- Insufficient role permissions
- Attempting to access resources from another organization
- Attempting to perform admin-only actions without admin role
404 Not Found
The requested resource does not exist. Common causes:- Invalid resource ID
- Resource has been deleted
- Typo in endpoint URL
422 Unprocessable Entity
The request is well-formed but contains semantic errors. Common causes:- Business logic validation failures
- Invalid state transitions
- Conflicting data
500 Internal Server Error
An unexpected error occurred on the server. Response:Internal errors never expose implementation details. All error information is logged server-side for debugging.
Error Handling Best Practices
Check Status Codes
Always check the HTTP status code to determine the type of error:Implement Retry Logic
For500 errors and network failures, implement exponential backoff:
Handle Token Expiration
Automatically refresh tokens when receiving401 responses:
Log Errors Appropriately
Log different error types with appropriate severity:Common Error Scenarios
Invalid Agent ID
Missing Required Field
Expired Access Token
POST /v1/auth/refresh to obtain a new token pair.
Input Size Limit Exceeded
Invalid Session State
Security Considerations
Error Message Safety
The API follows these security principles for error messages:- Never expose internal details - Stack traces and implementation details are never returned
- Generic messages for server errors - 500 errors always return “Internal server error”
- Safe user-facing messages - Only safe, actionable messages are returned to clients
- Server-side logging - All errors are logged server-side with full context
Avoiding Information Disclosure
The API avoids exposing sensitive information through error messages:- User existence is not disclosed through authentication errors
- Database schema details are never revealed
- File paths and system information are not included
- Validation errors use generic messages
For detailed debugging information, always check server logs. Error responses are intentionally generic for security.