Interactive API Reference
For an interactive API experience with live testing capabilities, visit our Interactive API Reference where you can:
- Test API endpoints directly in your browser
- View detailed request/response examples
- Generate code snippets in multiple languages
- Explore the full API schema
Base URL
Authentication
API Management Endpoints
All server management API requests require authentication:MCP Protocol Endpoints
Two authentication methods available:1
Token URL
No additional headers needed
2
API Key
Requires authentication headers
Server Management API
Create Server
Creates a new MCP server instance.List Servers
Lists all servers for the authenticated user.Get Server
Retrieves details for a specific server.Update Server
Updates server configuration.Delete Server
Deletes a server and all associated data.401 Unauthorized
- Invalid or missing authentication403 Forbidden
- Not authorized to delete this server404 Not Found
- Server not found
MCP Protocol API
The MCP protocol endpoints accept standard MCP JSON-RPC requests.Required Headers
Accept
header including text/event-stream
, you will receive a 406 Not Acceptable error.
With Token URL (Self-sufficient)
Content-Type: application/json
Accept: application/json, text/event-stream
x-alloy-user-token
: JWT token for user isolationx-alloy-userid
: Override user ID (public servers only)x-credential-id
: Use specific credential for operationsx-redirect-uri
: OAuth redirect URI for credential creation
With API Authentication
Requires standard API authentication headers.Content-Type: application/json
Accept: application/json, text/event-stream
Authorization
: Bearer YOUR_API_KEYx-alloy-userid
: Your user ID
x-alloy-user-token
: JWT token for user isolationx-credential-id
: Use specific credential for operationsx-redirect-uri
: OAuth redirect URI for credential creationx-mcp-server-id
: Alternative way to specify server ID
Available MCP Tools
Connectivity Mode Tools (Default)
list_connectors_alloy
Lists all available platform connectors.get_connector_resources_alloy
Gets available resources and actions for a connector.get_action_details_alloy
Gets detailed parameter information for an action.execute_action_alloy
Executes an action on a platform.create_credential_alloy
Creates new platform credentials.get_credentials_alloy
Lists existing credentials for a connector.get_credential_metadata_alloy
Gets supported authentication types and required fields.discover_action_path_alloy
Provides workflow guidance for achieving specific goals.Response Handling
Smart Response Management
The MCP Server automatically optimizes large responses for better performance and usability.When You’ll See Different Responses
1. Large Datasets (more than 50 items) Instead of overwhelming the MCP client with hundreds of results, the server returns helpful guidance:Why This Matters
- Better Performance: Faster responses, less data transfer
- Smarter Interactions: The AI guides you to refine searches
- Platform Limits: Respects rate limits of external APIs
Error Responses
All errors follow a consistent format:Common Error Codes
Code | Description | HTTP Status |
---|---|---|
INVALID_REQUEST | Malformed request | 400 |
UNAUTHORIZED | Invalid or missing auth | 401 |
FORBIDDEN | Insufficient permissions | 403 |
NOT_FOUND | Resource not found | 404 |
RATE_LIMITED | Too many requests | 429 |
INTERNAL_ERROR | Server error | 500 |
CREDENTIAL_NOT_FOUND | Platform credential missing | 400 |
CONNECTOR_NOT_FOUND | Invalid connector ID | 404 |
ACTION_NOT_FOUND | Invalid action ID | 404 |
Rate Limiting
Default Limit: 100 requests per minute per API key/token Implementation: Token bucket algorithm with 60-second sliding window Configuration: Set viaRATE_LIMIT_PER_MINUTE
environment variable
Rate Limit Exceeded Response (429 Too Many Requests):
Input Validation
Field Limits
- Server name: 1-100 characters
- Token expiration: 1-365 days
- Request body size: 10MB maximum
- Array limits: 1000 items maximum in responses
Input Requirements
- Server name: Must be unique per user
- User ID: Your unique identifier from Alloy
- API Key: Provided by Alloy