---
title: "List directives"
method: GET
path: "/v1/default/banks/{bank_id}/directives"
tags: ["Directives"]
---

# List directives

`GET /v1/default/banks/{bank_id}/directives`

## Request

- Base URL: `https://hindsight.vectorize.io` (the document declares no server; this is the origin it was published from)
- URL: `https://hindsight.vectorize.io/v1/default/banks/{bank_id}/directives`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vectorize/apis/hindsight-http-api/docs/v1/default/banks/:bank_id/directives/get.ts> (a function with typed inputs; its response is checked against the schema)

List directive definitions. Unlike reflect, an omitted tag filter returns all directives.

## Path parameters

- `bank_id` string, required

## Query parameters

- `tags` string[], nullable: Filter directives by execution scope. Omit or pass [] to list all directives.
- `tags_match` 'any' | 'all' | 'exact': How tagged directives match the requested scope. Untagged/global directives are included.
- `active_only` boolean: Only return active directives
- `limit` integer
- `offset` integer

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- DirectiveListResponse: Response model for listing directives.
  - `items` DirectiveResponse[], required
    - `id` string, required
    - `bank_id` string, required
    - `name` string, required
    - `content` string, required
    - `priority` integer
    - `is_active` boolean
    - `tags` string[]
    - `created_at` string, nullable
    - `updated_at` string, nullable
  - `total` integer, required: Total number of directives matching the filter (not just this page)
  - `limit` integer, required: Page size that was applied
  - `offset` integer, required: Offset that was applied

## Other responses

- `404`: The bank does not exist.
- `422`: Validation Error

## Changes

- **2026-10-04** `4fda98b75f63`: 1 warning, 4 info
  - removed the optional property `detail/items/url` from the response with the `422` status
  - added the non-success response with the status `404`
  - added the required property `limit` to the response with the `200` status
  - added the required property `offset` to the response with the `200` status
  - …1 more
- **2026-05-15** `0d08f271b9db`: 3 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
  - added the optional property `detail/items/url` to the response with the `422` status

[Operation history](https://skmtc.dev/vectorize/apis/hindsight-http-api/changes/v1/default/banks/:bank_id/directives/get.md)

---

[API](https://skmtc.dev/vectorize/apis/hindsight-http-api.md) - [All operations](https://skmtc.dev/vectorize/apis/hindsight-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vectorize/apis/hindsight-http-api/revisions/45e711cd0897?raw)
