---
title: "Get AI router instruction"
method: GET
path: "/api/v1/org/aiRouter/instructions/{projectUuid}"
---

# Get AI router instruction

`GET /api/v1/org/aiRouter/instructions/{projectUuid}`

Get the active routing instruction for a project. Returns null when no
instruction has been written for the project yet.

## Path parameters

- `projectUuid` string, required

## Response `200`

Success

- ApiAiRouterInstructionResponse
  - `results` AiRouterInstruction, required — Per-project routing instructions written by an admin. Versioned append-only (like agent instructions): the latest version for a (router, project) pair is the active one. `instruction` is free text where tagged agents are embedded as `@[Agent Name](agent-uuid)` tokens; `taggedAgentUuids` is the extracted list, kept alongside the text so references can be validated and orphans detected.
    - `createdAt` string, date-time, required
    - `taggedAgentUuids` string[], required
    - `instruction` string, required
    - `projectUuid` string, required
    - `routerUuid` string, required
    - `instructionVersionUuid` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/versions/40c933755c9a/schema)
