---
title: "Revoke a connected account"
url: https://hexelstudio.com/docs/api/titan/connections/revoke-a-connected-account
---

# Revoke a connected account

**DELETE** `/titan/tools/connected-accounts/{nano_id}`

Revoke a connected account by nano ID, wiping credentials.

Requires permission `tool-gateway:auth:write`.

## Path parameters

- `nano_id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

- `X-Workspace-Id: optional string`

  Workspace scope used by permission checks, if applicable.

- `X-Environment-Id: optional string`

  Optional environment scope.

## Returns

`204` Revoked

## Errors

- `401` Unauthenticated: token missing or rejected at the edge
- `403` Forbidden: caller lacks the required permission
- `404` Not Found
- `500` Internal Server Error

## Example

```bash
curl --request DELETE \
  --url 'https://api.hexelstudio.com/v1/titan/tools/connected-accounts/{nano_id}' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (404)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (500)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
