templates

Template build file upload URL

Changed on

Get an upload link for a tar file containing build layer files

get/templates/{templateID}/files/{hash}

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/templates/{templateID}/files/{hash}
  • 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
hashstring required

Hash of the files (lowercase hex SHA-256)

Response

The upload link where to upload the tar file

presentboolean required

Whether the file is already present in the cache

urlstring

Url where the file should be uploaded to

headersobject

Request headers that must be sent with the upload request

Changes

    • breaking

      added the pattern ^[0-9a-f]{64}$ to the path request parameter hash

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status