Skip to Content

Get a template

Preview. One template, with the version that new sandboxes start from and its newest build.

GET
/templates/{template}

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

template*string

The name or the id of the template.

Lengthlength <= 64

Response Body

The template.

application/json
  1. response
id*string
object?string
Default"template"
name*string
status*TemplateStatus

building until a version is ready, then ready. failed when no version ever built. A failed new version leaves a ready template ready.

Value in"building""ready""failed"
version?|

The version that new sandboxes start from, or null before one is ready.

image?|

The image of that version.

digest?|

The digest of that version's manifest.

size_bytes?|

The bytes of the files of that version.

build*

The newest version, which can still build.

created_at*integer

Unix seconds.

updated_at*integer

Unix seconds.

curl -X GET 'https://api.munito.ai/sandboxes/v1/templates/string'
Example Response
{
  "id": "string",
  "object": "template",
  "name": "string",
  "status": "building",
  "version": 0,
  "image": "string",
  "digest": "string",
  "size_bytes": 0,
  "build": {
    "version": 0,
    "image": "string",
    "status": "building",
    "digest": "string",
    "error": {
      "code": "string",
      "message": "string"
    },
    "log": "",
    "started_at": 0,
    "ended_at": 0
  },
  "created_at": 0,
  "updated_at": 0
}