ModernLoop Internal API
Apipylon

Invoke any documented Pylon REST path under https://api.usepylon.com

Provider-native universal passthrough. Server injects Pylon credentials; caller Authorization is never forwarded.

Write operation: mutates state in the upstream service.

curl -X POST "https://api.modernloop.dev/rest/v1/pylon/passthrough" \  -H "Authorization: Bearer $MLOOP_INTERNAL_MCP_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "method": "GET",    "path": "string"  }'
{  "data": {},  "pagination": {    "cursor": "string",    "has_next_page": true  },  "request_id": "string",  "errors": [    "string"  ]}
{  "data": {},  "pagination": {    "cursor": "string",    "has_next_page": true  },  "request_id": "string",  "errors": [    "string"  ]}
{  "error": {    "code": "string",    "message": "string",    "upstreamStatus": 0  }}
{  "error": {    "code": "string",    "message": "string",    "upstreamStatus": 0  }}
{  "errors": [    "string"  ],  "request_id": "string"}
{  "errors": [    "string"  ],  "request_id": "string"}
{  "error": {    "code": "string",    "message": "string",    "upstreamStatus": 0  }}
{  "error": {    "code": "string",    "message": "string",    "upstreamStatus": 0  }}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

method*string

Value in

  • "GET"
  • "POST"
  • "PATCH"
  • "PUT"
  • "DELETE"
path*string

Provider-relative pathname starting with / (e.g. /macros). Must not include a host, query string, or fragment; use query/repeated_query instead.

Length1 <= length
query?

Single-value query parameters

repeated_query?array<>

Repeated query parameters (same name allowed multiple times)

headers?

Optional application request headers. Credentials, forwarding, proxy, and hop-by-hop headers are ignored.

body?|array<any>||||

JSON request body

body_text?string

Plain-text request body (mutually exclusive with body)

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json