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

# Event Types

# Event Types

Reference for all audit log event types.

## Token Events

### TOKEN\_CREATION

Logged when a token is created.

```json theme={null}
{
  "event_type": "TOKEN_CREATION",
  "action": "TOKENIZE",
  "resource_type": "TOKEN",
  "resource_id": "tok_abc123",
  "details": {
    "token_type": "card",
    "masked_number": "411111******1111",
    "fingerprint": "fp_xyz789"
  }
}
```

### TOKEN\_DELETION

Logged when a token is deleted.

```json theme={null}
{
  "event_type": "TOKEN_DELETION",
  "action": "DELETE",
  "resource_type": "TOKEN",
  "resource_id": "tok_abc123",
  "details": {
    "token_type": "card"
  }
}
```

### DETOKENIZATION

Logged when a token is detokenized.

```json theme={null}
{
  "event_type": "DETOKENIZATION",
  "action": "DETOKENIZE",
  "resource_type": "TOKEN",
  "resource_id": "tok_abc123",
  "details": {
    "token_type": "card"
  }
}
```

### PROXY\_TRANSACTION

Logged when a proxy request is made.

```json theme={null}
{
  "event_type": "PROXY_TRANSACTION",
  "action": "PROXY",
  "resource_type": "TOKEN",
  "resource_id": "tok_abc123",
  "details": {
    "proxy_url": "https://api.stripe.com/v1/charges",
    "response_status": 200
  }
}
```

## Authentication Events

### LOGIN\_SUCCESS

Logged on successful login.

```json theme={null}
{
  "event_type": "LOGIN_SUCCESS",
  "action": "LOGIN",
  "resource_type": "USER",
  "resource_id": "usr_abc123",
  "details": {
    "email": "user@example.com",
    "mfa_used": true
  }
}
```

### LOGIN\_FAILED

Logged on failed login attempt.

```json theme={null}
{
  "event_type": "LOGIN_FAILED",
  "action": "LOGIN",
  "resource_type": "USER",
  "resource_id": null,
  "details": {
    "email": "user@example.com",
    "reason": "invalid_password"
  }
}
```

### MFA\_ENABLED

Logged when MFA is enabled.

```json theme={null}
{
  "event_type": "MFA_ENABLED",
  "action": "ENABLE",
  "resource_type": "MFA",
  "resource_id": "usr_abc123"
}
```

### MFA\_DISABLED

Logged when MFA is disabled.

```json theme={null}
{
  "event_type": "MFA_DISABLED",
  "action": "DISABLE",
  "resource_type": "MFA",
  "resource_id": "usr_abc123"
}
```

### MFA\_BACKUP\_CODE\_USED

Logged when a backup code is used.

```json theme={null}
{
  "event_type": "MFA_BACKUP_CODE_USED",
  "action": "VERIFY",
  "resource_type": "MFA",
  "resource_id": "usr_abc123",
  "details": {
    "backup_codes_remaining": 9
  }
}
```

### PASSWORD\_CHANGE

Logged when password is changed.

```json theme={null}
{
  "event_type": "PASSWORD_CHANGE",
  "action": "CHANGE",
  "resource_type": "USER",
  "resource_id": "usr_abc123"
}
```

## Project Events

### PROJECT\_CREATED

Logged when a project is created.

```json theme={null}
{
  "event_type": "PROJECT_CREATED",
  "action": "CREATE",
  "resource_type": "PROJECT",
  "resource_id": "proj_abc123",
  "details": {
    "name": "My Project"
  }
}
```

### PROJECT\_PROVISIONED

Logged when a sub-project is provisioned.

```json theme={null}
{
  "event_type": "PROJECT_PROVISIONED",
  "action": "PROVISION",
  "resource_type": "PROJECT",
  "resource_id": "proj_abc123",
  "details": {
    "master_project_id": "proj_master",
    "user_email": "admin@acme.com"
  }
}
```

### MEMBER\_INVITED

Logged when a user is invited.

```json theme={null}
{
  "event_type": "MEMBER_INVITED",
  "action": "INVITE",
  "resource_type": "PROJECT",
  "resource_id": "proj_abc123",
  "details": {
    "invited_email": "new@example.com",
    "role": "member"
  }
}
```

### MEMBER\_REMOVED

Logged when a member is removed.

```json theme={null}
{
  "event_type": "MEMBER_REMOVED",
  "action": "REMOVE",
  "resource_type": "PROJECT",
  "resource_id": "proj_abc123",
  "details": {
    "removed_user_id": "usr_xyz789"
  }
}
```

## Application Events

### APPLICATION\_CREATED

Logged when an application is created.

```json theme={null}
{
  "event_type": "APPLICATION_CREATED",
  "action": "CREATE",
  "resource_type": "APPLICATION",
  "resource_id": "app_abc123",
  "details": {
    "name": "My Application",
    "permissions": {
      "tokenization": true,
      "provisioning": false
    }
  }
}
```

### APPLICATION\_DELETED

Logged when an application is deleted.

```json theme={null}
{
  "event_type": "APPLICATION_DELETED",
  "action": "DELETE",
  "resource_type": "APPLICATION",
  "resource_id": "app_abc123",
  "details": {
    "name": "My Application"
  }
}
```

## Settings Events

### SETTINGS\_CHANGED

Logged when settings are modified.

```json theme={null}
{
  "event_type": "SETTINGS_CHANGED",
  "action": "UPDATE",
  "resource_type": "SETTINGS",
  "resource_id": "proj_abc123",
  "details": {
    "setting": "deduplication_enabled",
    "old_value": false,
    "new_value": true
  }
}
```

## Event Type Summary

| Event Type | Description |
| - | - |
| `TOKEN_CREATION` | Token created |
| `TOKEN_DELETION` | Token deleted |
| `DETOKENIZATION` | Token data retrieved |
| `PROXY_TRANSACTION` | Proxy request made |
| `LOGIN_SUCCESS` | Successful login |
| `LOGIN_FAILED` | Failed login attempt |
| `MFA_ENABLED` | MFA turned on |
| `MFA_DISABLED` | MFA turned off |
| `MFA_BACKUP_CODE_USED` | Backup code used |
| `PASSWORD_CHANGE` | Password updated |
| `PROJECT_CREATED` | Project created |
| `PROJECT_PROVISIONED` | Sub-project provisioned |
| `MEMBER_INVITED` | User invited |
| `MEMBER_REMOVED` | Member removed |
| `APPLICATION_CREATED` | Application created |
| `APPLICATION_DELETED` | Application deleted |
| `SETTINGS_CHANGED` | Settings modified |

## Next Steps

* [Querying Logs](query.md) - Filter and search logs
* [Error Handling](../errors/README.md) - Understanding errors


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