---
title: "Disconnect an AI app"
method: DELETE
path: "/ai-apps/{ai_app_id}/"
tags: ["ai_apps"]
---

# Disconnect an AI app

`DELETE /ai-apps/{ai_app_id}/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/ai-apps/{ai_app_id}/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Disconnect an AI app from this workspace: its sign-in stops working at once, and the app has to be connected again to use Oneprofile. You can disconnect your own apps; a workspace admin can disconnect anybody's.

## Path parameters

- `ai_app_id` string, uuid, required

## Response `200`

Successful Response

- SuccessfullyDeletedResponse
  - `count` integer: The number of resources that were deleted.
  - `detail` string, required: The detail of why the resource was deleted.

## Other responses

- `401`: Unauthorized
- `403`: Somebody else's app, and not an admin.
- `404`: No such connected app.
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
