Memory
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/verify/memories |
create |
Success |
GET |
/api/v1/organizations/{organization_id}/verify/memories |
list |
Most recent or 50 best matching memories, with indexing health |
GET |
/api/v1/organizations/{organization_id}/verify/memories/{id} |
load |
Current lesson and latest ten revisions |
DELETE |
/api/v1/organizations/{organization_id}/verify/memories/{id} |
remove |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
memorys, err := client.Memory(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(memorys)
memory, err := client.Memory(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(memory)
created, err := client.Memory(nil).Create(map[string]any{"organization_id": "example", "finding": "example", "title": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
removed, err := client.Memory(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local memorys, err = client:Memory():list({ organization_id = "example" })
local memory, err = client:Memory():load({ id = "example_id", organization_id = "example" })
local created, err = client:Memory():create({ organization_id = "example", finding = "example", title = "example" })
local removed, err = client:Memory():remove({ id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$memorys = $client->Memory()->list(["organization_id" => "example"]);
$memory = $client->Memory()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->Memory()->create(["organization_id" => "example", "finding" => "example", "title" => "example"]);
$client->Memory()->remove(["id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
memorys = client.Memory().list({"organization_id": "example"})
memory = client.Memory().load({"id": "example_id", "organization_id": "example"})
created = client.Memory().create({ "organization_id": "example", "finding": "example", "title": "example" })
client.Memory().remove({"id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
memorys = client.Memory.list({ "organization_id" => "example" })
memory = client.Memory.load({ "id" => "example_id", "organization_id" => "example" })
created = client.Memory.create({ "organization_id" => "example", "finding" => "example", "title" => "example" })
client.Memory.remove({ "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const memorys = await client.Memory().list({ organization_id: "example" })
const memory = await client.Memory().load({ id: "example_id", organization_id: "example" })
const created = await client.Memory().create({ organization_id: "example", finding: "example", title: "example" })
await client.Memory().remove({ id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
confidence |
string |
Yes | Confidence |
created_at |
string |
Yes | Created At |
environment_id |
string |
No | Environment Id |
finding |
string |
Yes | Finding |
history |
array |
Yes | History |
id |
string |
Yes | Id |
indexed_at |
one,string,null |
Yes | Indexed At |
memory |
object |
Yes | Memory |
project_id |
string |
No | Project Id |
response |
string |
No | Response |
scope |
object |
Yes | Scope |
source |
object |
Yes | Source |
tags |
array |
No | Tags |
title |
string |
Yes | Title |
workaround |
string |
No | Workaround |
create
POST /api/v1/organizations/{organization_id}/verify/memories
Operation ID: post_api_v1_organizations_organization_id_verify_memories.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
environment_id |
string |
No | |
finding |
string |
Yes | |
project_id |
string |
No | |
response |
string |
No | |
tags |
array of string |
No | |
title |
string |
Yes | |
workaround |
string |
No |
Responses
200: Success
application/json
The response is object.
201: Scoped operator note saved
application/json
| Property | Type | Required | Description |
|---|---|---|---|
confidence |
enum: low, medium, high |
Yes | |
created_at |
string (date-time) |
Yes | |
finding |
string |
Yes | |
id |
string |
Yes | |
indexed_at |
string (date-time) |
Yes | |
response |
string |
Yes | |
scope |
object |
Yes | |
scope.environment_id |
string |
Yes | |
scope.environment_name |
string |
Yes | |
scope.project_id |
string |
Yes | |
scope.project_name |
string |
Yes | |
source |
object |
Yes | |
source.attempt_id |
string |
Yes | |
source.creator_user_id |
string |
Yes | |
source.finding_id |
string |
No | |
source.kind |
enum: scenario_attempt, operator, run, triage |
Yes | |
source.observed_at |
string (date-time) |
Yes | |
source.outcome |
string |
Yes | |
source.persona |
string |
Yes | |
source.purpose |
string |
No | |
source.repository_id |
string |
Yes | |
source.repository_name |
string |
Yes | |
source.run_id |
string |
No | |
source.scenario |
string |
Yes | |
source.scenario_run_id |
string |
No | |
source.sweep_id |
string |
Yes | |
source.triage_id |
string |
No | The finding triage a dream learned this lesson from |
source.verification_run_id |
string |
No | The run whose failed or blocked Scenario an operator taught this note on |
tags |
array of string |
Yes | |
title |
string |
Yes | |
workaround |
string |
Yes |
401: Unauthorized
403: Organization administrator required
404: Scope does not belong to this organization
422: Invalid scope or note
502: Bad gateway
list
GET /api/v1/organizations/{organization_id}/verify/memories
Operation ID: api_v1_memories.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
include_environments |
query |
boolean |
No | Also browse memories from this project's environments |
q |
query |
string |
No | |
tag |
query |
string |
No | |
environment_id |
query |
string |
No | Include exact environment and explicitly scoped project notes |
project_id |
query |
string |
No | Include only notes explicitly scoped to this project |
Responses
200: Most recent or 50 best matching memories, with indexing health
application/json
| Property | Type | Required | Description |
|---|---|---|---|
counts |
object |
Yes | |
counts.failed |
integer |
Yes | |
counts.pending |
integer |
Yes | |
counts.ready |
integer |
Yes | |
counts.unindexed |
integer |
Yes | |
memories |
array of object |
Yes | |
memories[].confidence |
enum: low, medium, high |
Yes | |
memories[].created_at |
string (date-time) |
Yes | |
memories[].finding |
string |
Yes | |
memories[].id |
string |
Yes | |
memories[].indexed_at |
string (date-time) |
Yes | |
memories[].response |
string |
Yes | |
memories[].scope |
object |
Yes | |
memories[].scope.environment_id |
string |
Yes | |
memories[].scope.environment_name |
string |
Yes | |
memories[].scope.project_id |
string |
Yes | |
memories[].scope.project_name |
string |
Yes | |
memories[].source |
object |
Yes | |
memories[].source.attempt_id |
string |
Yes | |
memories[].source.creator_user_id |
string |
Yes | |
memories[].source.finding_id |
string |
No | |
memories[].source.kind |
enum: scenario_attempt, operator, run, triage |
Yes | |
memories[].source.observed_at |
string (date-time) |
Yes | |
memories[].source.outcome |
string |
Yes | |
memories[].source.persona |
string |
Yes | |
memories[].source.purpose |
string |
No | |
memories[].source.repository_id |
string |
Yes | |
memories[].source.repository_name |
string |
Yes | |
memories[].source.run_id |
string |
No | |
memories[].source.scenario |
string |
Yes | |
memories[].source.scenario_run_id |
string |
No | |
memories[].source.sweep_id |
string |
Yes | |
memories[].source.triage_id |
string |
No | The finding triage a dream learned this lesson from |
memories[].source.verification_run_id |
string |
No | The run whose failed or blocked Scenario an operator taught this note on |
memories[].tags |
array of string |
Yes | |
memories[].title |
string |
Yes | |
memories[].workaround |
string |
Yes | |
organization |
object |
Yes | |
organization.name |
string |
Yes | |
organization.slug |
string |
Yes | |
permissions |
object |
Yes | |
permissions.manage |
boolean |
Yes | |
search_available |
boolean |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verify/memories/{id}
Operation ID: api_v1_memory.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
No | |
environment_id |
query |
string |
No |
Responses
200: Current lesson and latest ten revisions
application/json
| Property | Type | Required | Description |
|---|---|---|---|
history |
array of object |
Yes | |
history[].after |
object |
Yes | |
history[].before |
object |
Yes | |
history[].created_at |
string (date-time) |
Yes | |
history[].dream_id |
string |
Yes | Public id of the nightly dream that made this change; null unless origin is dreaming |
history[].id |
string |
Yes | |
history[].operation |
enum: create, update, archive |
Yes | |
history[].origin |
enum: operator, review, dreaming |
Yes | Operator edit, automatic review of one run, or nightly dreaming |
history[].reason |
string |
Yes | |
history[].relations |
array of object |
Yes | |
history[].relations[].id |
string |
Yes | |
history[].relations[].kind |
enum: related_to, supersedes, contradicts |
Yes | |
history[].sources |
array of object |
Yes | |
history[].sources[].environment_id |
string |
No | |
history[].sources[].environment_name |
string |
No | |
history[].sources[].run_id |
string |
No | |
memory |
object |
Yes | |
memory.confidence |
enum: low, medium, high |
Yes | |
memory.created_at |
string (date-time) |
Yes | |
memory.finding |
string |
Yes | |
memory.id |
string |
Yes | |
memory.indexed_at |
string (date-time) |
Yes | |
memory.response |
string |
Yes | |
memory.scope |
object |
Yes | |
memory.scope.environment_id |
string |
Yes | |
memory.scope.environment_name |
string |
Yes | |
memory.scope.project_id |
string |
Yes | |
memory.scope.project_name |
string |
Yes | |
memory.source |
object |
Yes | |
memory.source.attempt_id |
string |
Yes | |
memory.source.creator_user_id |
string |
Yes | |
memory.source.finding_id |
string |
No | |
memory.source.kind |
enum: scenario_attempt, operator, run, triage |
Yes | |
memory.source.observed_at |
string (date-time) |
Yes | |
memory.source.outcome |
string |
Yes | |
memory.source.persona |
string |
Yes | |
memory.source.purpose |
string |
No | |
memory.source.repository_id |
string |
Yes | |
memory.source.repository_name |
string |
Yes | |
memory.source.run_id |
string |
No | |
memory.source.scenario |
string |
Yes | |
memory.source.scenario_run_id |
string |
No | |
memory.source.sweep_id |
string |
Yes | |
memory.source.triage_id |
string |
No | The finding triage a dream learned this lesson from |
memory.source.verification_run_id |
string |
No | The run whose failed or blocked Scenario an operator taught this note on |
memory.tags |
array of string |
Yes | |
memory.title |
string |
Yes | |
memory.workaround |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Memory is outside the selected active scope
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/organizations/{organization_id}/verify/memories/{id}
Operation ID: delete_api_v1_organizations_organization_id_verify_memories_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
No |
Responses
200: Success
application/json
The response is object.