Skip to Content
almyty docs — v1
API ReferenceGateways API

Gateways API

This is the HTTP API reference. For UI walkthroughs, see Getting Started and the feature guides above.

REST API reference for managing gateways, tool assignments, and authentication.

Endpoints

MethodEndpointDescription
GET/gatewaysList all gateways
POST/gatewaysCreate a gateway
GET/gateways/:idGet gateway by ID
PATCH/gateways/:idUpdate a gateway
DELETE/gateways/:idDelete a gateway
POST/gateways/:id/toolsAssign a tool
POST/gateways/:id/tools/bulkBulk assign tools
DELETE/gateways/:id/tools/:toolIdRemove a tool
GET/gateways/:id/tools/availableList available tools
POST/gateways/:id/authAdd auth method
GET/gateways/:id/authList auth methods
DELETE/gateways/:id/auth/:authIdRemove auth method
POST/gateways/:id/auth/api-keysGenerate API key
GET/gateways/:id/auth/api-keysList API keys
DELETE/gateways/:id/auth/api-keys/:keyIdRevoke API key

Create a Gateway

curl -X POST https://api.almyty.com/gateways \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Production MCP", "type": "mcp", "endpoint": "/prod-tools", "description": "Production tool gateway" }'

Parameters

ParameterTypeRequiredDescription
namestringYesGateway name
typestringYesmcp, a2a, utcp, skills
endpointstringYesURL path (unique within org)
descriptionstringNoDescription
configurationobjectNoType-specific config

Response

{ "success": true, "data": { "id": "gw-uuid", "name": "Production MCP", "type": "mcp", "endpoint": "/prod-tools", "status": "active", "toolCount": 0, "createdAt": "2026-03-01T10:00:00Z" } }

Bulk Assign Tools

curl -X POST https://api.almyty.com/gateways/{id}/tools/bulk \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "toolIds": ["tool-1", "tool-2", "tool-3"] }'

Add Authentication

curl -X POST https://api.almyty.com/gateways/{id}/auth \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "type": "api_key", "isRequired": true, "configuration": { "keyHeader": "X-API-Key" } }'

Auth types: none, api_key, bearer_token, basic_auth, jwt, oauth2.

See Gateway Authentication for detailed docs on each type.

Generate API Key

curl -X POST https://api.almyty.com/gateways/{id}/auth/api-keys \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Production Key", "scopes": ["tools:read", "tools:execute"], "expiresAt": "2027-01-01T00:00:00Z" }'

Response (key shown once):

{ "success": true, "data": { "id": "key-uuid", "name": "Production Key", "key": "almyty_gw_...", "scopes": ["tools:read", "tools:execute"], "expiresAt": "2027-01-01T00:00:00Z" } }

Gateway Endpoint URLs

After creation, the gateway is accessible at:

TypeURL
MCPhttps://api.almyty.com/{org-slug}{endpoint}
A2Ahttps://api.almyty.com/{org-slug}{endpoint}
UTCPhttps://api.almyty.com/{org-slug}{endpoint}
SkillsVia npx @almyty/skills install @{org-slug}{endpoint}