DA + EDS content reference
A reference skill — not a workflow. Use it whenever you need to know what
the rules are for generating, uploading, or delivering content through
Adobe Document Authoring (DA) and Edge Delivery Services (EDS).
This skill consolidates rules from three primary surfaces. Load the
reference for the task at hand:
Every factual claim in the references is tagged [verified] (read from
code or observed empirically) or [assumed] (inferred from documentation
without direct verification).
When to use this skill
Invoke this skill whenever you are:
- Generating HTML that will be uploaded to DA (
admin.da.live/source/...).
- Uploading any binary (PNG, JPG, SVG, MP4, PDF, WOFF2) to DA.
- Calling
admin.da.live (Source API) or admin.hlx.page (preview /
publish API) directly.
- Reading a DA-stored HTML document and modifying it before re-upload.
- Diagnosing why a generated page renders incorrectly on
aem.page /
aem.live (silent failures: about:error images, missing meta tags,
blocks rendering as plain HTML without their JS or CSS).
When NOT to use this skill
- Writing block JS or CSS for a project — use building-blocks.
This skill covers the content side, not the code side.
- Universal Editor, structured-content authoring, or AEM Cloud Service
(Java / OSGi / JCR). Out of scope.
Related Skills
- da-auth — Obtain the IMS token needed for every
admin.da.live
and admin.hlx.page call. Invoke before any operation in this skill
that needs DA_TOKEN.
- generate-import-html — Generates DA-compliant HTML for imported
pages; this skill is the rule reference for what that HTML must
look like.
- page-import — Orchestrates full page imports into canonical
EDS block format. Reads this skill for the DA-side rules.
- snowflake — Static-to-EDS overlay conversion. Loads this skill
alongside its own methodology for DA HTML and admin API rules.
Minimal upload example
The most common operation — upload an HTML document to DA. Shows the
non-obvious rules in one place: multipart/form-data body, field name
data, blob with text/html type, Bearer IMS token, then a separate
preview call to make the page reachable at aem.page. See
references/platform.md for the full contract
and references/html-content.md for what
the HTML payload must look like.
# Use $DA_TOKEN from the da-auth skill, or read a cached token file directly.
# See platform.md §3 for the cache locations the various Adobe DA tools use.
TOKEN="${DA_TOKEN:?invoke the da-auth skill to obtain a DA admin token}"
# 1. Upload HTML — note multipart with field name "data" (other names silently fail)
curl -X PUT \
-H "Authorization: Bearer $TOKEN" \
-F "data=@./page.html;type=text/html" \
"https://admin.da.live/source/{org}/{repo}/path/to/page.html"
# 2. Trigger preview — required separate step, path WITHOUT .html extension
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
"https://admin.hlx.page/preview/{org}/{repo}/main/path/to/page"
# 3. Optional: publish to aem.live
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
"https://admin.hlx.page/live/{org}/{repo}/main/path/to/page"
Image binaries upload the same way (PUT to admin.da.live/source/...)
but do NOT need their own preview/publish call — they're served
directly from content.da.live once uploaded. They DO get pulled into
Media Bus (content-addressed, with responsive variants) when a
document that references them is previewed — see
references/media.md §2 for the asset lifecycle.
The 11 silent-failure rules
These rules, if violated, produce broken content without any error from DA,
the pipeline, or the renderer. Memorize them; verify them in generated
output before upload.
DA HTML is a body fragment. No <!DOCTYPE>, no <html>, no <head>,
no <script>, no <style>, no inline style= attributes. The pipeline
injects head/scripts/styles from Code Bus at delivery.
→ html-content.md §1
Block class encodes block identity (canonical div form). The
outermost <div> carries class="<block-name> [<variant>…]". The
first class token is the block name and resolves to
/blocks/<name>/<name>.{js,css}. For the accepted table-form
alternate, the header is <tr><td colspan="N">Name</td></tr> where
N matches the cell count of the widest content row; single-column
blocks may omit colspan. Misshapen blocks (missing div class,
multi-column table missing colspan, empty header cell) render as
plain HTML without block JS or CSS.
→ html-content.md §3
Block names use alphanumeric + single hyphens only. No underscores,
no double dashes, no digit-first names. Variants in div form: extra
class tokens after the name (class="hero cta center"). Variants in
table form: parentheses after the name (Hero (cta, center)). Both
normalize identically via toBlockCSSClassNames.
→ html-content.md §3
Page Metadata block name is exactly metadata. Div form:
class="metadata" (single lowercase token). Table form: header text
Metadata (case-insensitive). Misspellings on either side are
silently ignored — no <meta> tags emitted.
→ html-content.md §5
<img src> URLs must be reachable from EDS preview infrastructure.
The preview step fetches every <img src> and <source srcset> URL,
content-hashes the bytes, and stores them in Media Bus — that's how
the delivered page gets responsive <picture> variants. Any URL that
doesn't return image bytes (DNS failure, 4xx/5xx, HTML response,
timeout > 5s) produces <img src="about:error">. Host-less paths
(repo-relative /path/foo.png, document-relative ./foo.png) also
fail because the ingester has nothing to fetch. External URLs work
fine and are sideloaded on first preview.
→ media.md §2, html-content.md §9
Pre-upload binaries only when you need URL stability. Sideloading
means you do NOT need to upload an image to DA before referencing it
from your HTML — any reachable URL works. Pre-upload (to
/media/<scope>/<file>) when you want the binary under DA's control:
immune to third-party host changes, addressable by a stable
content.da.live URL, and re-fetched into Media Bus on each preview.
→ media.md §2.5, media.md §13.2
DA Source API requires multipart/form-data with field name data.
Other field names (file, image) return 200 OK with no file written.
→ platform.md §2
SVG hard cap is 40 KB. PNG/JPG/AVIF/WEBP cap is 20 MB. MP4 cap is
36 MB. Over-cap SVGs cause the preview POST to fail with
409 AEM_BACKEND_FETCH_FAILED ("Images N have failed validation");
pre-check sizes before upload.
→ media.md §6.1
Preview / publish is a required separate step. Uploading to DA does
NOT make the document visible at aem.page / aem.live. POST to
admin.hlx.page/preview/... then /live/... after upload.
→ platform.md §6
IMS tokens expire silently with 401 + empty body. Dev tokens last
24 hours. Always pre-flight expiry against expires_at in the cached
token file (~/.aem/da-token.json for da-auth, .hlx/.da-token.json
for @adobe/aem-cli) before a long upload run.
→ platform.md §3
Block cell content uses stricter inline-tag normalization than
default content. Inside block cells, the pipeline rewrites
<b>/<i>/<s>/<mark>/<kbd> to their semantic equivalents
(<strong>/<em>/<del>/<em>/<code>), strips <span> and
<ins>, and applies positional rules to <br>. Visual styling
survives the rewrites but CSS selectors targeting the original tags
or stripped classes stop matching. Generate cell content using only
the §3.9 preserve list to avoid silent reshaping.
→ html-content.md §3.9
Glossary
Terms used across all three references.
- Admin API —
https://admin.hlx.page/<action>/... endpoint family.
Controls document lifecycle (preview, publish, status). Distinct from
the DA Source API.
- Code Bus — files delivered from the git-tracked GitHub branch
(typically
/fonts/, /icons/, /blocks/, /scripts/, /styles/,
/head.html). Updated by code deploy.
- Content Bus — files delivered from DA at their original path
(SVG, PDF, HTML, JSON, ICO, WOFF2). Updated by preview/publish.
- DA editor — the web UI at
https://da.live/edit#/... for human
authoring of documents.
- DA Source API —
https://admin.da.live/source/... endpoint for
read/write of DA-tracked files (HTML and binaries).
- Default content — anything in an EDS page outside a block:
headings, paragraphs, lists, links, images. Renders as standard HTML.
- Dot-folder —
/<parent>/.<docname>/ folder created automatically
by the DA editor for per-document author uploads of images.
- EDS — Edge Delivery Services. The rendering pipeline that serves
aem.page (preview) and aem.live (production), consuming DA content
- IMS token — Adobe Identity Management access token. Cached at
~/.aem/da-token.json (via the da-auth skill) or .hlx/.da-token.json
(via the @adobe/aem-cli tool). Used for auth against the DA Source API
and the Admin API.
- Media Bus — content-addressed backend for image and video binaries
(PNG, JPG, AVIF, WEBP, MP4). Dedup by SHA hash; permanent cache.
/media folder — top-level DA folder convention for shared
binaries referenced across documents/branches/iterations. Auto-creates
on first PUT.
- Preview / Publish — Admin API operations that promote a document
from "stored in DA" to "available at
aem.page" (preview) or
"available at aem.live" (publish).
- Section — a
<div> directly inside <main> in a DA HTML document.
Becomes <div class="section"> after decoration.
- Section Metadata — block whose
Style key adds CSS classes to the
enclosing section. NOT for SEO metadata (that's Page Metadata).
- Page Metadata — block whose key/value rows become
<head> <meta>
tags at delivery. One per page; conventionally last in document.
1---2name: da-content3description: Reference for producing Adobe Document Authoring (DA) and Edge Delivery Services (EDS) compatible content, covering HTML generation, media uploads, admin API usage, and silent-failure rules.4license: Apache-2.05---67# DA + EDS content reference89A reference skill — not a workflow. Use it whenever you need to know **what10the rules are** for generating, uploading, or delivering content through11Adobe Document Authoring (DA) and Edge Delivery Services (EDS).1213This skill consolidates rules from three primary surfaces. Load the14reference for the task at hand:1516| Doing | Read |17|---|---|18| Generating HTML for DA upload | [references/html-content.md](./references/html-content.md) |19| Uploading images, video, PDFs, fonts | [references/media.md](./references/media.md) |20| Hitting the DA admin API, auth, preview/publish | [references/platform.md](./references/platform.md) |21| Re-verifying asset boundary behavior empirically | [references/fixtures/README.md](./references/fixtures/README.md) |2223Every factual claim in the references is tagged `[verified]` (read from24code or observed empirically) or `[assumed]` (inferred from documentation25without direct verification).2627## When to use this skill2829Invoke this skill whenever you are:3031- Generating HTML that will be uploaded to DA (`admin.da.live/source/...`).32- Uploading any binary (PNG, JPG, SVG, MP4, PDF, WOFF2) to DA.33- Calling `admin.da.live` (Source API) or `admin.hlx.page` (preview /34 publish API) directly.35- Reading a DA-stored HTML document and modifying it before re-upload.36- Diagnosing why a generated page renders incorrectly on `aem.page` /37 `aem.live` (silent failures: `about:error` images, missing meta tags,38 blocks rendering as plain HTML without their JS or CSS).3940### When NOT to use this skill4142- Writing block JS or CSS for a project — use **building-blocks**.43 This skill covers the *content* side, not the *code* side.44- Universal Editor, structured-content authoring, or AEM Cloud Service45 (Java / OSGi / JCR). Out of scope.4647## Related Skills4849- **da-auth** — Obtain the IMS token needed for every `admin.da.live`50 and `admin.hlx.page` call. Invoke before any operation in this skill51 that needs `DA_TOKEN`.52- **generate-import-html** — Generates DA-compliant HTML for imported53 pages; this skill is the rule reference for what that HTML must54 look like.55- **page-import** — Orchestrates full page imports into canonical56 EDS block format. Reads this skill for the DA-side rules.57- **snowflake** — Static-to-EDS overlay conversion. Loads this skill58 alongside its own methodology for DA HTML and admin API rules.5960## Minimal upload example6162The most common operation — upload an HTML document to DA. Shows the63non-obvious rules in one place: multipart/form-data body, field name64`data`, blob with `text/html` type, Bearer IMS token, then a separate65preview call to make the page reachable at `aem.page`. See66[references/platform.md](./references/platform.md) for the full contract67and [references/html-content.md](./references/html-content.md) for what68the HTML payload must look like.6970```bash71# Use $DA_TOKEN from the da-auth skill, or read a cached token file directly.72# See platform.md §3 for the cache locations the various Adobe DA tools use.73TOKEN="${DA_TOKEN:?invoke the da-auth skill to obtain a DA admin token}"7475# 1. Upload HTML — note multipart with field name "data" (other names silently fail)76curl -X PUT \77 -H "Authorization: Bearer $TOKEN" \78 -F "data=@./page.html;type=text/html" \79 "https://admin.da.live/source/{org}/{repo}/path/to/page.html"8081# 2. Trigger preview — required separate step, path WITHOUT .html extension82curl -X POST \83 -H "Authorization: Bearer $TOKEN" \84 "https://admin.hlx.page/preview/{org}/{repo}/main/path/to/page"8586# 3. Optional: publish to aem.live87curl -X POST \88 -H "Authorization: Bearer $TOKEN" \89 "https://admin.hlx.page/live/{org}/{repo}/main/path/to/page"90```9192Image binaries upload the same way (PUT to `admin.da.live/source/...`)93but do NOT need their own preview/publish call — they're served94directly from `content.da.live` once uploaded. They DO get pulled into95Media Bus (content-addressed, with responsive variants) when a96*document* that references them is previewed — see97[references/media.md §2](./references/media.md) for the asset lifecycle.9899## The 11 silent-failure rules100101These rules, if violated, produce broken content without any error from DA,102the pipeline, or the renderer. Memorize them; verify them in generated103output before upload.1041051. **DA HTML is a body fragment.** No `<!DOCTYPE>`, no `<html>`, no `<head>`,106 no `<script>`, no `<style>`, no inline `style=` attributes. The pipeline107 injects head/scripts/styles from Code Bus at delivery.108 → [html-content.md §1](./references/html-content.md)1091102. **Block class encodes block identity (canonical div form).** The111 outermost `<div>` carries `class="<block-name> [<variant>…]"`. The112 first class token is the block name and resolves to113 `/blocks/<name>/<name>.{js,css}`. For the accepted table-form114 alternate, the header is `<tr><td colspan="N">Name</td></tr>` where115 `N` matches the cell count of the widest content row; single-column116 blocks may omit `colspan`. Misshapen blocks (missing div class,117 multi-column table missing `colspan`, empty header cell) render as118 plain HTML without block JS or CSS.119 → [html-content.md §3](./references/html-content.md)1201213. **Block names use alphanumeric + single hyphens only.** No underscores,122 no double dashes, no digit-first names. Variants in div form: extra123 class tokens after the name (`class="hero cta center"`). Variants in124 table form: parentheses after the name (`Hero (cta, center)`). Both125 normalize identically via `toBlockCSSClassNames`.126 → [html-content.md §3](./references/html-content.md)1271284. **Page Metadata block name is exactly `metadata`.** Div form:129 `class="metadata"` (single lowercase token). Table form: header text130 `Metadata` (case-insensitive). Misspellings on either side are131 silently ignored — no `<meta>` tags emitted.132 → [html-content.md §5](./references/html-content.md)1331345. **`<img src>` URLs must be reachable from EDS preview infrastructure.**135 The preview step fetches every `<img src>` and `<source srcset>` URL,136 content-hashes the bytes, and stores them in Media Bus — that's how137 the delivered page gets responsive `<picture>` variants. Any URL that138 doesn't return image bytes (DNS failure, 4xx/5xx, HTML response,139 timeout > 5s) produces `<img src="about:error">`. Host-less paths140 (repo-relative `/path/foo.png`, document-relative `./foo.png`) also141 fail because the ingester has nothing to fetch. External URLs work142 fine and are sideloaded on first preview.143 → [media.md §2](./references/media.md), [html-content.md §9](./references/html-content.md)1441456. **Pre-upload binaries only when you need URL stability.** Sideloading146 means you do NOT need to upload an image to DA before referencing it147 from your HTML — any reachable URL works. Pre-upload (to148 `/media/<scope>/<file>`) when you want the binary under DA's control:149 immune to third-party host changes, addressable by a stable150 `content.da.live` URL, and re-fetched into Media Bus on each preview.151 → [media.md §2.5](./references/media.md), [media.md §13.2](./references/media.md)1521537. **DA Source API requires `multipart/form-data` with field name `data`.**154 Other field names (`file`, `image`) return 200 OK with no file written.155 → [platform.md §2](./references/platform.md)1561578. **SVG hard cap is 40 KB.** PNG/JPG/AVIF/WEBP cap is 20 MB. MP4 cap is158 36 MB. Over-cap SVGs cause the preview POST to fail with159 `409 AEM_BACKEND_FETCH_FAILED` ("Images N have failed validation");160 pre-check sizes before upload.161 → [media.md §6.1](./references/media.md)1621639. **Preview / publish is a required separate step.** Uploading to DA does164 NOT make the document visible at `aem.page` / `aem.live`. POST to165 `admin.hlx.page/preview/...` then `/live/...` after upload.166 → [platform.md §6](./references/platform.md)16716810. **IMS tokens expire silently with 401 + empty body.** Dev tokens last169 24 hours. Always pre-flight expiry against `expires_at` in the cached170 token file (`~/.aem/da-token.json` for da-auth, `.hlx/.da-token.json`171 for `@adobe/aem-cli`) before a long upload run.172 → [platform.md §3](./references/platform.md)17317411. **Block cell content uses stricter inline-tag normalization than175 default content.** Inside block cells, the pipeline rewrites176 `<b>`/`<i>`/`<s>`/`<mark>`/`<kbd>` to their semantic equivalents177 (`<strong>`/`<em>`/`<del>`/`<em>`/`<code>`), strips `<span>` and178 `<ins>`, and applies positional rules to `<br>`. Visual styling179 survives the rewrites but CSS selectors targeting the original tags180 or stripped classes stop matching. Generate cell content using only181 the §3.9 preserve list to avoid silent reshaping.182 → [html-content.md §3.9](./references/html-content.md)183184## Glossary185186Terms used across all three references.187188- **Admin API** — `https://admin.hlx.page/<action>/...` endpoint family.189 Controls document lifecycle (preview, publish, status). Distinct from190 the DA Source API.191- **Code Bus** — files delivered from the git-tracked GitHub branch192 (typically `/fonts/`, `/icons/`, `/blocks/`, `/scripts/`, `/styles/`,193 `/head.html`). Updated by code deploy.194- **Content Bus** — files delivered from DA at their original path195 (SVG, PDF, HTML, JSON, ICO, WOFF2). Updated by preview/publish.196- **DA editor** — the web UI at `https://da.live/edit#/...` for human197 authoring of documents.198- **DA Source API** — `https://admin.da.live/source/...` endpoint for199 read/write of DA-tracked files (HTML and binaries).200- **Default content** — anything in an EDS page outside a block:201 headings, paragraphs, lists, links, images. Renders as standard HTML.202- **Dot-folder** — `/<parent>/.<docname>/` folder created automatically203 by the DA editor for per-document author uploads of images.204- **EDS** — Edge Delivery Services. The rendering pipeline that serves205 `aem.page` (preview) and `aem.live` (production), consuming DA content206 + Code Bus + Media Bus.207- **IMS token** — Adobe Identity Management access token. Cached at208 `~/.aem/da-token.json` (via the **da-auth** skill) or `.hlx/.da-token.json`209 (via the `@adobe/aem-cli` tool). Used for auth against the DA Source API210 and the Admin API.211- **Media Bus** — content-addressed backend for image and video binaries212 (PNG, JPG, AVIF, WEBP, MP4). Dedup by SHA hash; permanent cache.213- **`/media` folder** — top-level DA folder convention for shared214 binaries referenced across documents/branches/iterations. Auto-creates215 on first PUT.216- **Preview / Publish** — Admin API operations that promote a document217 from "stored in DA" to "available at `aem.page`" (preview) or218 "available at `aem.live`" (publish).219- **Section** — a `<div>` directly inside `<main>` in a DA HTML document.220 Becomes `<div class="section">` after decoration.221- **Section Metadata** — block whose `Style` key adds CSS classes to the222 enclosing section. NOT for SEO metadata (that's Page Metadata).223- **Page Metadata** — block whose key/value rows become `<head>` `<meta>`224 tags at delivery. One per page; conventionally last in document.