curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/read-snapchat-asset \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"assetType": "campaign",
"assetId": "<string>"
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adAccountId: '<string>',
sourceAuthority: {dataSourceAdAccountId: '<string>', dataSourceConnectorId: '<string>'},
payload: {assetType: 'campaign', assetId: '<string>'}
})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/read-snapchat-asset', 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}/actions/read-snapchat-asset"
payload = {
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"assetType": "campaign",
"assetId": "<string>"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"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>"
}Read Snapchat Asset, Budget Owner and Eligible Creatives
Read the exact connected Snapchat campaign, ad squad or ad, including verified parent linkage, current source fingerprint and eligibility. Request forManagement on an ad squad or ad for supported name/status fields and existing budget ownership, independently of Traffic creation eligibility. Ad-squad reads may include at most 50 existing same-advertiser Web View creatives with fingerprints.
curl --request POST \
--url https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/read-snapchat-asset \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"assetType": "campaign",
"assetId": "<string>"
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
adAccountId: '<string>',
sourceAuthority: {dataSourceAdAccountId: '<string>', dataSourceConnectorId: '<string>'},
payload: {assetType: 'campaign', assetId: '<string>'}
})
};
fetch('https://app.bily.ai/api/customer/v1/platform/{resourceUrl}/actions/read-snapchat-asset', 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}/actions/read-snapchat-asset"
payload = {
"adAccountId": "<string>",
"sourceAuthority": {
"dataSourceAdAccountId": "<string>",
"dataSourceConnectorId": "<string>"
},
"payload": {
"assetType": "campaign",
"assetId": "<string>"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"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.
Body
Response
Request completed. Inspect the returned state and any verification fields.
The response is of type object.