List a workflow’s webhook endpoints
GET
/automation/{id}/webhook
One row per webhook endpoint of the workflow: every trigger in the draft (`status: draft_only` until published), plus any still-live endpoint of the published version. Never carries a secret. Requires manage access.
Path Parameters
idstring
required·
Resource id
Response Body
next_cursorstring,null
prev_cursorstring,null
resultobject[]
can_manageboolean
created_atstring
endpoint_idstring
presetstring,null
previous_secret_expires_atstring,null
rotated_atstring,null
schemestring
Possible values:
standardhmactoken
secret_statestring
Possible values:
unrevealedrevealedprovidedmissing
statusstring
Possible values:
activeneeds_secretdraft_only
trigger_keystring
urlstring
curl -X GET 'https://api.elaichi.ai/automation/<id>/webhook' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json'const response = await fetch('https://api.elaichi.ai/automation/<id>/webhook', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/automation/<id>/webhook"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())