Ir al contenido

List learning proposals

GET/api/public/v1/learning-proposals beta

Newest first. zone_id scopes to that zone and every zone below it (absent: every zone). state (default open) and kind repeat, their values ORed. limit defaults to 50 and caps at 100, so the first page holds every open proposal; cursor is the previous page's next_cursor.

Ventana de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/learning-proposals' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerPermitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: proposals:read

ParámetroTipoDescripción
zone_idstring (uuid) or null
statearray of string — one of open, accepted, dismissed, superseded, expired or null
kindarray of string — one of monitor_to_enforce, dictionary_value, decisive_declaration, regression_case or null
cursorstring or null
limitinteger
CampoTipoDescripción
dataobjectObligatorio.
data.next_cursorstring or null
data.proposalsarray of objectObligatorio.
data.proposals[].caseobject or null
data.proposals[].changedobject or null
data.proposals[].decided_atobject or null
data.proposals[].decided_byobject or null
data.proposals[].directionstring — one of tightens, neutral, widensObligatorio.
data.proposals[].evidenceobject or null
data.proposals[].expires_atstring (date-time)Obligatorio.
data.proposals[].input_digeststringObligatorio.
data.proposals[].intent_policyobject or null
data.proposals[].kindstring — one of monitor_to_enforce, dictionary_value, decisive_declaration, regression_caseObligatorio.
data.proposals[].opened_atstring (date-time)Obligatorio.
data.proposals[].policyobject or null
data.proposals[].public_idstringObligatorio.
data.proposals[].resultobject or null
data.proposals[].statestring — one of open, accepted, dismissed, superseded, expiredObligatorio.
data.proposals[].table_nameobject or null
data.proposals[].valueobject or null
data.proposals[].zoneobject or null
{
"data": {
"next_cursor": "string",
"proposals": [
{
"case": {
"action_line": "string",
"kind": "string",
"outcome_today": "string"
},
"changed": {
"sample": [
{}
],
"to_allow": 0,
"to_ask": 0,
"to_block": 0
},
"decided_at": "2026-01-15T14:32:05Z",
"decided_by": {
"kind": "user",
"name": "release-bot"
},
"direction": "tightens",
"evidence": {
"action": "string"
},
"expires_at": "2026-01-15T14:32:05Z",
"input_digest": "string",
"intent_policy": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"sentence": "string"
},
"kind": "monitor_to_enforce",
"opened_at": "2026-01-15T14:32:05Z",
"policy": {
"name": "release-bot",
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"version": 3
},
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"result": {},
"state": "open",
"table_name": "release-bot",
"value": "string",
"zone": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"name": "release-bot"
}
}
]
}
}