Automations
26 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List automations for a space#
/automationsTokenReturns all automations in the given space. Pass `archived=true` to retrieve archived automations only. Requires `can_view_automations` space permission.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | Space UUID |
archived | Query | boolean | Return archived automations (default: false) |
Antworten
- 200Array of automations
- 400spaceId query param required
- 401Not authenticated
- 403Insufficient space permissions
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a new automation#
/automationsTokenCreates a draft automation in the given space. Requires `can_create_automations` space permission.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
space_idPflicht | string | Space ID the automation belongs to |
namePflicht | string | Automation name |
description | string | Automation description |
icon | string | Icon identifier |
Antworten
- 201Automation created
- 400Validation error
- 401Not authenticated
- 403Insufficient space permissions
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"space_id":"…","name":"…"}'Get automation by ID#
/automations/{id}TokenReturns a single automation including its current status, webhook token, and published version reference.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
spaceId | Query | string | Space UUID (optional context) |
Antworten
- 200Automation details
- 400spaceId does not match this automation
- 401Not authenticated
- 404Automation not found
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update automation metadata#
/automations/{id}TokenUpdates name, description, icon, or webhook rate limits. Does not affect the published version or status.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | – |
description | string | – |
icon | string | – |
webhook_rate_limit_per_sec | number | – |
webhook_rate_limit_per_hour | number | – |
max_concurrent_runs | object | – |
webhook_signature_scheme | string | Werte: |
Antworten
- 200Updated automation
- 400Validation error
- 401Not authenticated
- 404Automation not found
curl -X PUT "https://xapi.ambertech.cloud/api/v1/automations/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","description":"…","icon":"…"}'Archive automation (soft delete)#
/automations/{id}TokenMarks the automation as archived (`is_archived=true`). Archived automations are hidden from the default list but can be retrieved with `?archived=true`. Use POST /:id/restore to unarchive.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 204Automation archived — no body returned
- 401Not authenticated
- 404Automation not found
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/automations/{id}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get run analytics for an automation (last 30 days)#
/automations/{id}/analyticsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
days | Query | string | Number of days back (default 30) |
startDate | Query | string | ISO date string start (overrides days) |
endDate | Query | string | ISO date string end (default today) |
spaceId | Query | any | – |
Antworten
- 200Analytics payload
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/{id}/analytics" \
-H "Authorization: Bearer $XISUITE_TOKEN"Clone an automation#
/automations/{id}/cloneTokenCreates a copy of the automation named `{original name} (copy)`. If the source has a draft version, it is also cloned into the new automation. The clone starts in `draft` status.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID to clone |
Antworten
- 201Cloned automation
- 401Not authenticated
- 404Source automation not found
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/clone" \
-H "Authorization: Bearer $XISUITE_TOKEN"Pause a published automation#
/automations/{id}/pauseTokenSets automation status to `paused`. Stops all future trigger executions (webhook deliveries and cron schedules). The automation can be resumed with POST /:id/resume.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 200Automation with status=paused
- 401Not authenticated
- 404Automation not found
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/pause" \
-H "Authorization: Bearer $XISUITE_TOKEN"Permanently delete an automation#
/automations/{id}/permanentTokenHard-deletes the automation and all related data (versions, runs, steps, subscriptions, schedules). Allowed from any state. This action is irreversible.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 204Automation permanently deleted
- 401Not authenticated
- 404Automation not found
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/automations/{id}/permanent" \
-H "Authorization: Bearer $XISUITE_TOKEN"List users with explicit access to this automation#
/automations/{id}/permissionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 200OK
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/{id}/permissions" \
-H "Authorization: Bearer $XISUITE_TOKEN"Grant a user access to this automation#
/automations/{id}/permissionsTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 201Erstellt
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/permissions" \
-H "Authorization: Bearer $XISUITE_TOKEN"Revoke a user's access to this automation#
/automations/{id}/permissions/{permId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
permIdPflicht | Pfad | string | Permission row UUID |
Antworten
- 204Kein Inhalt
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/automations/{id}/permissions/{permId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Publish the current draft version#
/automations/{id}/publishTokenValidates the draft definition (must have at least one trigger node), marks it as the published version, and sets automation status to `published`. For `webhook.received` triggers: generates a unique `webhook_token` if not already set. For `schedule.cron` triggers: creates or updates the automation schedule with the computed next run time.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 200Published automation with updated status and version
- 400No nodes, or no trigger node in definition
- 401Not authenticated
- 404Automation or draft not found
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/publish" \
-H "Authorization: Bearer $XISUITE_TOKEN"Restore (unarchive) an automation#
/automations/{id}/restoreTokenSets `is_archived=false` on the automation, making it visible in the default list again. The automation status is unchanged.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 200`{ id }` of the restored automation
- 401Not authenticated
- 404Automation not found
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/restore" \
-H "Authorization: Bearer $XISUITE_TOKEN"Resume a paused automation#
/automations/{id}/resumeTokenSets automation status back to `published`. Only works when the current status is `paused`. Returns 400 if the automation is not currently paused.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Antworten
- 200Automation with status=published
- 400Automation is not currently paused
- 401Not authenticated
- 404Automation not found
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/resume" \
-H "Authorization: Bearer $XISUITE_TOKEN"Save the current automation draft as a reusable template#
/automations/{id}/save-as-templateTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
idPflicht | Pfad | string | Automation UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
spaceIdPflicht | string | Space UUID to save the template into |
name | string | Template name — defaults to the trigger kind if omitted |
description | string | – |
category | string | Werte: |
tags | string[] | – |
icon | string | |
svg_icon | string | – |
color | string | – |
is_public | boolean |
Antworten
- 201Created template
- 400No draft version found
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/{id}/save-as-template" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"…"}'Get available action nodes catalog#
/automations/actions/catalogTokenReturns all available automation action node definitions including their config schemas, output schemas, and connection requirements. Used by the automation editor to render the node palette and configuration forms. Requires `can_view_automations` space permission.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 200Array of action node definitions
- 400spaceId is required
- 401Not authenticated
- 403Insufficient space permissions
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/actions/catalog" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get space-level automation config#
/automations/space-configTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 200Space automation config
- 404Space not found
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/space-config" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update space-level automation config#
/automations/space-configTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | any | Space UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
spaceIdPflicht | string | Space UUID |
max_concurrent_runs | object | Maximum concurrent automation runs for this space. null or omitted = unlimited. |
Antworten
- 200Updated space automation config
- 404Space not found
curl -X PATCH "https://xapi.ambertech.cloud/api/v1/automations/space-config" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"…"}'List automation templates#
/automations/templatesTokenReturns system templates merged with any custom templates saved for the space. Custom templates with the same ID take precedence.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 200Array of automation templates
- 400spaceId query param required
- 401Not authenticated
- 403Insufficient space permissions
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/templates" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a custom automation template directly#
/automations/templatesTokenCreates a template from scratch without needing an existing automation draft. Use POST /:id/save-as-template to create from an existing automation.
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
spaceIdPflicht | string | Space UUID |
namePflicht | string | Template name (1–200 chars) |
description | string | – |
category | string | Werte: |
tags | string[] | – |
icon | string | |
svg_icon | string | – |
color | string | – |
trigger_kindPflicht | string | Trigger event kind (e.g. app.task.created) |
trigger_config | object | Trigger configuration JSON — defaults to {} |
definition | object | Automation definition with nodes and edges arrays — defaults to empty canvas |
is_public | boolean |
Antworten
- 201Created template
- 400Validation error
- 401Not authenticated
- 403Insufficient space permissions
curl -X POST "https://xapi.ambertech.cloud/api/v1/automations/templates" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"…","name":"…","trigger_kind":"…"}'Get a single automation template by ID#
/automations/templates/{templateId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
templateIdPflicht | Pfad | string | Template UUID |
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 200Template details
- 400spaceId query param required
- 401Not authenticated
- 403Insufficient space permissions
- 404Template not found
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/templates/{templateId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update a custom automation template#
/automations/templates/{templateId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
templateIdPflicht | Pfad | string | Template UUID |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
spaceIdPflicht | string | Space UUID |
name | string | – |
description | string | – |
category | string | Werte: |
tags | string[] | – |
icon | string | – |
svg_icon | string | – |
color | string | – |
is_public | boolean | – |
definition | object | Updated workflow definition (nodes + edges) |
Antworten
- 200Updated template
- 400Validation error
- 401Not authenticated
- 403Insufficient space permissions
- 404Template not found
curl -X PUT "https://xapi.ambertech.cloud/api/v1/automations/templates/{templateId}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"…"}'Delete a custom automation template#
/automations/templates/{templateId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
templateIdPflicht | Pfad | string | Template UUID |
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 204Deleted
- 400spaceId query param required
- 401Not authenticated
- 403Insufficient space permissions
- 404Template not found
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/automations/templates/{templateId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"List public marketplace templates#
/automations/templates/marketplaceTokenReturns all public templates shared by other spaces. Excludes templates from the caller's own space.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 200Array of public automation templates
- 400spaceId query param required
- 401Not authenticated
- 403Insufficient space permissions
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/templates/marketplace" \
-H "Authorization: Bearer $XISUITE_TOKEN"Get available trigger nodes catalog#
/automations/triggers/catalogTokenReturns all available automation trigger node definitions including their config schemas and output schemas. Used by the automation editor to render the trigger node palette and provide {{ trigger.* }} template variable autocomplete. Requires `can_view_automations` space permission.
Parameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
spaceIdPflicht | Query | string | Space UUID |
Antworten
- 200Array of trigger node definitions
- 400spaceId is required
- 401Not authenticated
- 403Insufficient space permissions
curl -X GET "https://xapi.ambertech.cloud/api/v1/automations/triggers/catalog" \
-H "Authorization: Bearer $XISUITE_TOKEN"