Aller au contenu

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.

Fenêtre de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/learning-proposals' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerAutorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : proposals:read

ParamètreTypeDescription
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
ChampTypeDescription
dataobjectObligatoire.
data.next_cursorstring or null
data.proposalsarray of objectObligatoire.
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, widensObligatoire.
data.proposals[].evidenceobject or null
data.proposals[].expires_atstring (date-time)Obligatoire.
data.proposals[].input_digeststringObligatoire.
data.proposals[].intent_policyobject or null
data.proposals[].kindstring — one of monitor_to_enforce, dictionary_value, decisive_declaration, regression_caseObligatoire.
data.proposals[].opened_atstring (date-time)Obligatoire.
data.proposals[].policyobject or null
data.proposals[].public_idstringObligatoire.
data.proposals[].resultobject or null
data.proposals[].statestring — one of open, accepted, dismissed, superseded, expiredObligatoire.
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"
}
}
]
}
}