List an Automation's runs
curl --request GET \
--url https://api.social-api.ai/v1/automations/{id}/firings \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/automations/{id}/firings', 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/{id}/firings"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"created_at": "<string>",
"event_id": "17858893269577012",
"id": "afr_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"outcomes": [
{
"action": "private_reply",
"error_code": "platform.instagram.private_reply_ineligible",
"status": "sent"
}
],
"person_id": "17841400000000000",
"step_key": "start"
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Automations
List an Automation's runs
Lists the Automation’s runs from the last 30 days, newest first, with the outcome of each action. A failed action carries the error code the same API call would have returned.
GET
/
automations
/
{id}
/
firings
List an Automation's runs
curl --request GET \
--url https://api.social-api.ai/v1/automations/{id}/firings \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/automations/{id}/firings', 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/{id}/firings"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"created_at": "<string>",
"event_id": "17858893269577012",
"id": "afr_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"outcomes": [
{
"action": "private_reply",
"error_code": "platform.instagram.private_reply_ineligible",
"status": "sent"
}
],
"person_id": "17841400000000000",
"step_key": "start"
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Automation ID
Query Parameters
next_cursor from the previous page
Page size, 1 to 100, default 20