---
title: "The workspace's hook rules, in evaluation order [read]"
method: GET
path: "/hook_rules"
---

# The workspace's hook rules, in evaluation order \[read\]

`GET /hook_rules`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/hook_rules`
- Auth: HTTP bearer

`enabled` says whether hook rules are turned on for the workspace; where they are not the list is empty and nothing is evaluated.

## Response `200`

OK

- object
  - `enabled` boolean, required: Whether hook rules are turned on for the workspace.
  - `can_edit` boolean, required: Whether the caller may replace the rules: they are turned on and the caller owns the workspace.
  - `hook_rules` object[], required
    - `id` string, required: hkr_…
    - `point` 'session.start' | 'tool.call' | 'spend' | 'turn.end', required
    - `match` object, required
    - `action` 'notify' | 'block' | 'require_approval', required
    - `webhook_id` string, nullable, required
    - `enabled` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/hook_rules/get.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
