Skip to main content
Create a runtime from a template or a snapshot. Attach secrets and network policies when it needs them, then run code or commands inside it. Cloud and region are set on the client (defaults: aws / us-east-1). create() defaults to template base-small.

Parameters

SDK callers set cloud and region on GravixLayer(...) / new GravixLayer({ ... }), or via GRAVIXLAYER_CLOUD / GRAVIXLAYER_REGION. Pass them in the REST body only. * Use either template or snapshot, not both. TypeScript requestTimeoutMs is the HTTP deadline for that call, in milliseconds. When it is omitted, the client timeout applies. A snapshot restore uses a longer HTTP budget unless requestTimeoutMs is set.

Response

Endpoint

POST /v1/agents/runtime