Create Automation
POST
/admin/automations
const url = 'http://localhost:9000/admin/automations';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","is_active":true,"trigger_type":"example","trigger_events":["example"],"trigger_signing_key":"example","log_incoming":true,"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/automations \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "is_active": true, "trigger_type": "example", "trigger_events": [ "example" ], "trigger_signing_key": "example", "log_incoming": true, "metadata": {} }'Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
description
string
is_active
boolean
trigger_type
required
string
trigger_events
Array<string>
trigger_signing_key
string
log_incoming
boolean
metadata
object
key
additional properties
any
Example generated
{ "name": "example", "description": "example", "is_active": true, "trigger_type": "example", "trigger_events": [ "example" ], "trigger_signing_key": "example", "log_incoming": true, "metadata": {}}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}