> For the complete documentation index, see [llms.txt](https://developer.kizen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.kizen.com/api/automations.md).

# Automations

## Trigger automation via webhook (GET)

> \
> &#x20;       Triggers an automation using webhook data sent via GET request query parameters.\
> &#x20;       Query parameters are extracted using configured JSONPath extractors.\
> \
> &#x20;       Authentication depends on the webhook's configured authentication type:\
> &#x20;       \- Standard Kizen API Authentication: API key headers (X-API-Key, X-User-ID, X-Business-ID),\
> &#x20;         OAuth2 bearer token, or an active session\
> &#x20;       \- HTTP Header: the configured header must carry the configured secret value\
> &#x20;       \- Basic Authorization Header: Authorization: Basic \<base64(username:password)>\
> &#x20;       \- None: no authentication is enforced\
> &#x20;       Non-standard authentication types require the business\_id query parameter.\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Kizen API","version":"1.0.0"},"security":[{"businessId":[],"userId":[],"apiKey":[]}],"components":{"securitySchemes":{"businessId":{"type":"apiKey","in":"header","name":"X-BUSINESS-ID"},"userId":{"type":"apiKey","in":"header","name":"X-USER-ID"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"WebhookTriggerResponse":{"type":"object","properties":{"execution_id":{"type":"string","format":"uuid","nullable":true},"automation_id":{"type":"string","format":"uuid"}},"required":["automation_id","execution_id"]}}},"paths":{"/api/automations/{automation_identifier}/webhook/{webhook_name}":{"get":{"operationId":"trigger_webhook_get","description":"\n        Triggers an automation using webhook data sent via GET request query parameters.\n        Query parameters are extracted using configured JSONPath extractors.\n\n        Authentication depends on the webhook's configured authentication type:\n        - Standard Kizen API Authentication: API key headers (X-API-Key, X-User-ID, X-Business-ID),\n          OAuth2 bearer token, or an active session\n        - HTTP Header: the configured header must carry the configured secret value\n        - Basic Authorization Header: Authorization: Basic <base64(username:password)>\n        - None: no authentication is enforced\n        Non-standard authentication types require the business_id query parameter.\n        ","summary":"Trigger automation via webhook (GET)","parameters":[{"in":"path","name":"automation_identifier","schema":{"type":"string"},"required":true},{"in":"query","name":"business_id","schema":{"type":"string"},"description":"Business UUID; required when the webhook uses any authentication type other than Standard Kizen API"},{"in":"query","name":"record_email","schema":{"type":"string"},"description":"Record email for contact-based automations (query param, or body for JSON webhooks)"},{"in":"query","name":"record_id","schema":{"type":"string"},"description":"Record UUID for record-based automations (query param, or body for JSON webhooks)"},{"in":"query","name":"record_name","schema":{"type":"string"},"description":"Record name for custom object automations (query param, or body for JSON webhooks)"},{"in":"path","name":"webhook_name","schema":{"type":"string"},"description":"The webhook name (must match trigger configuration)","required":true}],"tags":["automations"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTriggerResponse"}}},"description":""},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""},"401":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""},"403":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""},"404":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""}}}}}}
```

## Trigger automation via webhook (POST)

> \
> &#x20;       Triggers an automation using webhook data sent via POST request.\
> &#x20;       The body is read according to the webhook's configured content type, not the request's Content-Type header:\
> &#x20;       \- application/json: the body is parsed as JSON (invalid JSON returns 400) and mapped to automation variables\
> &#x20;         using JSONPath extractors\
> &#x20;       \- Any other content type (form data, XML, plain text, CSV, ...): the body is kept as raw text, available\
> &#x20;         through the POST Body value when full body extraction is enabled\
> \
> &#x20;       Authentication depends on the webhook's configured authentication type:\
> &#x20;       \- Standard Kizen API Authentication: API key headers (X-API-Key, X-User-ID, X-Business-ID),\
> &#x20;         OAuth2 bearer token, or an active session (session requests must send Content-Type: application/json)\
> &#x20;       \- HTTP Header: the configured header must carry the configured secret value\
> &#x20;       \- Basic Authorization Header: Authorization: Basic \<base64(username:password)>\
> &#x20;       \- None: no authentication is enforced\
> &#x20;       Non-standard authentication types require the business\_id query parameter.\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Kizen API","version":"1.0.0"},"security":[{"businessId":[],"userId":[],"apiKey":[]}],"components":{"securitySchemes":{"businessId":{"type":"apiKey","in":"header","name":"X-BUSINESS-ID"},"userId":{"type":"apiKey","in":"header","name":"X-USER-ID"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"WebhookPayloadRequest":{"type":"object","properties":{"record_id":{"type":"string","format":"uuid","description":"Record UUID for record-based automations (fallback if not in query)"},"record_name":{"type":"string","minLength":1,"description":"Record name for custom object automations (fallback if not in query)"},"record_email":{"type":"string","format":"email","minLength":1,"description":"Record email for contact-based automations (fallback if not in query)"},"data":{"description":"Arbitrary webhook payload data"}},"required":["data"]},"WebhookTriggerResponse":{"type":"object","properties":{"execution_id":{"type":"string","format":"uuid","nullable":true},"automation_id":{"type":"string","format":"uuid"}},"required":["automation_id","execution_id"]}}},"paths":{"/api/automations/{automation_identifier}/webhook/{webhook_name}":{"post":{"operationId":"trigger_webhook_post","description":"\n        Triggers an automation using webhook data sent via POST request.\n        The body is read according to the webhook's configured content type, not the request's Content-Type header:\n        - application/json: the body is parsed as JSON (invalid JSON returns 400) and mapped to automation variables\n          using JSONPath extractors\n        - Any other content type (form data, XML, plain text, CSV, ...): the body is kept as raw text, available\n          through the POST Body value when full body extraction is enabled\n\n        Authentication depends on the webhook's configured authentication type:\n        - Standard Kizen API Authentication: API key headers (X-API-Key, X-User-ID, X-Business-ID),\n          OAuth2 bearer token, or an active session (session requests must send Content-Type: application/json)\n        - HTTP Header: the configured header must carry the configured secret value\n        - Basic Authorization Header: Authorization: Basic <base64(username:password)>\n        - None: no authentication is enforced\n        Non-standard authentication types require the business_id query parameter.\n        ","summary":"Trigger automation via webhook (POST)","parameters":[{"in":"path","name":"automation_identifier","schema":{"type":"string"},"required":true},{"in":"query","name":"business_id","schema":{"type":"string"},"description":"Business UUID; required when the webhook uses any authentication type other than Standard Kizen API"},{"in":"query","name":"record_email","schema":{"type":"string"},"description":"Record email for contact-based automations (query param, or body for JSON webhooks)"},{"in":"query","name":"record_id","schema":{"type":"string"},"description":"Record UUID for record-based automations (query param, or body for JSON webhooks)"},{"in":"query","name":"record_name","schema":{"type":"string"},"description":"Record name for custom object automations (query param, or body for JSON webhooks)"},{"in":"path","name":"webhook_name","schema":{"type":"string"},"description":"The webhook name (must match trigger configuration)","required":true}],"tags":["automations"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayloadRequest"}},"application/javascript":{"schema":{"type":"string"}},"application/xml":{"schema":{"type":"string"}},"application/xhtml+xml":{"schema":{"type":"string"}},"application/x-www-form-urlencoded":{"schema":{"type":"string"}},"text/plain":{"schema":{"type":"string"}},"text/html":{"schema":{"type":"string"}},"text/xml":{"schema":{"type":"string"}},"text/csv":{"schema":{"type":"string"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTriggerResponse"}}},"description":""},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""},"401":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""},"403":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""},"404":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{},"description":"Unspecified response body"}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.kizen.com/api/automations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
