Download OpenAPI specification:
The operations of the automations package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.
Mails and in-app messages sent when something happens or a date comes round, with conditions, recipients, a test run, a run log and presets.
HR only; managers, employees and admins without HR receive 403. Sorted by name. Only the automations of the caller's company.
| triggerKey | string (TriggerKey) ^[a-z][A-Za-z]*\.[a-z][A-Za-z]*$ Examples: triggerKey=employee.changed The key of a trigger of an installed package, such as |
| active | boolean |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": 0,
- "recipients": {
- "roles": [
- "string"
], - "employees": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "addresses": [
- "string"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true,
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00"
}
]
}The name is unique in the company (name). The trigger is one of an installed package (triggerKey); the conditions use its attributes with operators and values of their type (conditions[0].value); the roles are roles of the trigger, the employees employees of the company, the addresses valid (recipients.addresses[0]). The mail template and the document templates are templates of the company in the trigger's placeholder context. A placeholder of a data category one of the recipients may not receive is refused on recipients, naming the placeholder and the recipient. The change history records it.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| Idempotency-Key | string <uuid> Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 ( |
| name required | string [ 1 .. 100 ] characters Unique in the company, without regard to case. |
| triggerKey required | string (TriggerKey) ^[a-z][A-Za-z]*\.[a-z][A-Za-z]*$ The key of a trigger of an installed package, such as |
| match | string (Match) Enum: "all" "any"
|
Array of Comparison (object) or ConditionGroup (object) (Condition) <= 20 items Without conditions the automation fires for every event of the trigger. | |
| watchedAttributes | Array of strings unique For a |
| offsetDays | integer [ -30 .. 30 ] For a |
required | object (AutomationRecipients) Roles of the trigger, fixed employees of the company and up to 10 fixed addresses; at least one of them. Every recipient receives a mail of their own, and a person reached twice receives one. |
| channel | string (Channel) Enum: "email" "inApp" "both" E-mail, an in-app message or both; external addresses always get e-mail. |
| mailTemplateId required | string <uuid> (Uuid) |
| documentTemplateIds | Array of strings <uuid> (Uuid) <= 5 items unique [ items <uuid > ] Templates attached to the mail as PDF, rendered for each recipient. |
| senderDisplay | string (SenderDisplay) Enum: "company" "actorName" The display name of the mails: the company's sender name ( |
| active | boolean |
{- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": -30,
- "recipients": {
- "roles": [
- "string"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "addresses": [
- "user@example.com"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": 0,
- "recipients": {
- "roles": [
- "string"
], - "employees": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "addresses": [
- "string"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true,
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00"
}| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": 0,
- "recipients": {
- "roles": [
- "string"
], - "employees": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "addresses": [
- "string"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true,
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00"
}Checked like a new automation. The change applies to the next event; an event already evaluated is not evaluated again.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| If-Match required | string ETag of the representation being modified (optimistic locking). A stale value yields 412. |
| name | string [ 1 .. 100 ] characters |
| triggerKey | string (TriggerKey) ^[a-z][A-Za-z]*\.[a-z][A-Za-z]*$ The key of a trigger of an installed package, such as |
| match | string (Match) Enum: "all" "any"
|
Array of Comparison (object) or ConditionGroup (object) (Condition) <= 20 items | |
| watchedAttributes | Array of strings unique |
| offsetDays | integer [ -30 .. 30 ] |
object (AutomationRecipients) Roles of the trigger, fixed employees of the company and up to 10 fixed addresses; at least one of them. Every recipient receives a mail of their own, and a person reached twice receives one. | |
| channel | string (Channel) Enum: "email" "inApp" "both" E-mail, an in-app message or both; external addresses always get e-mail. |
| mailTemplateId | string <uuid> (Uuid) |
| documentTemplateIds | Array of strings <uuid> (Uuid) <= 5 items unique [ items <uuid > ] |
| senderDisplay | string (SenderDisplay) Enum: "company" "actorName" The display name of the mails: the company's sender name ( |
| active | boolean |
{- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": -30,
- "recipients": {
- "roles": [
- "string"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "addresses": [
- "user@example.com"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true
}{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": 0,
- "recipients": {
- "roles": [
- "string"
], - "employees": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "addresses": [
- "string"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true,
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00"
}An event after the deletion sends nothing; the runs of the automation are deleted with it.
| id required | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "type": "../dictionary",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "../dictionary",
- "code": 0,
- "correlationId": "string",
- "violations": [
- {
- "propertyPath": "startDate",
- "message": "string",
- "code": "string",
- "existingEmployeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "status": "pending",
- "suggestion": "string",
- "pair": "string",
- "scheme": "light",
- "ratio": "string",
- "required": "string",
- "proposal": "string",
- "requiredBy": "string",
- "line": 0,
- "column": 0,
- "placeholder": "string",
- "slot": "string",
- "language": "string",
- "maxBytes": 0,
- "formats": "string"
}
], - "dependents": [
- {
- "type": "string",
- "count": 1,
- "effect": "kept"
}
]
}Each trigger with its attributes, placeholders and recipient roles, labelled in the caller's language. A package that is not installed contributes nothing.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "key": "employee.changed",
- "label": "string",
- "kind": "created",
- "subjectType": "string",
- "placeholderContext": "string",
- "attributes": [
- {
- "key": "string",
- "label": "string",
- "type": "text",
- "category": "directory",
- "options": [
- {
- "value": "string",
- "label": "string"
}
], - "references": "string"
}
], - "placeholders": [
- {
- "key": "recipient.firstName",
- "label": "string",
- "category": "directory"
}
], - "recipientRoles": [
- {
- "key": "subjectManager",
- "label": "string",
- "categories": [
- "directory"
]
}
]
}
]
}Each firing of an automation with its recipients and their outcome, the newest first. Runs are kept 365 days. from and to are days in the company's time zone, both included.
| automationId | string <uuid> (Uuid) Examples: automationId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b |
| outcome | string (RunOutcome) Enum: "completed" "failed"
|
| from | string <date> (Date) Examples: from=2026-10-01 Inclusive start date of the period. |
| to | string <date> (Date) Examples: to=2026-10-01 Inclusive end date of the period. |
| page | integer >= 1 Default: 1 |
| perPage | integer [ 1 .. 200 ] Default: 50 |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "automationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "automationName": "string",
- "triggerKey": "employee.changed",
- "subjectType": "string",
- "subjectId": "string",
- "outcome": "completed",
- "error": "string",
- "createdAt": "2026-10-01T08:15:00+02:00",
- "recipients": [
- {
- "displayName": "string",
- "kind": "person",
- "channel": "email",
- "outcome": "queued",
- "reason": "string"
}
]
}
], - "meta": {
- "page": 1,
- "perPage": 1,
- "totalItems": 0,
- "facets": {
- "property1": {
- "property1": 1,
- "property2": 1
}, - "property2": {
- "property1": 1,
- "property2": 1
}
}, - "groupBy": "string",
- "groups": [
- {
- "key": "string",
- "label": "string",
- "count": 1
}
]
}
}Evaluates a saved or an unsaved automation against a record of its trigger's subject and returns whether the conditions hold, the recipients with the reason one would be skipped, and the mail per language, without sending anything. With sendToMe the mail in the caller's language goes to the caller alone. A record the company does not have is refused on subjectId.
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
| automationId | string <uuid> (Uuid) |
object (AutomationInput) | |
| subjectId required | string <= 64 characters The record of the trigger's subject to test against, such as an employee. |
| sendToMe | boolean Sends the rendered mail to the caller only. |
{- "automationId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "automation": {
- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": -30,
- "recipients": {
- "roles": [
- "string"
], - "employeeIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "addresses": [
- "user@example.com"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true
}, - "subjectId": "string",
- "sendToMe": true
}{- "conditionsMet": true,
- "recipients": [
- {
- "displayName": "string",
- "kind": "person",
- "reason": "string"
}
], - "renderings": [
- {
- "language": "string",
- "subject": "string",
- "html": "string",
- "text": "string"
}
], - "sentToMe": true
}| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "items": [
- {
- "key": "string",
- "name": "string",
- "triggerKey": "employee.changed",
- "recipientRoles": [
- "string"
], - "channel": "email",
- "offsetDays": 0,
- "installed": true
}
]
}Adds the preset's mail template with its English and German texts and an active automation using it, both named after the preset in the caller's language. A preset whose name the company has already answers 409.
| key required | string^[a-z][A-Za-z]{1,59}$ |
| Company-Id | string <uuid> (Uuid) Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403. |
{- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "name": "string",
- "triggerKey": "employee.changed",
- "match": "all",
- "conditions": [
- {
- "attribute": "string",
- "operator": "equals",
- "value": "string"
}
], - "watchedAttributes": [
- "string"
], - "offsetDays": 0,
- "recipients": {
- "roles": [
- "string"
], - "employees": [
- {
- "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "displayName": "string",
}
], - "addresses": [
- "string"
]
}, - "channel": "email",
- "mailTemplateId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
- "documentTemplateIds": [
- "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
], - "senderDisplay": "company",
- "active": true,
- "createdAt": "2026-10-01T08:15:00+02:00",
- "updatedAt": "2026-10-01T08:15:00+02:00"
}