Read Ad Publishing Results
curl --request GET \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}', 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}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(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>"
}Ad drafts and jobs
Read Ad Publishing Results
Read the canonical durable ad job, including action outcomes, verification receipts, errors, partial accepted identities, cancellation and retry eligibility. Queued or running is not successful publication. Failed or uncertain writes must remain visible and must not be blindly replayed.
GET
/
platform
/
{resourceUrl}
/
action-jobs
/
{jobId}
Read Ad Publishing Results
curl --request GET \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/action-jobs/{jobId}', 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}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(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
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.