Create a container service definition
Define a new Docker container service that can be deployed to agents. The service_slug must be unique within the team and is used for API routing.
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
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
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.
"019abc12-4567-7890-abcd-ef1234567891"
Body
Create a container service definition. Two service types are supported:
deployed(default) — the platform pullsdocker_imageand runs it on the team's agents.docker_imageis required.external— the team's existing HTTP service is fronted by Cyberun.external_urlis required and must behttps://. The agent makes outbound calls to it via its existing tunnel. See ADR-0007.
service_type is immutable after creation; recreate the service to
switch.
URL-safe slug for the service (3-100 chars, lowercase, hyphens)
^[a-z0-9][a-z0-9-]{1,98}[a-z0-9]$255How this service is hosted. See ADR-0007 in the engineering docs.
deployed, external Docker image reference (e.g. vllm/vllm-openai:latest). Required when service_type=deployed.
Absolute https:// URL of the externally-hosted service. Required when service_type=external.
2048^https://Optional credential vault reference. When set, the agent attaches the resolved credential as an Authorization header on outbound requests. Only meaningful when service_type=external.
1 <= x <= 65535Agent labels required to deploy this service
GPU count: -1=all GPUs, 0=none (default), N=specific count
1 <= x <= 10Optional natural-language description aimed at AI agents discovering this service through MCP. Example: "This is ollama. POST /api/generate with {model, prompt}. Available models: llama3, qwen2." Readable by anyone who can list/read services in the team — do not put secrets here.
Optional path served by the container where an OpenAPI document lives (e.g. "/openapi.json" for FastAPI). Lets AI agents fetch a machine-readable schema before invoking.
500Response
Service created
UUID of the created or updated resource.
"019abc12-3456-7890-abcd-ef1234567890"
