# adobedocs/marketo-apis architecture

> Architecture diagram of the GitHub repository adobedocs/marketo-apis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adobedocs/marketo-apis
- Repository: https://github.com/adobedocs/marketo-apis

## Overview

1. This repository is a content-driven documentation site for Adobe Developer Platform docs, not an application backend. The main product is published documentation with API reference material and a few top-level informational pages.

2. The primary source of truth is Markdown in `src/pages`. The site’s visible pages are organized as content files rather than app code, which means the architecture is centered on authored documentation and site generation.

3. There is a clear API-doc boundary under `src/pages/api`, with separate Markdown pages for `asset`, `identity`, `mapi`, and `user`. These appear to act as entry points or wrappers for API reference sections within the site.

4. API schema content is stored separately in `static/swagger-*.json` files. These likely feed rendered Swagger/OpenAPI documentation for each product area, keeping machine-readable API specs isolated from the human-authored Markdown pages.

5. `src/pages/index.md` and `src/pages/config.md` represent non-API site pages, likely for landing content and site configuration/help content. Together with the API pages, they show a content hierarchy split between general docs and product-specific API docs.

6. `static/` is the asset boundary for files served directly by the site build. In addition to the Swagger JSON, this is where any unprocessed static resources would live, making it the publishable asset layer of the repository.

7. `redirects.json` is part of the navigation/routing architecture. It suggests the site has URL compatibility requirements and needs managed redirects, which is common for documentation sites that evolve over time while preserving old links.

8. `dev.mjs` and `package.json` indicate a Node-based build/dev workflow. The repo likely uses a static-site generation toolchain, with `dev.mjs` providing local development orchestration around the Markdown content and static assets.

9. CI/CD is handled through GitHub Actions in `.github/workflows`. `lint.yml` enforces content/style checks, `stage.yml` publishes or previews a staging build, and `deploy.yml` handles production publication. This means the repo has a clear promotion path from authoring to staged review to deployment.

10. The operational boundary is governed through repo metadata rather than runtime services: `.env.example` for local configuration, plus contribution/issue templates and linting config under `.github`. That points to a documentation publishing pipeline with strong editorial workflow, rather than a service with live runtime dependencies.

11. If you’re drawing the architecture, the simplest accurate flow is: authors edit Markdown and Swagger JSON → build tooling in Node processes the content → generated site artifacts and static assets are deployed via GitHub Actions → the published documentation site serves pages, API reference content, and redirects.

Main entry points: [`dev.mjs`](https://github.com/adobedocs/marketo-apis/blob/main/dev.mjs) (Dev runner), [`package.json`](https://github.com/adobedocs/marketo-apis/blob/main/package.json) (Package), [`.github/workflows/stage.yml`](https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/stage.yml) (Stage), [`.github/workflows/deploy.yml`](https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/deploy.yml) (Deploy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content"]
  node_src_pages_index["Home<br/>markdown page<br/>[index.md]"]
  node_src_pages_config["Config<br/>markdown page<br/>[config.md]"]
  node_src_pages_api_asset["Asset API<br/>api page<br/>[asset.md]"]
  node_src_pages_api_identity["Identity API<br/>api page<br/>[identity.md]"]
  node_src_pages_api_mapi["MAPI<br/>api page<br/>[mapi.md]"]
  node_src_pages_api_user["User API<br/>api page<br/>[user.md]"]
end

subgraph group_specs["API Specs"]
  node_static_swagger_asset["asset spec<br/>openapi spec<br/>[swagger-asset.json]"]
  node_static_swagger_identity["identity spec<br/>openapi spec"]
  node_static_swagger_mapi["mapi spec<br/>openapi spec<br/>[swagger-mapi.json]"]
  node_static_swagger_user["user spec<br/>openapi spec<br/>[swagger-user.json]"]
end

subgraph group_delivery["Build & Delivery"]
  node_dev_mjs["Dev runner<br/>node build script<br/>[dev.mjs]"]
  node_package_json["Package<br/>node config<br/>[package.json]"]
  node_redirects_json["Redirects<br/>routing config<br/>[redirects.json]"]
  node_github_workflows_lint["Lint<br/>github action<br/>[lint.yml]"]
  node_github_workflows_stage["Stage<br/>github action<br/>[stage.yml]"]
  node_github_workflows_deploy["Deploy<br/>github action<br/>[deploy.yml]"]
  node_published_site["Published site<br/>docs site"]
end

subgraph group_governance["Governance"]
  node_github_contributing["Contributing<br/>repo guide<br/>[CONTRIBUTING.md]"]
  node_github_pr_template["PR template<br/>repo template"]
  node_env_example["Env example<br/>env template<br/>[.env.example]"]
end

node_src_pages_index -->|"content"| node_dev_mjs
node_src_pages_config -->|"content"| node_dev_mjs
node_src_pages_api_asset -->|"references"| node_static_swagger_asset
node_src_pages_api_identity -->|"references"| node_static_swagger_identity
node_src_pages_api_mapi -->|"references"| node_static_swagger_mapi
node_src_pages_api_user -->|"references"| node_static_swagger_user
node_src_pages_api_asset -->|"content"| node_dev_mjs
node_src_pages_api_identity -->|"content"| node_dev_mjs
node_src_pages_api_mapi -->|"content"| node_dev_mjs
node_src_pages_api_user -->|"content"| node_dev_mjs
node_static_swagger_asset -->|"spec input"| node_dev_mjs
node_static_swagger_identity -->|"spec input"| node_dev_mjs
node_static_swagger_mapi -->|"spec input"| node_dev_mjs
node_static_swagger_user -->|"spec input"| node_dev_mjs
node_dev_mjs -->|"scripts"| node_package_json
node_package_json -->|"run"| node_github_workflows_lint
node_package_json -->|"run"| node_github_workflows_stage
node_package_json -->|"run"| node_github_workflows_deploy
node_redirects_json -->|"routes"| node_published_site
node_github_workflows_stage -->|"preview"| node_published_site
node_github_workflows_deploy -->|"publish"| node_published_site
node_github_contributing -->|"policy"| node_github_workflows_lint
node_github_pr_template -->|"release flow"| node_github_workflows_deploy
node_env_example -->|"local config"| node_dev_mjs
node_github_workflows_lint -->|"gates"| node_github_workflows_stage
node_github_workflows_stage -->|"promotes"| node_github_workflows_deploy

click node_src_pages_index "https://github.com/adobedocs/marketo-apis/blob/main/src/pages/index.md"
click node_src_pages_config "https://github.com/adobedocs/marketo-apis/blob/main/src/pages/config.md"
click node_src_pages_api_asset "https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/asset.md"
click node_src_pages_api_identity "https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/identity.md"
click node_src_pages_api_mapi "https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/mapi.md"
click node_src_pages_api_user "https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/user.md"
click node_static_swagger_asset "https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-asset.json"
click node_static_swagger_identity "https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-identity.json"
click node_static_swagger_mapi "https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-mapi.json"
click node_static_swagger_user "https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-user.json"
click node_dev_mjs "https://github.com/adobedocs/marketo-apis/blob/main/dev.mjs"
click node_package_json "https://github.com/adobedocs/marketo-apis/blob/main/package.json"
click node_redirects_json "https://github.com/adobedocs/marketo-apis/blob/main/redirects.json"
click node_github_workflows_lint "https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/lint.yml"
click node_github_workflows_stage "https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/stage.yml"
click node_github_workflows_deploy "https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/deploy.yml"
click node_github_contributing "https://github.com/adobedocs/marketo-apis/blob/main/.github/CONTRIBUTING.md"
click node_github_pr_template "https://github.com/adobedocs/marketo-apis/blob/main/.github/PULL_REQUEST_TEMPLATE.md"
click node_env_example "https://github.com/adobedocs/marketo-apis/blob/main/.env.example"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_src_pages_index,node_src_pages_config,node_src_pages_api_asset,node_src_pages_api_identity,node_src_pages_api_mapi,node_src_pages_api_user toneBlue
class node_static_swagger_asset,node_static_swagger_identity,node_static_swagger_mapi,node_static_swagger_user toneAmber
class node_dev_mjs,node_package_json,node_redirects_json,node_github_workflows_lint,node_github_workflows_stage,node_github_workflows_deploy,node_published_site toneMint
class node_github_contributing,node_github_pr_template,node_env_example toneRose
```

## Components

### Content

Markdown pages that define the published documentation structure.

- [Home](https://github.com/adobedocs/marketo-apis/blob/main/src/pages/index.md): markdown page · Top-level landing page for the documentation site. · `src/pages/index.md`
- [Config](https://github.com/adobedocs/marketo-apis/blob/main/src/pages/config.md): markdown page · Site information/help page under the main docs content. · `src/pages/config.md`
- [Asset API](https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/asset.md): api page · Markdown entry point for the Asset API docs section. · `src/pages/api/asset.md`
- [Identity API](https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/identity.md): api page · Markdown entry point for the Identity API docs section. · `src/pages/api/identity.md`
- [MAPI](https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/mapi.md): api page · Markdown entry point for the MAPI docs section. · `src/pages/api/mapi.md`
- [User API](https://github.com/adobedocs/marketo-apis/blob/main/src/pages/api/user.md): api page · Markdown entry point for the User API docs section. · `src/pages/api/user.md`

### API Specs

Machine-readable OpenAPI/Swagger sources for API reference content.

- [asset spec](https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-asset.json): openapi spec · Swagger/OpenAPI source for the Asset API. · `static/swagger-asset.json`
- [identity spec](https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-identity.json): openapi spec · Swagger/OpenAPI source for the Identity API. · `static/swagger-identity.json`
- [mapi spec](https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-mapi.json): openapi spec · Swagger/OpenAPI source for the MAPI API. · `static/swagger-mapi.json`
- [user spec](https://github.com/adobedocs/marketo-apis/blob/main/static/swagger-user.json): openapi spec · Swagger/OpenAPI source for the User API. · `static/swagger-user.json`

### Build & Delivery

Local tooling, package configuration, redirects, and GitHub Actions publication flow.

- [Dev runner](https://github.com/adobedocs/marketo-apis/blob/main/dev.mjs): node build script · Local build/development orchestration for the docs site. · `dev.mjs`
- [Package](https://github.com/adobedocs/marketo-apis/blob/main/package.json): node config · Project dependency and script definition for the documentation toolchain. · `package.json`
- [Redirects](https://github.com/adobedocs/marketo-apis/blob/main/redirects.json): routing config · Managed URL redirect rules for documentation continuity. · `redirects.json`
- [Lint](https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/lint.yml): github action · Workflow that validates content and repository standards. · `.github/workflows/lint.yml`
- [Stage](https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/stage.yml): github action · Workflow that builds or previews staged documentation. · `.github/workflows/stage.yml`
- [Deploy](https://github.com/adobedocs/marketo-apis/blob/main/.github/workflows/deploy.yml): github action · Workflow that publishes the documentation site to production. · `.github/workflows/deploy.yml`
- **Published site**: docs site · Deployed documentation site served to readers.

### Governance

Contribution and repo workflow metadata for maintainers and editors.

- [Contributing](https://github.com/adobedocs/marketo-apis/blob/main/.github/CONTRIBUTING.md): repo guide · Contributor guidance for authors and maintainers. · `.github/CONTRIBUTING.md`
- [PR template](https://github.com/adobedocs/marketo-apis/blob/main/.github/PULL_REQUEST_TEMPLATE.md): repo template · Pull request structure for editorial and release workflow. · `.github/PULL_REQUEST_TEMPLATE.md`
- [Env example](https://github.com/adobedocs/marketo-apis/blob/main/.env.example): env template · Local configuration template for development and build runs. · `.env.example`

## Connections

- Home → Dev runner: content · Landing content is consumed by the site build.
- Config → Dev runner: content · Informational pages are part of the docs build input.
- Asset API → asset spec: references · API page is paired with the Asset Swagger source.
- Identity API → identity spec: references · API page is paired with the Identity Swagger source.
- MAPI → mapi spec: references · API page is paired with the MAPI Swagger source.
- User API → user spec: references · API page is paired with the User Swagger source.
- Asset API → Dev runner: content · API docs are processed by the build runner.
- Identity API → Dev runner: content · API docs are processed by the build runner.
- MAPI → Dev runner: content · API docs are processed by the build runner.
- User API → Dev runner: content · API docs are processed by the build runner.
- asset spec → Dev runner: spec input · Swagger assets feed documentation generation.
- identity spec → Dev runner: spec input · Swagger assets feed documentation generation.
- mapi spec → Dev runner: spec input · Swagger assets feed documentation generation.
- user spec → Dev runner: spec input · Swagger assets feed documentation generation.
- Dev runner → Package: scripts · Local orchestration relies on package-defined toolchain entrypoints.
- Package → Lint: run · Workflow uses package scripts and dependencies for validation.
- Package → Stage: run · Workflow uses package scripts and dependencies for staging builds.
- Package → Deploy: run · Workflow uses package scripts and dependencies for production deployment.
- Redirects → Published site: routes · Redirect rules shape the published documentation URLs.
- Stage → Published site: preview · Stage workflow publishes a previewable site artifact.
- Deploy → Published site: publish · Deploy workflow promotes the documentation site to production.
- Contributing → Lint: policy · Contributor guidance supports validation and review flow.
- PR template → Deploy: release flow · PR process feeds the review-to-release pipeline.
- Env example → Dev runner: local config · Environment template supports local development orchestration.
- Lint → Stage: gates · Validation precedes staging publication.
- Stage → Deploy: promotes · Staging is the promotion path to deployment.
