API Gateway

Universal API gateway - connect to 100+ APIs with a unified interface, manage API keys, and chain API calls

chainlesschain 3d5e3a7 2 files · 11.5 KB Updated

File contents

API Gateway

Universal API gateway for connecting to any REST API with a unified interface.

Usage

/api-gateway call <METHOD> <URL> [--headers key=value] [--body <json>]
/api-gateway register <name> <METHOD> <URL> [--headers key=value] [--description <text>]
/api-gateway list [--filter <name>]
/api-gateway chain <step1> -> <step2> -> <step3>

Actions

  • call - Make a single API call with method, URL, headers, and body
  • register - Save a named API endpoint for reuse
  • list - List all registered API endpoints
  • chain - Chain multiple API calls, passing data between steps

Examples

/api-gateway call GET https://api.github.com/repos/nodejs/node
/api-gateway call POST https://httpbin.org/post --body '{"key": "value"}'
/api-gateway register weather GET https://api.openweathermap.org/data/2.5/weather?q={city}
/api-gateway chain weather:city=London -> transform:extract=temp

chainlesschain/chainlesschain/tree/main/desktop-app-vue/src/main/ai-engine/cowork/skills/builtin/api-gateway commit 3d5e3a7890

Frequently asked questions

npx skillmds@latest add chainlesschain/api-gateway