Resolve a template name
GET
/sandbox/v1/templates/aliases/{alias}● SupportedRequest parameters
aliasstringrequiredpath: Bare template name belonging to your organization, without a tag or provider namespace.
Returns
200
Errors follow the E2B format — see error codes
Request
curl
curl https://api.deepraxis.com/sandbox/v1/templates/aliases/docs-template \
-H "X-API-Key: $PRAXIS_API_KEY"Python
import requests
api_key = "$PRAXIS_API_KEY"
# templateID and buildID come from the preceding create response; replace the example IDs.
resp = requests.request("GET", "https://api.deepraxis.com/sandbox/v1/templates/aliases/docs-template",
headers={"X-API-Key": api_key},
)
print(resp.status_code, resp.text)TypeScript
const apiKey = "$PRAXIS_API_KEY";
// templateID and buildID come from the preceding create response; replace the example IDs.
const resp = await fetch("https://api.deepraxis.com/sandbox/v1/templates/aliases/docs-template", { method: "GET",
headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());Response 200
{
"templateID": "sbe_a9b9ece1928540ffcfcf",
"public": false
}Response
HTTP 200
Successfully queried template by alias
application/json
| Name | Type | Description |
|---|---|---|
| templateID | string | Identifier of the template |
| public | boolean | Whether the template is public or only accessible by the team |