List decisions
POST
/v1/decisions
const url = 'http://localhost:8090/v1/decisions';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"limit":1,"topic":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/decisions \ --header 'Content-Type: application/json' \ --data '{ "limit": 1, "topic": "example" }'Request Body
Section titled “Request Body”Media typeapplication/json
object
limit
integer
topic
string
Examplegenerated
{ "limit": 1, "topic": "example"}Responses
Section titled “ Responses ”Decisions
Media typeapplication/json
Array<object>
object
id
required
string
kind
required
string
name
required
string
attrs
required
object
key
additional properties
any
provenance
required
object
sourceUri
Workspace-relative path
string
sourceHash
string
extractor
string
sourceType
string
observedAt
string format: date-time
createdRev
required
integer
deletedRev
integer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Examplegenerated
[ { "id": "example", "kind": "example", "name": "example", "attrs": {}, "provenance": { "sourceUri": "example", "sourceHash": "example", "extractor": "example", "sourceType": "example", "observedAt": "2026-04-15T12:00:00Z" }, "createdRev": 1, "deletedRev": 1, "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" }]