Overview
GET/content/markdown/{id}/versions/{version}content

Get one version (with content)

Fetch a record from versions by id, version.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • idpathstring
  • versionpathstring
  • 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

The version snapshot

  • idstring
  • documentIdstring
  • customerIdstring

    The revision WRITER.

  • deletedAtoptionalstring?
  • ecosystemIdstring
  • ownerKind"customer" | "organization"

    Inherited from the head document at write.

  • ownerIdstring

    Inherited from the head document at write.

  • versioninteger
  • titlestring

    Document title at this revision (full-state snapshot).

  • contentstring
  • contentHashstring
  • sizeBytesinteger
  • frontmatteroptionalobject?
  • authorTypeoptionalstring?
  • authorIdoptionalstring?
  • authorNameoptionalstring?
  • createdAtstring
  • isDeletedboolean
Example
{
  "id": "string",
  "documentId": "string",
  "customerId": "string",
  "deletedAt": "string",
  "ecosystemId": "string",
  "ownerKind": "customer",
  "ownerId": "string",
  "version": 0,
  "title": "string",
  "content": "string",
  "contentHash": "string",
  "sizeBytes": 0,
  "frontmatter": {},
  "authorType": "string",
  "authorId": "string",
  "authorName": "string",
  "createdAt": "string",
  "isDeleted": true
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

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