---
title: "Dry-run field_triggers (match + conditions, no actions)"
method: POST
path: "/api/data-access/trigger-test"
tags: ["DataAccess"]
---

# Dry-run field_triggers (match + conditions, no actions)

`POST /api/data-access/trigger-test`

## Request

- Base URL: `https://api.agentstack.tech` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agentstack.tech/api/data-access/trigger-test`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Query parameters

- `project_id` integer, required: Project ID

## Headers

- `Idempotency-Key` string

## Request body

- TriggerTestBody: Body for POST /trigger-test — simulate field_triggers match + conditions.
  - `resource` string, required: FAP resource key (e.g. orders)
  - `action` string, required: created | updated | deleted | read
  - `data` object: Sample event payload
  - `user_id` integer
  - `user_role` string
  - `permissions_bitmap` integer
  - `resource_owner_id` integer, nullable

## Response `200`

would_run_count and per-trigger condition_passed

- unknown

## Other responses

- `400`: Bad Request
- `401`: Not authenticated
- `403`: Insufficient project access (read / admin / owner)
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/agentstack/apis/agentstack-core-api.md) · [All operations](https://skmtc.dev/agentstack/apis/agentstack-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentstack/apis/agentstack-core-api/revisions/8ecf3406e74a?raw)
