Skip to main content
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:
Alternative with JWT:

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.
Headers:
Request Body:
Response:

List Servers

Lists all servers for the authenticated user.
Headers:
Response:

Get Server

Retrieves details for a specific server.
Headers:
Response:

Update Server

Updates server configuration.
Headers:
Request Body:
Response:

Delete Server

Deletes a server and all associated data.
Headers:
Response:
Error Responses:
  • 401 Unauthorized - Invalid or missing authentication
  • 403 Forbidden - Not authorized to delete this server
  • 404 Not Found - Server not found

MCP Protocol API

The MCP protocol endpoints accept standard MCP JSON-RPC requests.

Required Headers

Important: These headers are REQUIRED. Without the Accept header including text/event-stream, you will receive a 406 Not Acceptable error.

With Token URL (Self-sufficient)

Required Headers:
  • Content-Type: application/json
  • Accept: application/json, text/event-stream
Optional Headers:
  • x-alloy-user-token: JWT token for user isolation
  • x-alloy-userid: Override user ID (public servers only)
  • x-credential-id: Use specific credential for operations
  • x-redirect-uri: OAuth redirect URI for credential creation

With API Authentication

Requires standard API authentication headers.
Required Headers:
  • Content-Type: application/json
  • Accept: application/json, text/event-stream
  • Authorization: Bearer YOUR_API_KEY
  • x-alloy-userid: Your user ID
Optional Headers:
  • x-alloy-user-token: JWT token for user isolation
  • x-credential-id: Use specific credential for operations
  • x-redirect-uri: OAuth redirect URI for credential creation
  • x-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:
2. Medium Datasets (25-50 items) Automatically limited with metadata:
3. Normal Responses (less than 25 items) Standard response with full data.

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

Rate Limiting

Default Limit: 100 requests per minute per API key/token Implementation: Token bucket algorithm with 60-second sliding window Configuration: Set via RATE_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

Need Help?

Authentication Guide

Quickstart Guide

Use Cases

Available Tools