memory
Generated from openapi.json (API version 0.54.3). 11 endpoints. See the API overview for the base URL and how to sign requests.
Get Memory Options
Section titled “Get Memory Options”GET /memory/options
Needs read:incident.
The cause categories, verdicts and problem shapes to choose from
Responses
200Successful Response: object
List Episodes
Section titled “List Episodes”GET /memory/episodes
Needs read:incident.
The episodes in the memory, latest first
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
shape |
string or null | no | |
cause |
string or null | no | |
forgotten |
boolean | no | |
limit |
integer | no | |
offset |
integer | no |
Responses
200Successful Response: object
Change Episode
Section titled “Change Episode”PATCH /memory/episodes/{episode_id}
Needs write:memory.
Change what people recorded about an episode
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
episode_id |
string (uuid) | yes |
Body (application/json, required): EpisodeChange
| Field | Type | Required | Description |
|---|---|---|---|
cause_category |
string or null | no | |
note |
string or null | no | |
rca_verdict |
one of right, partly, wrong or null |
no | |
resolved_by |
one of fix, manual, self or null |
no | |
fix_id |
string or null | no | |
problem_shape |
string or null | no | |
restore |
boolean | no |
Responses
200Successful Response: object
Forget Episode
Section titled “Forget Episode”DELETE /memory/episodes/{episode_id}
Needs write:memory.
Take an episode out of the memory
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
episode_id |
string (uuid) | yes |
Responses
200Successful Response: object
List Playbooks
Section titled “List Playbooks”GET /memory/playbooks
Needs read:incident.
Every kind of problem and cause with episodes, and its playbook
Responses
200Successful Response: object
Draft Playbook
Section titled “Draft Playbook”POST /memory/playbooks/draft
Needs write:memory.
Draft (or redraft) the playbook of a kind of problem or a cause
Body (application/json, required): DraftIn
| Field | Type | Required | Description |
|---|---|---|---|
kind |
one of shape, cause |
yes | |
key |
string | yes | |
discard_edit |
boolean | no |
Responses
200Successful Response: object
Edit Playbook
Section titled “Edit Playbook”PUT /memory/playbooks/{playbook_id}
Needs write:memory.
Edit a playbook; redrafts never overwrite the edit
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
playbook_id |
string (uuid) | yes |
Body (application/json, required): PlaybookIn
| Field | Type | Required | Description |
|---|---|---|---|
title |
string | no | |
body |
object | yes |
Responses
200Successful Response: object
Delete Playbook
Section titled “Delete Playbook”DELETE /memory/playbooks/{playbook_id}
Needs write:memory.
Delete a playbook (the next change of its episodes drafts it again)
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
playbook_id |
string (uuid) | yes |
Responses
200Successful Response: object
Backfill Memory
Section titled “Backfill Memory”POST /memory/backfill
Needs write:memory.
Build the episodes of incidents resolved before the memory existed
Body (application/json, required): BackfillIn
| Field | Type | Required | Description |
|---|---|---|---|
rebuild |
boolean | no |
Responses
200Successful Response: object
Get Memory Settings
Section titled “Get Memory Settings”GET /memory/settings
Needs read:settings.
Whether the memory uses embeddings, and drafts playbooks on its own
Responses
200Successful Response: object
Put Memory Settings
Section titled “Put Memory Settings”PUT /memory/settings
Needs write:settings.
Turn embeddings or automatic playbooks on or off
Body (application/json, required): MemorySettingsIn
| Field | Type | Required | Description |
|---|---|---|---|
embeddings |
boolean | no | |
embedding_model |
string or null | no | |
auto_playbooks |
boolean | no |
Responses
200Successful Response: object