Permission check API

POST /v1/checks asks whether an agent may perform an action now. Call it before every action your agent takes on a connected app.

Request

curl -s https://agents.steadyzinc.store/v1/checks \
  -H "Authorization: Bearer $WARDLACE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent_id":"sales-assistant","connector":"crm","action":"deal.update","resource":"deal:20931"}'
Field Required Meaning
agent_id yes The agent asking
connector yes A connector id, such as crm
action yes One of the connector's actions, such as deal.update
resource no The object the action is on; needed when policies limit resources

Response

{
  "check_id": "chk_4f1c09a2b7",
  "decision": "allow",
  "policy_id": "pol_91e2d7",
  "agent_id": "sales-assistant",
  "connector": "crm",
  "action": "deal.update",
  "checked_at": "2026-11-02T09:14:07Z"
}

decision is allow, deny or needs_approval. For needs_approval the response also has an approval_url your agent can show to a person.

Errors

Status When
400 A required field is missing; the message names it
401 No key, or the key does not start with wdl_
404 Unknown path
405 Wrong method
429 Too many requests, or Sandbox monthly checks used up

Billing

Each successful POST /v1/checks counts as one check against your plan. Reading policies, connectors and the audit log does not count.

Latency

Checks are answered from the region nearest the caller: 20 ms at the 95th percentile on Team and Business, measured at our edge.