# The Activity Log object

### The Activity Log object

```json
{
  "id": "accact_1SdeybAiQNL8swvtMHyVtfCU",
  "object": "v2.iam.activity_log",
  "created": "2025-01-01T00:00:00.000Z",
  "type": "api_key_created",
  "livemode": true,
  "context": "acct_1SdeybAiQNL8swvt",
  "actor": {
    "type": "user",
    "user": {
      "email": "user@example.com"
    }
  },
  "details": {
    "type": "api_key",
    "api_key": {
      "id": "mk_1SdeybAiQNL8swvtMHyVtfCU",
      "created": "2025-01-01T00:00:00.000Z",
      "type": "secret_key",
      "name": "My API Key",
      "note": "",
      "expires_at": null,
      "ip_allowlist": [],
      "new_key": null,
      "managed_by": null
    }
  }
}
```

## Attributes

- `id` (string)
  Unique identifier of the activity log entry.

- `object` (string, value is "v2.iam.activity_log")
  String representing the object’s type. Objects of the same type share the same value of the object field.

- [`actor`](https://docs.stripe.com/api/v2/iam/activity-logs/object.md?query=actor&api-version=2026-04-22.preview) (object)
  The actor that performed the action.

- `context` (string)
  The account on which the action was performed.

- `created` (timestamp)
  Timestamp when the activity log entry was created.

- [`details`](https://docs.stripe.com/api/v2/iam/activity-logs/object.md?query=details&api-version=2026-04-22.preview) (object)
  Action-specific details of the activity log entry.

- `livemode` (boolean)
  Whether the action was performed in live mode.

- `type` (enum)
  The type of action that was performed.
Possible enum values:
  - `api_key_created`
    An API key was created.

  - `api_key_deleted`
    An API key was deleted.

  - `api_key_updated`
    An API key was updated.

  - `api_key_viewed`
    An API key’s secret was viewed.

  - `user_invite_accepted`
    A user invite was accepted.

  - `user_invite_created`
    A user invite was created.

  - `user_invite_deleted`
    A user invite was deleted.

  - `user_roles_deleted`
    A user’s roles were deleted.

  - `user_roles_updated`
    A user’s roles were updated.
