List Automations
curl --request GET \
--url https://api.social-api.ai/v1/automations \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/automations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"created_at": "<string>",
"failed_count": 123,
"fired_count": 123,
"id": "aut_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"name": "Send the link",
"once_per_person": true,
"post_ids": [
"<string>"
],
"sent_count": 123,
"status": "active",
"steps": [
{
"actions": [
{
"private_reply": {
"texts": [
"Here is the link: https://example.com"
]
},
"reply_comment": {
"texts": [
"Here is the link: https://example.com"
]
},
"send_dm": {
"texts": [
"Here is the link: https://example.com"
]
},
"type": "private_reply"
}
],
"buttons": [
{
"next_step": "check",
"title": "Open",
"type": "url",
"url": "https://example.com"
}
],
"fallthrough_step": "<string>",
"filters": [
{
"keyword": {
"keywords": [
"link",
"price"
],
"match": "contains"
},
"type": "keyword"
}
],
"key": "start"
}
],
"trigger": "comment",
"updated_at": "<string>"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Automations
List Automations
Lists your Automations, newest first. Filter to one account with account_id.
GET
/
automations
List Automations
curl --request GET \
--url https://api.social-api.ai/v1/automations \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/automations"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"created_at": "<string>",
"failed_count": 123,
"fired_count": 123,
"id": "aut_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"name": "Send the link",
"once_per_person": true,
"post_ids": [
"<string>"
],
"sent_count": 123,
"status": "active",
"steps": [
{
"actions": [
{
"private_reply": {
"texts": [
"Here is the link: https://example.com"
]
},
"reply_comment": {
"texts": [
"Here is the link: https://example.com"
]
},
"send_dm": {
"texts": [
"Here is the link: https://example.com"
]
},
"type": "private_reply"
}
],
"buttons": [
{
"next_step": "check",
"title": "Open",
"type": "url",
"url": "https://example.com"
}
],
"fallthrough_step": "<string>",
"filters": [
{
"keyword": {
"keywords": [
"link",
"price"
],
"match": "contains"
},
"type": "keyword"
}
],
"key": "start"
}
],
"trigger": "comment",
"updated_at": "<string>"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}