Create automation
curl --request POST \
--url https://api.sigmora.org/v1/recipes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipeId": "x_mention_reply",
"inputs": {
"accountId": "acct_x_main",
"brandId": "brd_4b81"
},
"settings": {
"maxRunsPerHour": 6,
"autoReply": false
}
}
'import requests
url = "https://api.sigmora.org/v1/recipes"
payload = {
"recipeId": "x_mention_reply",
"inputs": {
"accountId": "acct_x_main",
"brandId": "brd_4b81"
},
"settings": {
"maxRunsPerHour": 6,
"autoReply": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
recipeId: 'x_mention_reply',
inputs: {accountId: 'acct_x_main', brandId: 'brd_4b81'},
settings: {maxRunsPerHour: 6, autoReply: false}
})
};
fetch('https://api.sigmora.org/v1/recipes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"recipe": {
"id": "<string>"
},
"created": true
}{
"success": true,
"recipe": {
"id": "<string>"
},
"created": true
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Create automation
Start a recipe with its answers and, optionally, its settings. Starting is free: each run is quoted, charged on delivery and refunded on failure. The same recipe with the same answers answers the one already running (200) instead of starting a second (201).
POST
/
v1
/
recipes
Create automation
curl --request POST \
--url https://api.sigmora.org/v1/recipes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipeId": "x_mention_reply",
"inputs": {
"accountId": "acct_x_main",
"brandId": "brd_4b81"
},
"settings": {
"maxRunsPerHour": 6,
"autoReply": false
}
}
'import requests
url = "https://api.sigmora.org/v1/recipes"
payload = {
"recipeId": "x_mention_reply",
"inputs": {
"accountId": "acct_x_main",
"brandId": "brd_4b81"
},
"settings": {
"maxRunsPerHour": 6,
"autoReply": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
recipeId: 'x_mention_reply',
inputs: {accountId: 'acct_x_main', brandId: 'brd_4b81'},
settings: {maxRunsPerHour: 6, autoReply: false}
})
};
fetch('https://api.sigmora.org/v1/recipes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"recipe": {
"id": "<string>"
},
"created": true
}{
"success": true,
"recipe": {
"id": "<string>"
},
"created": true
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Authorizations
A workspace API key.
Body
application/json