templates

List template builds

Changed on

List all builds for a template

get/templates/{templateID}

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/templates/{templateID}
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer and API key in header X-Team-ID
    • or API key in header X-Admin-Token and API key in header X-Team-ID
    • or HTTP bearer and API key in header X-Team-ID

Path parameters

templateIDstring required

Query parameters

nextTokenstring

Cursor to start the list from

limitinteger

Maximum number of items to return per page

Response

Successfully returned the template with its builds

templateIDstring required

Identifier of the template

buildIDstring required

Identifier of the last successful build for given template

cpuCountinteger required

CPU cores for the sandbox

memoryMBinteger required

Memory for the sandbox in MiB

diskSizeMBinteger required

Disk size for the sandbox in MiB

publicboolean required

Whether the template is public or only accessible by the team

aliasesstring[] required

Aliases of the template

namesstring[] required

Names of the template (namespace/alias format when namespaced)

createdAtstring date-time required

Time when the template was created

updatedAtstring date-time required

Time when the template was last updated

lastSpawnedAtstring date-time nullable required

Time when the template was last used

spawnCountinteger required

Number of times the template was used

buildCountinteger required

Number of times the template was built

envdVersionstring required

Version of the envd running in the sandbox

buildStatus'building' | 'waiting' | 'ready' | 'error' required

Status of the template build

isDefaultboolean

Whether the template is one of the platform's default templates. A default template owned by another team carries zero or null usage fields (spawnCount, buildCount, lastSpawnedAt, createdBy).

descriptionstring

Description of the template

Changes

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added subschema #2 to the response body allOf list for the response status

    • info

      added the non-success response with the status