> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetDynamicContextMarkdown

# Package: dynamicSiteContext

# Namespace: DynamicContextService

# Method link: https://dev.wix.com/docs/api-reference/tools/dynamic-site-context/get-dynamic-context-markdown.md

## Introduction

Retrieves the same aggregated context as `GetDynamicContext`, rendered as a
markdown report. The markdown is byte-identical to the output of the
`@wix/dynamic-context-enricher` package used by the Wix MCP.

---

## REST API

### Schema

```
 Method: getDynamicContextMarkdown
 Description: Retrieves the same aggregated context as `GetDynamicContext`, rendered as a markdown report. The markdown is byte-identical to the output of the `@wix/dynamic-context-enricher` package used by the Wix MCP.
 URL: https://www.wixapis.com/_api/dynamic-context/v1/dynamic-context/markdown
 Method: POST
 Method parameters:
   param name: includeAccountContext | type: includeAccountContext | description: Include the account header section (account name, GUID, status, dates).  
   param name: includePartnerContext | type: includePartnerContext | description: Include the partner-account section when the calling account owns a Partner Dashboard.  
   param name: query | type: CursorQuery    
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object.  Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-filter-section).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-sort-section).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
    - ONE-OF: 
     - name: siteId | type: string | description: Filter results to a single site by its GUID (GUGUID format). When provided, the response contains at most one site.  | validation: maxLength 36, format GUID
     - name: siteName | type: string | description: Filter results to a single site by its display name (exact match). When provided, the response contains at most one site.  | validation: maxLength 500
 Return type: GetDynamicContextMarkdownResponse
  - name: markdown | type: string | description: The markdown report. Byte-identical to the `@wix/dynamic-context-enricher` renderer output.  | validation: maxLength 1000000


```

### Examples

### Get Dynamic Context Markdown
Retrieves aggregated site and account context rendered as a markdown report

```curl
curl -X POST \
  'https://www.wixapis.com/_api/dynamic-context/v1/dynamic-context/markdown' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{"includeAccountContext": true}'
```

---