Ferndesk

Article drafts

Get an article draft

Returns a draft with its content. Use format=markdown for Markdown. Requires the content:write scope.

Required scope: content:write

GET /articles/{id}/drafts/{draftId}

Get an article draft

curl --request GET \
  --url 'https://api.ferndesk.com/v1/articles/{ID}/drafts/{DRAFTID}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "<string>",
  "language": "<string>",
  "status": "<string>",
  "baseVersion": 1,
  "source": "<string>",
  "stale": true,
  "updatedAt": "<string>",
  "title": "<string>",
  "contentHtml": "<string>",
  "contentMarkdown": "<string>",
  "contentJson": "<string>"
}

Draft

Authorizations

  • Authorization string required header

    All requests require a Bearer token in the Authorization header. API keys are prefixed with fdsk_ and should be kept secret. You can generate and manage keys from the Developer settings page.

    Keys can be restricted to any subset of these scopes (each endpoint lists the scope it requires via x-required-scopes):

    • content:read: Read and search help center articles, collections, sections, and translations
    • content:write: Create and edit article drafts, users, tasks; move articles and collections
    • content:publish: Publish, unpublish, restore, and trash content (make changes live)
    • analytics:read: Read help center reporting, analytics, and article feedback
    • conversations:read: Read AI assistant conversations and transcripts
    • webhooks:manage: Create and manage outbound webhook subscriptions

    Granting content:write or content:publish implies content:read. Keys minted before scoping have null scopes = full access (legacy mode).

Path Parameters

  • draftId string required

    Draft ID. Example: drft_01JXY9AZK4KV

  • id string required

    Ferndesk article ID (art_...). Example: art_01JXY9AZK4KV

Query Parameters

  • format string enum

    Content rendering format. html (default) returns contentHtml; markdown returns contentMarkdown; json returns contentJson — the raw stored ProseMirror/Tiptap document. The JSON uses Ferndesk’s ProseMirror schema (custom nodes like callout, steps, and cards) and is the lossless representation of the article body. Example: markdown

Response

application/json
  • id string

    Draft ID.

  • language string | null

    Draft language.

  • status string

    Draft status.

  • baseVersion integer

    Article version the draft was based on.

  • source string | null

    Write channel that created the draft.

  • stale boolean

    Whether the article has moved on since the draft was based (primary drafts only).

  • updatedAt string

    ISO 8601 timestamp in UTC.

  • title string | null

    Draft title.

  • contentHtml string

    Draft body as HTML (format=html).

  • contentMarkdown string

    Draft body as Markdown (format=markdown).

  • contentJson any | null

    Raw stored ProseMirror/Tiptap draft body (format=json). Lossless Ferndesk ProseMirror schema.