curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/start \
--header 'x-api-key: <api-key>'const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/start', 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}/start"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, 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>"
}Publish Reviewed Ad Draft or Batch
Explicitly start one exact saved draft or prepared batch after its full review and user approval. Budget and activation changes can affect spend; platform-native removal requires separate exact destructive approval. The durable job continues if the caller leaves; a queued response is not completion. Poll getAdActionJob for the same ID and inspect every failure and partial platform receipt. Never replay an ambiguous platform mutation.
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/start \
--header 'x-api-key: <api-key>'const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}/start', 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}/start"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, 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
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.
"org_01J8W7T9G3E6ZQ4M2K5N8P1R0S"
Path Parameters
Exact workspace URL returned by GET /context.
Identifier returned by the matching Bily read or creation operation.