Get one workflow definition
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/workflows/{workflow_id} \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/workflows/{workflow_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/workflows/{workflow_id}"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"workflow": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"version": 123,
"active": 0,
"entry_dataset": "<string>",
"entry_conditions": "<string>",
"steps": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Workflows
Get one workflow definition
GET
/
admin
/
api
/
projects
/
{project_id}
/
workflows
/
{workflow_id}
Get one workflow definition
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/workflows/{workflow_id} \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/workflows/{workflow_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/workflows/{workflow_id}"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"workflow": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"version": 123,
"active": 0,
"entry_dataset": "<string>",
"entry_conditions": "<string>",
"steps": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Response
The definition. entry_conditions and steps are raw JSON strings.
Show child attributes
Show child attributes