---
title: "Respond to permission request"
method: POST
path: "/permission/{requestID}/reply"
---

# Respond to permission request

`POST /permission/{requestID}/reply`

Approve or deny a permission request from the AI assistant.

## Path parameters

- `requestID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `reply` 'once' | 'always' | 'reject', required
  - `message` string

## Response `200`

Permission processed successfully

- boolean

## Other responses

- `400` — Bad request
- `404` — Not found

## Changes

- **2026-04-25** `0a2d50cb4204` — 1 breaking, 1 info
  - added the pattern `^per.*` to the `path` request parameter `requestID`
  - added the new optional `query` request parameter `workspace`
- **2026-01-15** `101bbaa394c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kaaass/apis/opencode/changes/permission/:requestID/reply/post.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) · [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kaaass/opencode/revisions/8bb9a15bd144/schema)
