---
title: "Reply to pending permission request"
method: POST
path: "/api/session/{sessionID}/permission/{requestID}/reply"
tags: ["permission"]
---

# Reply to pending permission request

`POST /api/session/{sessionID}/permission/{requestID}/reply`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/session/{sessionID}/permission/{requestID}/reply`
- Auth: none required

Respond to a pending permission request owned by a session.

## Path parameters

- `sessionID` string, required
- `requestID` string, required

## Request body

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

## Response `204`

<No Content>

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError
- `404`: SessionNotFoundError | PermissionNotFoundError | LocationNotFoundError

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
