---
title: "List prospective intentions"
method: GET
path: "/api/agent/intentions"
tags: ["Agent"]
---

# List prospective intentions

`GET /api/agent/intentions`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/agent/intentions`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Query parameters

- `agent` string
- `status` 'active' | 'fired' | 'delivered' | 'expired' | 'cancelled'

## Response `200`

Intention list.

- object
  - `intentions` AgentProspectiveIntention[]
    - `id` integer
    - `tenantId` integer
    - `agentId` integer, nullable: Null = fires for any agent's boot in this tenant.
    - `triggerType` 'event' | 'condition' | 'time'
    - `triggerSpec` object
    - `payloadContextId` integer
    - `reason` string, nullable
    - `createdBy` integer, nullable
    - `status` 'active' | 'fired' | 'delivered' | 'expired' | 'cancelled'
    - `createdAt` string, date-time
    - `firedAt` string, date-time, nullable
    - `deliveredAt` string, date-time, nullable
    - `expiresAt` string, date-time, nullable

## Other responses

- `400`: Request body/query failed Zod validation.
- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
