Assets

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. A reservation is excluded until finalize promotes it to ready, and so is a deleted Asset.

One page at a time: limit rows at most, 100 by default. When the answer holds nextCursor, more rows exist: send it back as cursor to get the next page. There is no filter.

get/assets

Request

  • Base URL: https://api.adcrunch.dev
  • URL: https://api.adcrunch.dev/assets
  • Auth: HTTP bearer

Query parameters

cursorstring

The nextCursor of the previous page. Omit it to get the first page. Send it with no change, and with the same filters as the request that answered it: a cursor from a different query gets a 400 invalid_cursor. Do not build or change a cursor.

limitinteger required

The greatest number of rows on the page, from 1 to 500. The default is 100. A greater value gets a 400, with error of invalid_request.

Response

One page of the stored Assets of the organization, newest first, each with its Registrations. An Asset registered nowhere carries an empty array. This page is the last one, so it carries no nextCursor.

nextCursorstring

Send this value as cursor to get the next page. It is absent on the last page.

Example response

{
  "data": [
    {
      "contentHash": "9d2f41b7c6e8a35014f7b2d9c3e6a810",
      "createdAt": 1790000000000,
      "createdBy": "usr_2e5b84",
      "deletedAt": null,
      "durationMs": 15000,
      "filename": "spring-sale.mp4",
      "height": 1920,
      "id": "ast_7c1e9a",
      "key": "org_3a7f10/ast_7c1e9a",
      "kind": "video",
      "mimeType": "video/mp4",
      "name": "Spring sale 9:16",
      "organizationId": "org_3a7f10",
      "sizeBytes": 24117248,
      "status": "ready",
      "updatedAt": 1790000120000,
      "width": 1080,
      "registrations": [
        {
          "advertiserId": "acc_1203456789012345",
          "assetId": "ast_7c1e9a",
          "createdAt": 1790000121000,
          "deletedAt": null,
          "failureCode": null,
          "failureReason": null,
          "id": "reg_4b81d2",
          "organizationId": "org_3a7f10",
          "provider": "meta",
          "providerIdentifier": "23843178520310445",
          "status": "ready",
          "updatedAt": 1790000249000,
          "uploadSessionId": "1264871528937461",
          "workflowId": "reg_4b81d2"
        }
      ]
    },
    {
      "contentHash": "4a7e1c9b0d3f26854b1e7a9c2d6f3081",
      "createdAt": 1789900000000,
      "createdBy": "usr_2e5b84",
      "deletedAt": null,
      "durationMs": null,
      "filename": "spring-sale-square.jpg",
      "height": 1080,
      "id": "ast_2d4f83",
      "key": "org_3a7f10/ast_2d4f83",
      "kind": "image",
      "mimeType": "image/jpeg",
      "name": null,
      "organizationId": "org_3a7f10",
      "sizeBytes": 486112,
      "status": "ready",
      "updatedAt": 1789900090000,
      "width": 1080,
      "registrations": []
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.