Register an Asset to an advertiser
Places an Asset in one advertiser’s provider-side library. Not a provider — an organization has several advertisers, and the bytes land in exactly one of them.
Returns immediately with a running Registration; poll GET /assets/{id} for its state. Video can take several minutes to process at the provider, which is normal rather than a failure.
A Registration that is running or ready refuses a second one for the same pair. A failed one starts again: send this request, and AdCrunch replaces it.
/assets/{id}/registrationsAuthorizationBearer token · headerrequiredSend Authorization: Bearer <credential>.
Use an API key (acr_…), from the AdCrunch console under Settings → API keys.
The credential names the organization, and no operation takes an organization parameter.
See https://docs.adcrunch.dev/api/authentication.
idstringrequiredapplication/jsonadvertiserIdstringrequiredThe advertiser whose library the bytes land in. Its provider decides how they get there.
The Registration, at running. providerIdentifier is null until the provider has the bytes — read the Asset to see it settle.
advertiserIdstringrequiredThe advertiser whose library holds the bytes.
assetIdstringrequiredcreatedAtnumberrequiredMilliseconds since the Unix epoch, UTC.
deletedAtnumber | nullrequiredSet when a failed attempt was tombstoned to free the pair for a retry. null on a live Registration.
failureReasonstring | nullrequiredThe provider’s own code and message. Only set on a failure.
idstringrequiredorganizationIdstringrequiredproviderstringrequiredThe provider that owns the advertiser.
metagadstiktokxopenaisnapchatdv360providerIdentifierstring | nullrequiredWhat the provider gave back — a Meta image hash or video id. null until the Registration is ready. This is the id a creative is built with.
statusstringrequiredVideo can stay running for several minutes while the provider processes it. That is normal, and not a failure.
runningreadyfailedupdatedAtnumber | nullrequiredMilliseconds since the Unix epoch, UTC.
uploadSessionIdstring | nullrequiredAn in-flight provider upload session, where the protocol has one. null for every image.
workflowIdstringrequiredThe durable execution that placed it.
The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. error is invalid_request, and issues names each field. Nothing was changed.
issuesobject[]requiredOne entry for each field that does not match.
Show propertiesHide properties
objectinstringrequiredThe part of the request that holds the field.
bodycookieheadersparamsquerymessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
pathstringrequiredA JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
invalid_requestmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No API key, or one that does not resolve. See the security scheme. error is unauthorized.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
unauthorizedmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The caller does not hold asset:write. error is forbidden.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
forbiddenmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No stored Asset with that id, or no such advertiser in this organization. The two are one answer, so the surface cannot be used to discover that an id is real. error is not_found.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
This Asset is already in that advertiser’s library. error is already_registered.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.