AEM Assets · updated

AEM Assets APIs on Cloud Service: the Assets HTTP API, direct binary upload and the Author API

On Cloud Service the Assets HTTP API at /api/assets still lists folders, creates folders, updates metadata, and copies, moves and deletes. It no longer creates assets or replaces their files: Adobe has deprecated that. Files are uploaded with direct binary upload in three steps: initiate, send the file to cloud storage, complete. Adobe also publishes a newer Assets Author API under /adobe/assets.

In plain words

If a script on your 6.5 system pushes files into AEM with a single POST, it will not work on Cloud Service. The file itself must go straight to cloud storage, not through AEM. Adobe publishes an open-source library, aem-upload, that does the three steps for you. Reading and editing metadata over HTTP still works much as before.

Which API for which job

JobWhat to use on Cloud Service
List a folderAssets HTTP API: GET /api/assets/myFolder.json
Create a folderAssets HTTP API: POST /api/assets/myFolder
Create an asset or replace its fileDirect binary upload (the aem-upload library). Adobe says the Assets HTTP API cannot do this
Update an asset's metadataAssets HTTP API: PUT /api/assets/myfolder/myAsset.png, or the Author API: PATCH /adobe/assets/{assetId}/metadata
Copy, move or deleteAssets HTTP API
Bring in a file from a URLAuthor API: POST /adobe/assets/import/fromUrl
Content FragmentsAdobe recommends the newer Content Fragment OpenAPIs over the Assets HTTP API

Direct binary upload in three steps

  1. Initiate: POST to the folder with the selector .initiateUpload.json, for example /content/dam/assets/folder.initiateUpload.json. The 201 response gives a completeURI and, for each file, an uploadToken, a list of uploadURIs, a minPartSize and a maxPartSize.
  2. Upload: send the file's bytes to the upload URIs. If the file is no larger than maxPartSize, one URI is enough. Otherwise split it. Adobe's advice is to use parts of exactly maxPartSize, in order.
  3. Complete: POST to the completeURI as form data with fileName, mimeType and uploadToken. Optional fields include createVersion, versionLabel, versionComment and replace.

Processing starts only after the complete call. Adobe warns that initiate or complete can return 404 just after a folder is created, because storage is eventually consistent, and says clients should retry with a back-off. If the asset exists and neither createVersion nor replace is sent, the current version is updated with the new file.

The Assets Author API

Adobe's specification (version 2026.10) puts this API at https://author-pXXXX-eYYYY.adobeaemcloud.com/adobe/assets. It addresses assets by ID, not by path. Calls take a bearer token and an X-Api-Key header; Adobe says to add the 'AEM Assets Author API' to a project in the Adobe Developer Console to get credentials. It covers reading and deleting an asset, search, reading and patching metadata (as a JSON Patch document, with If-Match), relations between assets, renditions, and import from a URL.

Response details that trip people up

  • The Assets HTTP API returns a Siren JSON representation. Adobe says the JSON body is optional for some file types, so rely on the response code.
  • In the returned JSON, jcr:title and jcr:description appear as dc:title and dc:description.
  • Creating a folder returns 409 if it exists and 500 if the parent does not.

Requests from Adobe's Assets HTTP API page (shortened notation, as Adobe writes them)

GET /api/assets/myFolder.json

POST /api/assets/myFolder -H"Content-Type: application/json" -d '{"class":"assetFolder","properties":{"title":"My Folder"}}'

PUT /api/assets/myfolder/myAsset.png -H"Content-Type: application/json" -d '{"class":"asset", "properties":{"dc:title":"My Asset"}}'

How to move an upload script from 6.5

  1. Find every script or integration that POSTs files to /api/assets or to a Sling servlet.
  2. Replace the upload with Adobe's aem-upload library, or implement initiate, upload and complete yourself.
  3. Add a retry with back-off for 404 responses on initiate and complete.
  4. Keep metadata updates on the Assets HTTP API, or move them to the Author API if you work with asset IDs.
  5. Do not wait for renditions straight after upload: processing by asset microservices starts after the complete call and takes time.

Related tools and pages on this site

Questions

Can I still create an asset with POST /api/assets?

No. Adobe's page says asset creation is not supported through this HTTP API on Cloud Service and points to the asset upload API.

Is there a ready-made client for direct binary upload?

Yes. Adobe names two open-source projects: the aem-upload library and a command-line tool, aio-cli-plugin-aem.

How big should each uploaded part be?

Use the maxPartSize value from the initiate response. Adobe says this is the easiest and safest way, and warns against working the size out from the number of upload URIs.

Does the Author API use paths or IDs?

IDs. Its paths are of the form /adobe/assets/{assetId}/..., and the specification describes the ID as an opaque string defined by the repository.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one AEM Assets question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →