Scripto docs
View as Markdown

GET /api/articles/[id]/notes/[nid]

Fetch one note's full record — Markdown body and rendered HTML — by anchor. Backs scripto note get.

The CLI equivalent is scripto note get <id> <anchor> (-o <file> to write the body).

Returns one note’s full record (Markdown body + rendered HTML). nid is a note anchor — any unique prefix of the note id.

Endpoint

GET https://scripto.codika.io/api/articles/{id}/notes/{nid}

Auth

Authorization: Bearer scripto_…

Response (200)

{
  "success": true,
  "data": {
    "note": {
      "anchor": "1a2b3c4d",
      "kind": "decision",
      "title": "Lead with the install",
      "body": "Every answer starts with `scripto <cmd>`.",
      "url": null,
      "createdBy": "agent",
      "html": "<p>Every answer starts with <code>scripto &lt;cmd&gt;</code>.</p>"
    }
  }
}

Errors

HTTPcodeCausenextAction
400invalid-argumentThe anchor is ambiguous.Use a longer anchor.
404not-foundNo such article, or no note matches the anchor.Call GET /notes for current anchors.
401unauthenticatedMissing or invalid key.

curl

curl -sS "https://scripto.codika.io/api/articles/$ID/notes/1a2b3c4d" \
  -H "Authorization: Bearer $SCRIPTO_API_KEY"

Next