Skip to main content
A runtime is an isolated sandbox. Create one from a template or a snapshot, optionally attach secrets and Network Policies, then run code or commands inside it. POST /v1/agents/runtime 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