# Auth

> Source: https://developers.cloud66.com/v3/webhooks/auth/

## App Authorization

URL: https://developers.cloud66.com/v3/webhooks/auth/#app-auth
Event type: app.auth

This webhook is sent when an OAuth application is authorized to access your Cloud66 account. The payload includes user information and application identifier.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "app.auth",
  "user": "user@example.com",
  "app": "7c2c4ab2ae7ed4c33c3dacd1e9715f796ec222fd8985341128d7f7d485349caf"
}
```

---

## App Deauthorization

URL: https://developers.cloud66.com/v3/webhooks/auth/#app-deauth
Event type: app.deauth

This webhook is sent when an OAuth application authorization is revoked. The payload structure is the same as app.auth but indicates deauthorization.

### Payload

```json
{
  "timestamp": 1640995200,
  "event_type": "app.deauth",
  "user": "user@example.com",
  "app": "7c2c4ab2ae7ed4c33c3dacd1e9715f796ec222fd8985341128d7f7d485349caf"
}
```
