> ## 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.

# Apps autorizados

> Rotas da API do Scripts: apps autorizados.

| Método | Caminho | O que faz |
| - | - | - |
| `GET` | `/oauth2/@me/authorizations` | Apps autorizados na sua conta (mesmas autorizações do Hub OAuth). |
| `DELETE` | `/oauth2/@me/authorizations/{authorization_id}` | Revoga um app autorizado e todos os tokens dele. |

## GET /oauth2/@me/authorizations

Apps autorizados na sua conta (mesmas autorizações do Hub OAuth).

**Autenticação:** Só sessão do DoglyTdc (painel). Token de script e OAuth não servem.

**Resposta:** `{ 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}

Revoga um app autorizado e todos os tokens dele.

**Autenticação:** Só sessão do DoglyTdc (painel). Token de script e OAuth não servem.

**Parâmetros do caminho:** `authorization_id`

**Resposta:** `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.