---
title: "Block a connected app"
method: POST
path: "/v1/connected-apps/{id}/block"
tags: ["Connected Apps"]
---

# Block a connected app

`POST /v1/connected-apps/{id}/block`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/connected-apps/{id}/block`
- Auth: HTTP bearer

Revokes the app's token and adds its client_id to the deny-list. Emits a `connected-apps.changed` event.

## Path parameters

- `id` string, required

## Response `200`

Blocked

- OkResponse
  - `ok` true, required

## Other responses

- `400`: Invalid request
- `404`: Resource not found

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
