Get Document

Retrieve a single document by ID

GEThttps://api.jamdesk.com/api/v1/documents/:id

Returns a single document with all its data.

Path Parameters

idstringrequired

The document ID.

curl -X GET "https://api.example.com/v1/documents/doc_abc" \
  -H "Authorization: Bearer $TOKEN"
{
  "data": {
    "id": "doc_abc",
    "collection": "posts",
    "data": {
      "title": "Hello World",
      "content": "Welcome to my blog!",
      "published": true,
      "tags": ["intro", "welcome"]
    },
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  }
}