Get one Asset
Fetches one Asset with its Registrations and a short-lived presigned previewUrl for the stored bytes. An Asset belonging to another organization is reported as missing, so the surface cannot be used to discover that an id is real.
This is also how a Registration is polled: status and providerIdentifier on each Registration settle here, and there is no separate status resource.
/assets/{id}AuthorizationBearer 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.
idstringrequiredThe Asset, its Registrations, and a signed link to the bytes that expires in 15 minutes.
contentHashstringrequiredAdCrunch’s own hash of the stored bytes. A hint for de-duplication, never an identity, and never a provider’s hash. Empty when the store reports none.
createdAtnumberrequiredMilliseconds since the Unix epoch, UTC.
createdBystringrequiredThe user who reserved the upload.
deletedAtnumber | nullrequiredAlways null here. A deleted Asset is not answered.
durationMsnumber | nullrequiredHow long the video runs, in milliseconds, read from the header of the file at finalize. null for an image. For a video, null when the file does not state it, or for an Asset uploaded before AdCrunch read it.
filenamestringrequiredThe name the file was uploaded under. Never a lookup key.
heightnumber | nullrequiredThe height in pixels as the file is displayed, with its rotation applied, read from the header of the file at finalize. null when the file does not state it, or for an Asset uploaded before AdCrunch read it.
idstringrequiredThe id of the Asset, ast_….
keystringrequiredWhere the bytes are held. Read-only, and never sent by you.
kindstringrequiredFollows from mimeType, so the stored bytes verify it at finalize. It selects how a provider takes the file.
imagevideomimeTypestringrequiredThe Content-Type the file was uploaded with, verified against the stored bytes at finalize.
namestring | nullrequiredThe name a person gave this Asset, and what a provider receives at a future registration. null until somebody renames it, and the filename is the fallback.
organizationIdstringrequiredThe organization that owns the Asset.
sizeBytesnumberrequiredRead from the stored object at finalize.
statusstringrequiredready once the bytes have been inspected. A pending Asset is a reservation whose bytes have not arrived, and no operation here answers one.
pendingreadyupdatedAtnumber | nullrequiredWhen the Asset last changed, in milliseconds since the Unix epoch, UTC: at finalize, or at the last rename.
widthnumber | nullrequiredThe width in pixels as the file is displayed, with its rotation applied, read from the header of the file at finalize. null when the file does not state it, or for an Asset uploaded before AdCrunch read it.
registrationsobject[]requiredEach Registration of this Asset, one for each advertiser, with its state. An empty array means that the Asset has no Registration.
Show propertiesHide properties
objectadvertiserIdstringrequiredThe advertiser whose provider library gets the Asset.
assetIdstringrequiredThe Asset that the Registration places.
createdAtnumberrequiredMilliseconds since the Unix epoch, UTC.
deletedAtnumber | nullrequiredAlways null here. When a retry replaces a failed Registration, AdCrunch sets this time on the old one and answers it no more.
failureReasonstring | nullrequiredWhy the Registration failed, as a sentence: the words of the provider, or the words of AdCrunch. null unless status is failed.
idstringrequiredThe id of the Registration, reg_….
organizationIdstringrequiredThe organization that owns the Asset.
providerstringrequiredThe provider that owns the advertiser.
metagadstiktokxopenaisnapchatdv360providerIdentifierstring | nullrequiredThe id that the provider gave the file: a Meta image hash, or the id of the image or the video at the provider. null until the provider gives it, and null on a failed Registration. An image gets its id when the Registration becomes ready. A video gets its id earlier, while the Registration is running, because the provider gives the id before it has processed the file. Build a creative from a ready Registration only.
statusstringrequiredVideo can stay running for several minutes while the provider processes it. That is normal, and not a failure.
runningreadyfailedupdatedAtnumber | nullrequiredWhen the Registration last changed, in milliseconds since the Unix epoch, UTC. null until its first change.
uploadSessionIdstring | nullrequiredAn in-flight provider upload session, where the protocol has one. null for every image.
workflowIdstringrequiredThe durable execution that runs the Registration.
previewUrlstringrequiredA signed, expiring link to the stored bytes. Minted for this answer, and valid for 15 minutes. Do not store 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:read. 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 in this organization. A reservation answers this too, until finalize promotes it to ready. 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.