Skip to content

xhs_list_drafts

List all note drafts.

Parameters

ParameterTypeRequiredDescription
includePublishedbooleanNoInclude published drafts (default: false)

Response

json
{
  "drafts": [
    {
      "id": "draft-uuid",
      "title": "Note title",
      "content": "Content preview...",
      "imageCount": 3,
      "tags": ["tag1", "tag2"],
      "createdAt": "2024-01-01T00:00:00Z",
      "published": false
    }
  ],
  "total": 5
}

Examples

List unpublished drafts

xhs_list_drafts()

List all drafts

xhs_list_drafts({ includePublished: true })

Released under the MIT License.