Skip to content

Answer ask

POST/api/public/v1/asks/{ground_id}/answer

Terminal window
curl --fail-with-body -X POST 'https://app.openlatch.ai/api/public/v1/asks/<ground_id>/answer' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"verdict":"allow","scope":"exact_action"}'
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorAllowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: triage:write

ParameterTypeDescription
ground_idstring (uuid)Required.
ParameterTypeDescription
Idempotency-Keystring or nullOptional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.
FieldTypeDescription
recommendation_idstring (uuid) or nullOptional. The suggested answer you are answering from.
scopestring — one of exact_action, resource_class, rule_agent, rule_zoneRequired.
verdictstring — one of allow, blockRequired.
FieldTypeDescription
dataobjectRequired. An ASK ground after an answer or a snooze: its state, and what was chosen.
data.answered_atstring (date-time) or null
data.atom_idstring or null
data.chosen_scopestring or null
data.first_seen_atstring (date-time)Required.
data.idstringRequired.
data.last_seen_atstring (date-time)Required.
data.occurrencesintegerRequired.
data.policy_idstring or null
data.snoozed_untilstring (date-time) or null
data.statestringRequired.
data.zone_idstring or null
{
"data": {
"answered_at": "2026-01-15T14:32:05Z",
"atom_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"chosen_scope": "string",
"first_seen_at": "2026-01-15T14:32:05Z",
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"last_seen_at": "2026-01-15T14:32:05Z",
"occurrences": 3,
"policy_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"snoozed_until": "2026-01-15T14:32:05Z",
"state": "string",
"zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10"
}
}