Templates
Start a workspace from a ready-made spec, or publish your own spec as an immutable template for your organisation or everyone.
A template is a versioned, immutable workspace spec: configuration only, never production data. Use one when an existing spec is close to what you need and you would rather edit it than draft from scratch. For most applications, having your coding agent draft a spec from your code is still the better start.
Templates that ship with axonpush
Every organisation sees two built-in public templates:
| Template | Version | What it tracks |
|---|---|---|
Support desk (support) | 1 | Tickets and customers for a support team, with no agents involved |
Nova Hiring Room (nova) | 3 | Candidates, companies and mandates alongside Nova journeys and Room activity |
They are worked examples of the spec format, not defaults.
Start a workspace from a template
- Open Workspace and choose New workspace.
- Under Start from, pick Template.
- Choose a Template. Its description appears under the picker.
- Optionally change the Name. If the organisation has more than one application, pick the Application the workspace belongs to.
- Choose Create.
A template spec has entities, so the workspace is activated straight away
rather than left as a draft. The spec records which template and version it
came from in its template field. From then on it is your workspace: edit it
through the draft like any other.
Through the API, list templates with
GET /templates (observe:read) and pass a
template’s spec to
POST /workspaces:
curl -X POST "https://api.axonpush.xyz/workspaces" \
-H "X-API-Key: $AXONPUSH_MANAGE_KEY" \
-H "Content-Type: application/json" \
-d '{
"appId": "app_...",
"spec": { "name": "Support desk", "template": { "id": "support", "version": 1 }, "attributes": [...], "entities": [...] }
}'templates_list returns the built-in templates first, then up to 100
published versions: your organisation’s private templates and every public
template, ordered by id with the newest version first.
Publish a template
Publishing saves a spec as a new template version. There is no dashboard
screen for it yet; use the API or the templates_publish MCP tool.
It needs an owner or admin session, or an API key with templates:publish.
| Field | Rules |
|---|---|
id | Starts with a letter; letters, digits, _, . and -; up to 120 characters |
version | An integer of at least 1. Each id and version can be published once |
visibility | private (your organisation only) or public (every organisation) |
spec | A valid workspace spec |
curl -X POST "https://api.axonpush.xyz/templates" \
-H "X-API-Key: $AXONPUSH_TEMPLATES_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "order-desk",
"version": 1,
"visibility": "private",
"spec": { "name": "Order desk", "attributes": [...], "entities": [...] }
}'A templates.publish SDK helper ships in the next SDK release.
The response is { "status": "published" }. Publishing an id and version that
already exists returns 409; publish a higher version instead. Every publish is
recorded in the audit log as template.publish.
Public templates must be sanitized
A public template is visible to every organisation, so the server rejects it
(422) when:
- the spec contains
@or://anywhere (no email addresses or URLs), - it contains anything that looks like a credential or a personal identifier,
- an event rule’s
setvalue is not a short categorical label (letters, digits, spaces,_,.and-).
Templates carry configuration only. Never put customer names, ids, example records or anything from production into a template spec, private or public.
A published template is listed in GET /templates under the id you chose,
for example order-desk.