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 <cmd></code>.</p>"
}
}
} Errors
| HTTP | code | Cause | nextAction |
|---|---|---|---|
| 400 | invalid-argument | The anchor is ambiguous. | Use a longer anchor. |
| 404 | not-found | No such article, or no note matches the anchor. | Call GET /notes for current anchors. |
| 401 | unauthenticated | Missing or invalid key. | — |
curl
curl -sS "https://scripto.codika.io/api/articles/$ID/notes/1a2b3c4d" \
-H "Authorization: Bearer $SCRIPTO_API_KEY" Next
- PATCH …/notes/[nid] — edit it.
- DELETE …/notes/[nid] — remove it.