Skip to main content
POST
Authenticate with Authorization: Bearer sk_live_... on https://api.agent37.com. Set an instance up once: clone the repositories, install the packages, sign in to the tools. Snapshot it, and every instance you create from the snapshot starts with all of that already in place.

Path parameters

string
required
The instance id, returned when you create an instance.

Body parameters

string
required
The name of the template the snapshot is saved as: 2 to 63 characters, lowercase letters, numbers, and hyphens, starting with a letter. A name you have already used publishes the next revision of that template.
string
A note for your own reference.

Response and behavior

The response is a template object. A snapshot is a template: it is listed with your other templates, and you start instances from it by name. POST /v1/instances/{id}/snapshot saves everything on the instance’s disk, wherever it was written: the data disk and every package and file changed outside it. The call returns in seconds whatever the disk holds, and the instance keeps running throughout. Like a fork, it copies files and not memory, so running processes are not carried over. The source must be running, stopped, or sleeping.

Start instances from it

curl
Each new instance holds the snapshot’s files on a disk of its own, so nothing one instance writes reaches another, or the instance the snapshot was taken from. What the body leaves out is taken from that instance: A request that names a different type or region, or a smaller disk, returns 400.

saving and ready

A new snapshot reads "status": "saving". You can create instances from it straight away. GET /v1/templates/{name} reads ready a little later, sooner for a small disk and after a few minutes for a large one. While it is still saving, a create can return 409 try_again when there is no room for another instance beside the original. Retry in a moment, or wait for ready.

Revisions

Snapshot under the same name again and the template moves to the next revision. New instances start from the newest one, and an earlier one stays available by its pin: "template": "my-setup@1".

Size and price

A snapshot can be as large as the instance’s disk. The 15 GB limit on template images does not apply to it. Storage is $0.09 per GB per month on what the instance’s disk held when the snapshot was taken, from the moment it is taken until you delete the template. Taking one requires a balance in your wallet.

Delete it

Delete the template and every revision’s snapshot goes with it, which ends the storage charge. Instances already started from it keep running: their disks are their own.

Snapshot or fork

What cannot be snapshotted

  • An instance of an Agent37 agent template, such as agent37-hermes or agent37-claude-code, or of agent37-n8n. Fork it instead. Instances of agent37-base, agent37-ubuntu, and your own templates can be snapshotted.
  • An instance parked in cold storage. Start it first.
A template that holds a snapshot stays private: it cannot be shared with other workspaces. An existing instance cannot be updated onto one, since a snapshot is a whole disk and an update keeps the instance’s own.

Errors