The draft's full text; for an edit, also a unified diff against the live article and whether the article changed since (conflict).

Authentication

Bearer token (content:read): A workspace API key: ud_live_…

Parameters

NameInTypeRequiredDescription
idpathstringYesDraft id: edit_…, article_…, or gap_….
formatquerystringcontentMarkdown (default) or contentHtml.
bot_idquerystringOnly for a key that covers several bots (see GET /bots). Or send the Usedocs-Bot header.

Responses

StatusDescription
200The draft.
400The request is missing something or has a bad value.
401No API key, or the key is revoked.
403A read key on a write, or a key for another bot.
404Not found.
429Rate limited: 120 requests a minute per key, 30 tasks an hour. See Retry-After.

Response fields

FieldTypeDescription
idstring
typestring
statusstringOne of: pending, accepted, dismissed.
articleId`stringnull`
titlestring
contentMarkdownstring
diffstringEdits: a unified diff from the live article to the proposal.
linesAddedinteger
linesRemovedinteger
reasonstring
evidenceobject
conflictboolean
createdAtstring (date-time)