Start eligible failed actions again
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/retry \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"indexes": [
49
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({indexes: [49]})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/retry"
payload = { "indexes": [49] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"job": {
"id": "<string>",
"status": "staging",
"actionCount": 1,
"completedCount": 1,
"succeededCount": 1,
"failedCount": 1,
"actions": [
{
"index": 1,
"capabilityId": "<string>",
"label": "<string>",
"status": "staged",
"data": "<unknown>",
"error": "<string>",
"httpStatus": 123,
"retryable": true,
"details": "<unknown>"
}
],
"canRetry": true,
"canCancel": true,
"cancelRequestedAt": "<string>"
}
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}Ad drafts and jobs
Start eligible failed actions again
This low-level retry starts a new job immediately and accepts only failures the server considers safe. Prefer retry-draft for review before publishing. Never replay an action with an uncertain or possibly completed platform mutation.
POST
/
platform
/
{resourceUrl}
/
action-jobs
/
{jobId}
/
retry
Start eligible failed actions again
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/retry \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"indexes": [
49
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({indexes: [49]})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/retry"
payload = { "indexes": [49] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"job": {
"id": "<string>",
"status": "staging",
"actionCount": 1,
"completedCount": 1,
"succeededCount": 1,
"failedCount": 1,
"actions": [
{
"index": 1,
"capabilityId": "<string>",
"label": "<string>",
"status": "staged",
"data": "<unknown>",
"error": "<string>",
"httpStatus": 123,
"retryable": true,
"details": "<unknown>"
}
],
"canRetry": true,
"canCancel": true,
"cancelRequestedAt": "<string>"
}
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}{
"error": "Store not found",
"requestId": "<string>",
"details": "<unknown>",
"retryAfter": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
A server-side Bily API key created under Settings > AI tools > Access keys. Select the intended workspace before creating it.
Headers
An organization ID returned by GET /context or GET /organizations. Omit it when a scoped key supplies the organization. Otherwise provide it when no organization is selected.
Example:
"org_01J8W7T9G3E6ZQ4M2K5N8P1R0S"
Path Parameters
Exact workspace URL returned by GET /context.
Identifier returned by the matching Bily read or creation operation.
Body
application/json
Maximum array length:
100Required range:
0 <= x <= 99