Skip to main content
POST
/
r
/
invoke
/
{serviceSlug}
Invoke a container service (runtime)
curl --request POST \
  --url https://core.cyberun.cloud/api/v1/r/invoke/{serviceSlug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>",
  "body_base64": "<string>",
  "headers": {}
}
'
{
  "status_code": 123,
  "body_base64": "<string>",
  "headers": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT (Bearer ). Must be paired with the X-Team-ID request header on team-scoped endpoints so the server knows which team's resources to operate on.

Headers

X-Team-ID
string<uuid>

UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):

  • JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
  • Credential callers (sk-, dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
Example:

"019abc12-4567-7890-abcd-ef1234567891"

Path Parameters

serviceSlug
string
required

Body

application/json

Structured form of "send an HTTP request through the gateway tunnel into the container". The catch-all ANY /r/containers/{slug}/* proxy stays for shell-friendly use; this operation is the MCP-friendly entry point (single operationId, single body shape).

method
enum<string>
required

HTTP method to send to the container.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE,
HEAD,
OPTIONS
path
string
required

Path on the container, including leading "/". Query strings allowed. Example: "/api/generate" or "/predict?stream=true". Absolute URLs, protocol-relative URLs (leading "//"), and host-containing inputs are rejected at the schema layer so the agent's URL joiner never sees a target that could rewrite the host.

Maximum string length: 2048
Pattern: ^/(?!/)
body_base64
string

Optional request body, base64-encoded. Use base64 so binary payloads survive JSON transport. Empty / omitted for GET / DELETE.

headers
object

Optional headers to forward to the container. Hop-by-hop headers (Host, Connection, Upgrade, Transfer-Encoding, TE, Trailer) are stripped server-side. End-to-end headers — including Authorization, Content-Type, and any custom application headers — are forwarded as-is.

Response

Container response

Response from the container, relayed back through the gateway tunnel.

status_code
integer
required

HTTP status code returned by the container.

body_base64
string
required

Response body, base64-encoded.

headers
object