Templates ›
List template sandboxes
GET
/v1/templates/{id}/sandboxesThe sandboxes on the template, each with whether it has the template's variables, files and outbound rule as they are now, and the addresses of its own it may reach on top of the rule.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const template = await agental.templates.get("tpl_0123456789abcdef");
- const sandboxes = await template.sandboxes();
Answer200 OK · TemplateSandboxes
- {
- "sandboxes": [{
- "id": string,
- "name": string,
- "status": string,
- "upToDate": boolean,
- "takenAt": string | null,
- "allow": string[],
- }],
- }
Sandboxes on the template.
Path
idrequiredstring | e.g. "tpl_0123456789abcdef" |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Sandboxes on the template.
TemplateSandboxes1 field
sandboxesobject[]6 fields
idstring
namestring
statusstring
upToDateboolean
takenAtstringnull
allowstring[]
The addresses it may reach on top of the template's outbound rule.
Errors and other answers
| 404 | Not found. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.