Overview
GET/content/markdown/exportcontent

Bulk export the caller's documents WITH content (download a whole set)

List export.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • workspacequery · optionalstring

    Scope to this WORKSPACE’s owning principal (the caller’s own customer slug, or an organization the caller belongs to). Omitted: the caller’s own documents. Unknown/foreign slug: 404.

Responses
200

All documents (with content), ordered by createdAt

  • itemsMarkdownDocument[]
  • truncatedboolean

    True if more documents remain (the export stopped at its approximate byte budget).

Example
{
  "items": [
    {
      "id": "string",
      "customerId": "string",
      "ecosystemId": "string",
      "ownerKind": "customer",
      "ownerId": "string",
      "deletedAt": "string",
      "title": "string",
      "content": "string",
      "frontmatter": {},
      "category": "string",
      "tags": [
        "string"
      ],
      "visibility": "private",
      "stage": "draft",
      "kind": "paper",
      "publicRoute": "string",
      "contentHash": "string",
      "sizeBytes": 0,
      "currentVersion": 0,
      "latestVersionId": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "isDeleted": true
    }
  ],
  "truncated": true
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/content/markdown/export" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/content/markdown/export", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();