> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doglytdc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Authorized apps

> Scripts API routes: authorized apps.

| Method | Path | What it does |
| - | - | - |
| `GET` | `/oauth2/@me/authorizations` | Authorized apps on your account (the same authorizations as the OAuth Hub). |
| `DELETE` | `/oauth2/@me/authorizations/{authorization_id}` | Revokes an authorized app and all its tokens. |

## GET /oauth2/@me/authorizations

Authorized apps on your account (the same authorizations as the OAuth Hub).

**Authentication:** DoglyTdc session only (dashboard). Script tokens and OAuth do not work.

**Response:** `{ id, application: { id, name, icon_url }, scopes, created_at }[]`

```bash cURL theme={null}
curl -X GET "https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-scripts-api/oauth2/@me/authorizations" \
  -H "Authorization: Bearer dts_SEU_TOKEN"
```

## DELETE /oauth2/@me/authorizations/\{authorization\_id}

Revokes an authorized app and all its tokens.

**Authentication:** DoglyTdc session only (dashboard). Script tokens and OAuth do not work.

**Path parameters:** `authorization_id`

**Response:** `204`

```bash cURL theme={null}
curl -X DELETE "https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-scripts-api/oauth2/@me/authorizations/{authorization_id}" \
  -H "Authorization: Bearer dts_SEU_TOKEN"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.