Skip to content
AdCrunch
Esc
navigateopen⌘Jpreview

List the organization Assets

Lists the active organization’s Assets, newest first. Each row carries its Registrations, so one read answers where every file is and what still needs registering. Reservations whose bytes never arrived are excluded, as are deleted Assets.

GET/assets/
Authorization
AuthorizationBearer token · headerrequired

Send Authorization: Bearer <credential>. Two credentials work.

An API key (acr_…) is what a server integration uses. Create one in the AdCrunch console under Settings → API keys — see https://docs.adcrunch.dev/account/api-keys. A key is bound to the organization that was active when you created it, and it keeps acting on that organization whatever you do later. It carries the permissions of the member who created it.

A session issued by the AdCrunch sign-in flow also works, which is how the console calls this service from the browser.

Either way the organization comes from the credential. There is no organization parameter.

Responses
200

Every stored Asset in the organization, newest first, each with its Registrations.

Array of object
contentHashstringrequired

AdCrunch’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.

createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

createdBystringrequired

The user who reserved the upload.

deletedAtnumber | nullrequired

Always null here. A deleted Asset is not answered.

durationMsnumber | nullrequired

How long the video runs, in milliseconds, where that is known. null for an image.

filenamestringrequired

The name the file was uploaded under. Never a lookup key.

heightnumber | nullrequired
idstringrequired
keystringrequired

Where the bytes are held. Read-only, and never sent by you.

kindstringrequired

Read from the stored bytes at finalize, and never from what you declared. It selects how a provider takes the file.

Allowed:imagevideo
mimeTypestringrequired

Read from the stored object at finalize.

namestring | nullrequired

The 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.

organizationIdstringrequired
sizeBytesnumberrequired

Read from the stored object at finalize.

statusstringrequired

ready once the bytes have been inspected. A pending Asset is a reservation whose bytes have not arrived, and no operation here answers one.

Allowed:pendingready
updatedAtnumber | nullrequired

Milliseconds since the Unix epoch, UTC.

widthnumber | nullrequired
registrationsobject[]required

Every advertiser this Asset has been placed with, and how each Registration went. An empty array means it is stored and registered nowhere.

Show properties
Array of object
advertiserIdstringrequired

The advertiser whose library holds the bytes.

assetIdstringrequired
createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

deletedAtnumber | nullrequired

Set when a failed attempt was tombstoned to free the pair for a retry. null on a live Registration.

failureReasonstring | nullrequired

The provider’s own code and message. Only set on a failure.

idstringrequired
organizationIdstringrequired
providerstringrequired

The provider that owns the advertiser.

Allowed:metagadstiktokxopenaisnapchatdv360
providerIdentifierstring | nullrequired

What 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.

statusstringrequired

Video can stay running for several minutes while the provider processes it. That is normal, and not a failure.

Allowed:runningreadyfailed
updatedAtnumber | nullrequired

Milliseconds since the Unix epoch, UTC.

uploadSessionIdstring | nullrequired

An in-flight provider upload session, where the protocol has one. null for every image.

workflowIdstringrequired

The durable execution that placed it.

401

No credential, or one that does not resolve. Send an API key or a session. See the security scheme. error is unauthorized.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:unauthorized
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

403

The caller does not hold asset:read. error is forbidden.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:forbidden
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

Request
curl -X GET "https://api.adcrunch.dev/assets/" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
[
  {
    "contentHash": "string",
    "createdAt": 0,
    "createdBy": "string",
    "deletedAt": 0,
    "durationMs": 0,
    "filename": "string",
    "height": 0,
    "id": "string",
    "key": "string",
    "kind": "image",
    "mimeType": "string",
    "name": "string",
    "organizationId": "string",
    "sizeBytes": 0,
    "status": "pending",
    "updatedAt": 0,
    "width": 0,
    "registrations": [
      {
        "advertiserId": "string",
        "assetId": "string",
        "createdAt": 0,
        "deletedAt": 0,
        "failureReason": "string",
        "id": "string",
        "organizationId": "string",
        "provider": "meta",
        "providerIdentifier": "string",
        "status": "running",
        "updatedAt": 0,
        "uploadSessionId": "string",
        "workflowId": "string"
      }
    ]
  }
]