---
title: "POST /api/v1/agent/preflight"
method: POST
path: "/api/v1/agent/preflight"
---

# POST /api/v1/agent/preflight

`POST /api/v1/agent/preflight`

## Request

- Base URL: `https://app.coderifts.com`
- URL: `https://app.coderifts.com/api/v1/agent/preflight`
- Auth: none declared

## Request body

- object
  - `tools_before` object[]
  - `tools_after` object[]
  - `workflow_type` string
  - `tool_name` string
  - `old_spec` union
    - string
    - object
  - `new_spec` union
    - string
    - object

## Response `default`

See the route; response contracts are published separately (preflight-response.v2, decision-result.v1, deny envelope).

---

[API](https://skmtc.dev/coderifts/apis/coderifts-app-every-served-route.md) · [All operations](https://skmtc.dev/coderifts/apis/coderifts-app-every-served-route/llms.txt) · [OpenAPI document](https://skmtc.dev/coderifts/apis/coderifts-app-every-served-route/revisions/51648201d397?raw)
