Endpoints and resources
Campaign Journal
Read the Campaign Journal and update the title, description or status of an existing quest or thread.
Read the Journal to find quest and thread ids. Edits require campaign:write and both read scopes, current paid editing access, Content-Type: application/json and an Idempotency-Key. Use the ETag from GET /api/public/v2/journal as If-Match.
Get the Journal
/api/public/v2/journalRequires campaign:read and campaign:read_private. Accepts no query parameters or request body. Returns data with state and version, or data: null when no Journal row exists. state can be null. Save this response's ETag for quest and thread edits.
| Field | Type | Description |
|---|---|---|
data.state.world |
object | setting, key_npcs and key_locations. NPCs have id, name, role and description; locations have id, name and description. |
data.state.situation |
string | Current campaign situation. |
data.state.quests |
array of objects | Entries with id, title, description and status. |
data.state.threads |
array of objects | Entries with id, title, description and status. |
data.state.session_seq |
integer | Optional stored session sequence. |
data.version |
integer | Journal version. |
Entry ids are opaque strings. Status is active, resolved or dormant. Entries can also contain lifecycle fields, such as added_seq, touched_seq, resolved_seq, resolved_at_version, outcome and epitaph. Quests may contain people, locations and objectives; threads may contain clues. Read these fields as returned; edits accept only title, description and status.
curl -i "https://app.saga20.com/api/public/v2/journal" \
-H "Authorization: Bearer $SAGA20_API_KEY"
{
"data": {
"state": {
"world": {"setting": "The Ashen Marches", "key_npcs": [], "key_locations": []},
"situation": "Greywatch's gate is sealed.",
"quests": [
{"id": "quest-greywatch-gate", "title": "Open the gate", "description": "Find the missing seal.", "status": "active"}
],
"threads": [
{"id": "thread-oilless-lantern", "title": "The lantern", "description": "Brom found a lantern burning without oil.", "status": "active"}
],
"session_seq": 12
},
"version": 5
}
}
Fields for Journal edits
Both routes accept a JSON object with at least one field below. Unknown fields and query parameters are rejected. Entry ids are opaque strings from the Journal, not UUIDs. URL-encode the id as a single path segment, at most 200 characters, without control characters.
| Field | Type | Description |
|---|---|---|
title |
string | Optional, 1 to 1,000 characters. |
description |
string | Optional, up to 20,000 characters. An empty string clears it. |
status |
string | Optional. active, resolved or dormant. |
The API updates an existing entry. It cannot add or delete quests or threads, or edit the Journal situation or world fields. The whole Journal revision protects each edit; after one succeeds, read the Journal again before editing another entry.
Edit a quest
/api/public/v2/journal/quests/{entry_id}Requires campaign:write and both read scopes. The path parameter entry_id identifies an existing quest; the body uses the fields above. SAGA20_ETAG contains the exact quoted Journal ETag. A missing entry returns 404 with not_found and message Journal entry not found.
The 200 acknowledgement contains the campaign id, new Journal version and Journal resource_url in data, plus meta.replayed. The acknowledgement id is the campaign id, not the quest id.
curl -X PATCH "https://app.saga20.com/api/public/v2/journal/quests/quest-greywatch-gate" \
-H "Authorization: Bearer $SAGA20_API_KEY" \
-H "Content-Type: application/json" \
-H "If-Match: $SAGA20_ETAG" \
-H "Idempotency-Key: greywatch-quest-resolved-20261001" \
--data '{"status":"resolved","description":"Nyra recovered the seal and opened the gate."}'
{
"data": {
"id": "8cbce3f0-7fb1-4b56-9adc-10a4a56f6fe9",
"version": 6,
"resource_url": "/api/public/v2/journal"
},
"meta": {"replayed": false}
}
Edit a thread
/api/public/v2/journal/threads/{entry_id}Requires campaign:write and both read scopes. The path parameter entry_id identifies an existing thread; the body uses the same fields above. Send the latest Journal ETag in If-Match. A missing entry returns the same Journal entry not found. error as a quest.
The 200 acknowledgement also uses the campaign id and points to the whole Journal. Read that URL for the saved entry and current ETag.
curl -X PATCH "https://app.saga20.com/api/public/v2/journal/threads/thread-oilless-lantern" \
-H "Authorization: Bearer $SAGA20_API_KEY" \
-H "Content-Type: application/json" \
-H "If-Match: $SAGA20_ETAG" \
-H "Idempotency-Key: greywatch-thread-dormant-20261001" \
--data '{"status":"dormant","title":"The lantern beneath Greywatch"}'
{
"data": {
"id": "8cbce3f0-7fb1-4b56-9adc-10a4a56f6fe9",
"version": 7,
"resource_url": "/api/public/v2/journal"
},
"meta": {"replayed": false}
}