curl --request POST \
--url https://api.bizzyco.ai/v1/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Auto-reply to inquiries",
"instructions": "When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.",
"description": "Sends an auto-reply to new inquiries",
"agentId": "123e4567-e89b-12d3-a456-426614174000",
"enabled": true,
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"groupName": "Customer Support",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": [
"<string>"
]
},
"maxExecutions": 100,
"expiresAt": "2025-12-31T23:59:59Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Auto-reply to inquiries',
instructions: 'When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.',
description: 'Sends an auto-reply to new inquiries',
agentId: '123e4567-e89b-12d3-a456-426614174000',
enabled: true,
groupId: '123e4567-e89b-12d3-a456-426614174000',
groupName: 'Customer Support',
groupMetadata: {
purpose: '<string>',
createdBy: '<string>',
aiTaskId: '<string>',
tags: ['<string>']
},
maxExecutions: 100,
expiresAt: '2025-12-31T23:59:59Z'
})
};
fetch('https://api.bizzyco.ai/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bizzyco.ai/v1/automations"
payload = {
"name": "Auto-reply to inquiries",
"instructions": "When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.",
"description": "Sends an auto-reply to new inquiries",
"agentId": "123e4567-e89b-12d3-a456-426614174000",
"enabled": True,
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"groupName": "Customer Support",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": ["<string>"]
},
"maxExecutions": 100,
"expiresAt": "2025-12-31T23:59:59Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bizzyco.ai/v1/automations"
payload := strings.NewReader("{\n \"name\": \"Auto-reply to inquiries\",\n \"instructions\": \"When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.\",\n \"description\": \"Sends an auto-reply to new inquiries\",\n \"agentId\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"enabled\": true,\n \"groupId\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"groupName\": \"Customer Support\",\n \"groupMetadata\": {\n \"purpose\": \"<string>\",\n \"createdBy\": \"<string>\",\n \"aiTaskId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"maxExecutions\": 100,\n \"expiresAt\": \"2025-12-31T23:59:59Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"triggerEvent": "<string>",
"triggerType": "event",
"cronExpression": "<string>",
"nextRunAt": "2023-11-07T05:31:56Z",
"lastScheduledRunAt": "2023-11-07T05:31:56Z",
"instructions": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"isActive": true,
"disabledAt": "2023-11-07T05:31:56Z",
"disabledReason": "tier_downgrade",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"grantedTools": [
"<string>"
],
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "<string>",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": [
"<string>"
]
},
"maxExecutions": 123,
"currentExecutions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"status": "draft"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}Create automation
Create a new automation. It runs as the agent named by agentId, or as the organization’s default agent when agentId is omitted, and can only reach what that agent can reach.
curl --request POST \
--url https://api.bizzyco.ai/v1/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Auto-reply to inquiries",
"instructions": "When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.",
"description": "Sends an auto-reply to new inquiries",
"agentId": "123e4567-e89b-12d3-a456-426614174000",
"enabled": true,
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"groupName": "Customer Support",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": [
"<string>"
]
},
"maxExecutions": 100,
"expiresAt": "2025-12-31T23:59:59Z"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Auto-reply to inquiries',
instructions: 'When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.',
description: 'Sends an auto-reply to new inquiries',
agentId: '123e4567-e89b-12d3-a456-426614174000',
enabled: true,
groupId: '123e4567-e89b-12d3-a456-426614174000',
groupName: 'Customer Support',
groupMetadata: {
purpose: '<string>',
createdBy: '<string>',
aiTaskId: '<string>',
tags: ['<string>']
},
maxExecutions: 100,
expiresAt: '2025-12-31T23:59:59Z'
})
};
fetch('https://api.bizzyco.ai/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bizzyco.ai/v1/automations"
payload = {
"name": "Auto-reply to inquiries",
"instructions": "When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.",
"description": "Sends an auto-reply to new inquiries",
"agentId": "123e4567-e89b-12d3-a456-426614174000",
"enabled": True,
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"groupName": "Customer Support",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": ["<string>"]
},
"maxExecutions": 100,
"expiresAt": "2025-12-31T23:59:59Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bizzyco.ai/v1/automations"
payload := strings.NewReader("{\n \"name\": \"Auto-reply to inquiries\",\n \"instructions\": \"When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours.\",\n \"description\": \"Sends an auto-reply to new inquiries\",\n \"agentId\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"enabled\": true,\n \"groupId\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"groupName\": \"Customer Support\",\n \"groupMetadata\": {\n \"purpose\": \"<string>\",\n \"createdBy\": \"<string>\",\n \"aiTaskId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n },\n \"maxExecutions\": 100,\n \"expiresAt\": \"2025-12-31T23:59:59Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"triggerEvent": "<string>",
"triggerType": "event",
"cronExpression": "<string>",
"nextRunAt": "2023-11-07T05:31:56Z",
"lastScheduledRunAt": "2023-11-07T05:31:56Z",
"instructions": "<string>",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"isActive": true,
"disabledAt": "2023-11-07T05:31:56Z",
"disabledReason": "tier_downgrade",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"grantedTools": [
"<string>"
],
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupName": "<string>",
"groupMetadata": {
"purpose": "<string>",
"createdBy": "<string>",
"aiTaskId": "<string>",
"tags": [
"<string>"
]
},
"maxExecutions": 123,
"currentExecutions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"status": "draft"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}Authorizations
API key authentication via Bearer token
Headers
Key that makes this request safe to retry. Reuse the same value when retrying a request that may already have succeeded — the original response is replayed with an Idempotency-Replay: true header. Use a new value for a new operation.
1 - 255"9f8c2b1a-4d3e-4a6b-8c1d-2e3f4a5b6c7d"
Body
"Auto-reply to inquiries"
When the automation runs and what it does, in plain English. The trigger and any schedule are derived from this text.
"When a new message is received, reply to the sender thanking them for their inquiry and let them know we will respond within 24 hours."
"Sends an auto-reply to new inquiries"
The agent the automation runs as. Omit it to use the organization's default agent. The agent must belong to your organization and be active.
"123e4567-e89b-12d3-a456-426614174000"
true
"123e4567-e89b-12d3-a456-426614174000"
"Customer Support"
Show child attributes
Show child attributes
100
"2025-12-31T23:59:59Z"