> This page is for Data API, version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://developers.webflow.com/data/v2.0.0/llms.txt
> - v2 Beta: https://developers.webflow.com/data/v2.0.0-beta/llms.txt
> - v1: https://developers.webflow.com/data/v1.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get Workspace Audit Logs

GET https://api.webflow.com/v2/workspaces/{workspace_id_or_slug}/audit_logs

Get audit logs for a workspace.This endpoint requires an Enterprise workspace and a workspace token with the `workspace_activity:read` scope. Create a workspace token from your workspace dashboard integrations page to use this endpoint.Required scope | `workspace_activity:read`

Reference: https://developers.webflow.com/data/reference/enterprise/workspace-audit-logs/get

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `workspace_id_or_slug` (string, required) — Unique identifier or slug for a Workspace

### Query parameters

- `limit` (integer, optional) — Maximum number of records to be returned (max limit: 100)
- `offset` (integer, optional) — Offset used for pagination if the results have more than limit records
- `sortOrder` (enum, optional) — Sorts the results by asc or desc
  - Allowed values: `asc`, `desc`
- `eventType` (enum, optional) — The event type to filter by
  - Allowed values: `user_access`, `custom_role`, `workspace_membership`, `site_membership`, `workspace_invitation`, `workspace_setting`
- `from` (string, optional) — The start date to filter by
- `to` (string, optional) — The end date to filter by

## Response

### 200

A list of workspace audit logs

- `items` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItems, optional)
- `pagination` (WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaPagination, optional) — Pagination object

## Errors

### 401 Unauthorized Error

Provided access token is invalid or does not have access to requested resource

- `code` (enum, optional) — Error code
  - Allowed values: `aeo_input_validation`, `analyze_filter_conflict`, `analyze_input_validation`, `analyze_unsupported_filter`, `bad_request`, `batch_too_large`, `before_historical_floor`, `billing_provider_unavailable`, `branch_merge_conflict`, `branch_merge_in_progress`, `branch_not_found`, `branch_publish_failed`, `branch_sync_pending`, `branch_task_not_found`, `branch_update_in_progress`, `brand_not_configured`, `cannot_invite_self`, `cannot_remove_self`, `cannot_update_user_role`, `client_seats_unavailable`, `collection_not_found`, `competitors_not_configured`, `conflict`, `conflicting_scope_filters`, `default_site_role_required`, `duplicate_collection`, `duplicate_member_in_request`, `duplicate_site_in_request`, `duplicate_user_email`, `ecommerce_not_enabled`, `end_time_too_recent`, `enterprise_provisioning_upstream_error`, `enterprise_self_provisioning_not_entitled`, `forbidden`, `forms_require_republish`, `incompatible_webhook_filter`, `insufficient_permissions`, `insufficient_seats`, `internal_error`, `invalid_auth_version`, `invalid_credentials`, `invalid_domain`, `invalid_resolution`, `invalid_site_role`, `invalid_time_range`, `invalid_user_email`, `invalid_workspace_role`, `invite_expired`, `invite_role_conflict`, `item_not_found`, `managed_by_scim`, `member_already_has_access`, `member_has_no_site_access`, `member_is_paying_client`, `member_not_found`, `member_not_removable`, `member_role_conflict`, `missing_scopes`, `no_domains`, `no_members_or_invites`, `not_authorized`, `not_enterprise_plan_site`, `not_enterprise_plan_workspace`, `optimize_before_historical_floor`, `optimize_input_validation`, `optimize_invalid_interval`, `optimize_unknown_dimension`, `optimize_unknown_goal`, `optimize_unknown_optimization`, `optimize_unsupported_group_by`, `order_not_found`, `page_cannot_branch`, `resource_not_found`, `service_unavailable`, `site_access_not_applicable_to_member`, `site_access_not_scopable_for_role`, `site_access_roles_must_match`, `site_not_in_workspace`, `site_role_id_invalid`, `site_role_id_not_allowed`, `site_role_id_required`, `site_specific_access_disabled`, `site_specific_access_not_entitled`, `time_range_too_wide`, `too_many_requests`, `unsupported_bot_provider`, `unsupported_version`, `unsupported_webhook_trigger_type`, `user_limit_reached`, `user_not_found`, `users_not_enabled`, `validation_error`, `workspace_invite_not_found`, `workspace_member_managed_by_scim`, `workspace_member_not_found`, `workspace_member_not_removable`, `workspace_role_not_grantable`
- `message` (string, optional) — Error message
- `externalReference` (string, optional) — Link to more information
- `details` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaDetailsItems, optional) — Array of errors

### 403 Forbidden Error

Forbidden

- `code` (enum, optional) — Error code
  - Allowed values: `aeo_input_validation`, `analyze_filter_conflict`, `analyze_input_validation`, `analyze_unsupported_filter`, `bad_request`, `batch_too_large`, `before_historical_floor`, `billing_provider_unavailable`, `branch_merge_conflict`, `branch_merge_in_progress`, `branch_not_found`, `branch_publish_failed`, `branch_sync_pending`, `branch_task_not_found`, `branch_update_in_progress`, `brand_not_configured`, `cannot_invite_self`, `cannot_remove_self`, `cannot_update_user_role`, `client_seats_unavailable`, `collection_not_found`, `competitors_not_configured`, `conflict`, `conflicting_scope_filters`, `default_site_role_required`, `duplicate_collection`, `duplicate_member_in_request`, `duplicate_site_in_request`, `duplicate_user_email`, `ecommerce_not_enabled`, `end_time_too_recent`, `enterprise_provisioning_upstream_error`, `enterprise_self_provisioning_not_entitled`, `forbidden`, `forms_require_republish`, `incompatible_webhook_filter`, `insufficient_permissions`, `insufficient_seats`, `internal_error`, `invalid_auth_version`, `invalid_credentials`, `invalid_domain`, `invalid_resolution`, `invalid_site_role`, `invalid_time_range`, `invalid_user_email`, `invalid_workspace_role`, `invite_expired`, `invite_role_conflict`, `item_not_found`, `managed_by_scim`, `member_already_has_access`, `member_has_no_site_access`, `member_is_paying_client`, `member_not_found`, `member_not_removable`, `member_role_conflict`, `missing_scopes`, `no_domains`, `no_members_or_invites`, `not_authorized`, `not_enterprise_plan_site`, `not_enterprise_plan_workspace`, `optimize_before_historical_floor`, `optimize_input_validation`, `optimize_invalid_interval`, `optimize_unknown_dimension`, `optimize_unknown_goal`, `optimize_unknown_optimization`, `optimize_unsupported_group_by`, `order_not_found`, `page_cannot_branch`, `resource_not_found`, `service_unavailable`, `site_access_not_applicable_to_member`, `site_access_not_scopable_for_role`, `site_access_roles_must_match`, `site_not_in_workspace`, `site_role_id_invalid`, `site_role_id_not_allowed`, `site_role_id_required`, `site_specific_access_disabled`, `site_specific_access_not_entitled`, `time_range_too_wide`, `too_many_requests`, `unsupported_bot_provider`, `unsupported_version`, `unsupported_webhook_trigger_type`, `user_limit_reached`, `user_not_found`, `users_not_enabled`, `validation_error`, `workspace_invite_not_found`, `workspace_member_managed_by_scim`, `workspace_member_not_found`, `workspace_member_not_removable`, `workspace_role_not_grantable`
- `message` (string, optional) — Error message
- `externalReference` (string, optional) — Link to more information
- `details` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaDetailsItems, optional) — Array of errors

### 404 Not Found Error

Requested resource not found

- `code` (enum, optional) — Error code
  - Allowed values: `aeo_input_validation`, `analyze_filter_conflict`, `analyze_input_validation`, `analyze_unsupported_filter`, `bad_request`, `batch_too_large`, `before_historical_floor`, `billing_provider_unavailable`, `branch_merge_conflict`, `branch_merge_in_progress`, `branch_not_found`, `branch_publish_failed`, `branch_sync_pending`, `branch_task_not_found`, `branch_update_in_progress`, `brand_not_configured`, `cannot_invite_self`, `cannot_remove_self`, `cannot_update_user_role`, `client_seats_unavailable`, `collection_not_found`, `competitors_not_configured`, `conflict`, `conflicting_scope_filters`, `default_site_role_required`, `duplicate_collection`, `duplicate_member_in_request`, `duplicate_site_in_request`, `duplicate_user_email`, `ecommerce_not_enabled`, `end_time_too_recent`, `enterprise_provisioning_upstream_error`, `enterprise_self_provisioning_not_entitled`, `forbidden`, `forms_require_republish`, `incompatible_webhook_filter`, `insufficient_permissions`, `insufficient_seats`, `internal_error`, `invalid_auth_version`, `invalid_credentials`, `invalid_domain`, `invalid_resolution`, `invalid_site_role`, `invalid_time_range`, `invalid_user_email`, `invalid_workspace_role`, `invite_expired`, `invite_role_conflict`, `item_not_found`, `managed_by_scim`, `member_already_has_access`, `member_has_no_site_access`, `member_is_paying_client`, `member_not_found`, `member_not_removable`, `member_role_conflict`, `missing_scopes`, `no_domains`, `no_members_or_invites`, `not_authorized`, `not_enterprise_plan_site`, `not_enterprise_plan_workspace`, `optimize_before_historical_floor`, `optimize_input_validation`, `optimize_invalid_interval`, `optimize_unknown_dimension`, `optimize_unknown_goal`, `optimize_unknown_optimization`, `optimize_unsupported_group_by`, `order_not_found`, `page_cannot_branch`, `resource_not_found`, `service_unavailable`, `site_access_not_applicable_to_member`, `site_access_not_scopable_for_role`, `site_access_roles_must_match`, `site_not_in_workspace`, `site_role_id_invalid`, `site_role_id_not_allowed`, `site_role_id_required`, `site_specific_access_disabled`, `site_specific_access_not_entitled`, `time_range_too_wide`, `too_many_requests`, `unsupported_bot_provider`, `unsupported_version`, `unsupported_webhook_trigger_type`, `user_limit_reached`, `user_not_found`, `users_not_enabled`, `validation_error`, `workspace_invite_not_found`, `workspace_member_managed_by_scim`, `workspace_member_not_found`, `workspace_member_not_removable`, `workspace_role_not_grantable`
- `message` (string, optional) — Error message
- `externalReference` (string, optional) — Link to more information
- `details` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaDetailsItems, optional) — Array of errors

### 429 Too Many Requests Error

The rate limit of the provided access_token has been reached. Please have your application respect the X-RateLimit-Remaining header we include on API responses.

- `code` (enum, optional) — Error code
  - Allowed values: `aeo_input_validation`, `analyze_filter_conflict`, `analyze_input_validation`, `analyze_unsupported_filter`, `bad_request`, `batch_too_large`, `before_historical_floor`, `billing_provider_unavailable`, `branch_merge_conflict`, `branch_merge_in_progress`, `branch_not_found`, `branch_publish_failed`, `branch_sync_pending`, `branch_task_not_found`, `branch_update_in_progress`, `brand_not_configured`, `cannot_invite_self`, `cannot_remove_self`, `cannot_update_user_role`, `client_seats_unavailable`, `collection_not_found`, `competitors_not_configured`, `conflict`, `conflicting_scope_filters`, `default_site_role_required`, `duplicate_collection`, `duplicate_member_in_request`, `duplicate_site_in_request`, `duplicate_user_email`, `ecommerce_not_enabled`, `end_time_too_recent`, `enterprise_provisioning_upstream_error`, `enterprise_self_provisioning_not_entitled`, `forbidden`, `forms_require_republish`, `incompatible_webhook_filter`, `insufficient_permissions`, `insufficient_seats`, `internal_error`, `invalid_auth_version`, `invalid_credentials`, `invalid_domain`, `invalid_resolution`, `invalid_site_role`, `invalid_time_range`, `invalid_user_email`, `invalid_workspace_role`, `invite_expired`, `invite_role_conflict`, `item_not_found`, `managed_by_scim`, `member_already_has_access`, `member_has_no_site_access`, `member_is_paying_client`, `member_not_found`, `member_not_removable`, `member_role_conflict`, `missing_scopes`, `no_domains`, `no_members_or_invites`, `not_authorized`, `not_enterprise_plan_site`, `not_enterprise_plan_workspace`, `optimize_before_historical_floor`, `optimize_input_validation`, `optimize_invalid_interval`, `optimize_unknown_dimension`, `optimize_unknown_goal`, `optimize_unknown_optimization`, `optimize_unsupported_group_by`, `order_not_found`, `page_cannot_branch`, `resource_not_found`, `service_unavailable`, `site_access_not_applicable_to_member`, `site_access_not_scopable_for_role`, `site_access_roles_must_match`, `site_not_in_workspace`, `site_role_id_invalid`, `site_role_id_not_allowed`, `site_role_id_required`, `site_specific_access_disabled`, `site_specific_access_not_entitled`, `time_range_too_wide`, `too_many_requests`, `unsupported_bot_provider`, `unsupported_version`, `unsupported_webhook_trigger_type`, `user_limit_reached`, `user_not_found`, `users_not_enabled`, `validation_error`, `workspace_invite_not_found`, `workspace_member_managed_by_scim`, `workspace_member_not_found`, `workspace_member_not_removable`, `workspace_role_not_grantable`
- `message` (string, optional) — Error message
- `externalReference` (string, optional) — Link to more information
- `details` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaDetailsItems, optional) — Array of errors

### 500 Internal Server Error

We had a problem with our server. Try again later.

- `code` (enum, optional) — Error code
  - Allowed values: `aeo_input_validation`, `analyze_filter_conflict`, `analyze_input_validation`, `analyze_unsupported_filter`, `bad_request`, `batch_too_large`, `before_historical_floor`, `billing_provider_unavailable`, `branch_merge_conflict`, `branch_merge_in_progress`, `branch_not_found`, `branch_publish_failed`, `branch_sync_pending`, `branch_task_not_found`, `branch_update_in_progress`, `brand_not_configured`, `cannot_invite_self`, `cannot_remove_self`, `cannot_update_user_role`, `client_seats_unavailable`, `collection_not_found`, `competitors_not_configured`, `conflict`, `conflicting_scope_filters`, `default_site_role_required`, `duplicate_collection`, `duplicate_member_in_request`, `duplicate_site_in_request`, `duplicate_user_email`, `ecommerce_not_enabled`, `end_time_too_recent`, `enterprise_provisioning_upstream_error`, `enterprise_self_provisioning_not_entitled`, `forbidden`, `forms_require_republish`, `incompatible_webhook_filter`, `insufficient_permissions`, `insufficient_seats`, `internal_error`, `invalid_auth_version`, `invalid_credentials`, `invalid_domain`, `invalid_resolution`, `invalid_site_role`, `invalid_time_range`, `invalid_user_email`, `invalid_workspace_role`, `invite_expired`, `invite_role_conflict`, `item_not_found`, `managed_by_scim`, `member_already_has_access`, `member_has_no_site_access`, `member_is_paying_client`, `member_not_found`, `member_not_removable`, `member_role_conflict`, `missing_scopes`, `no_domains`, `no_members_or_invites`, `not_authorized`, `not_enterprise_plan_site`, `not_enterprise_plan_workspace`, `optimize_before_historical_floor`, `optimize_input_validation`, `optimize_invalid_interval`, `optimize_unknown_dimension`, `optimize_unknown_goal`, `optimize_unknown_optimization`, `optimize_unsupported_group_by`, `order_not_found`, `page_cannot_branch`, `resource_not_found`, `service_unavailable`, `site_access_not_applicable_to_member`, `site_access_not_scopable_for_role`, `site_access_roles_must_match`, `site_not_in_workspace`, `site_role_id_invalid`, `site_role_id_not_allowed`, `site_role_id_required`, `site_specific_access_disabled`, `site_specific_access_not_entitled`, `time_range_too_wide`, `too_many_requests`, `unsupported_bot_provider`, `unsupported_version`, `unsupported_webhook_trigger_type`, `user_limit_reached`, `user_not_found`, `users_not_enabled`, `validation_error`, `workspace_invite_not_found`, `workspace_member_managed_by_scim`, `workspace_member_not_found`, `workspace_member_not_removable`, `workspace_role_not_grantable`
- `message` (string, optional) — Error message
- `externalReference` (string, optional) — Link to more information
- `details` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaDetailsItems, optional) — Array of errors

## Types

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItems

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaPagination

Pagination object

- `limit` (integer, required) — The limit used for pagination
- `offset` (integer, required) — The offset used for pagination
- `total` (integer, required) — The total number of records

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaDetailsItems

### User Access

- `eventType` (enum, optional)
  - Allowed values: `user_access`
- `eventSubType` (enum, optional)
  - Allowed values: `login`, `logout`
- `payload` (User access, optional)

### Custom Role

- `eventType` (enum, optional)
  - Allowed values: `custom_role`
- `eventSubType` (enum, optional)
  - Allowed values: `role_created`, `role_updated`, `role_deleted`
- `payload` (Custom role, optional)

### Workspace Membership

- `eventType` (enum, optional)
  - Allowed values: `workspace_membership`
- `eventSubType` (enum, optional)
  - Allowed values: `user_added`, `user_removed`, `user_role_updated`
- `payload` (Workspace membership, optional)

### Site Membership

- `eventType` (enum, optional)
  - Allowed values: `site_membership`
- `eventSubType` (enum, optional)
  - Allowed values: `user_added`, `user_removed`, `user_role_updated`, `user_granular_access_updated`
- `payload` (Site membership, optional)

### Workspace Invitation

- `eventType` (enum, optional)
  - Allowed values: `workspace_invitation`
- `eventSubType` (enum, optional)
  - Allowed values: `invite_sent`, `invite_accepted`, `invite_role_updated`, `invite_canceled`, `invite_declined`, `access_request_accepted`, `access_request_declined`
- `payload` (Workspace invitation, optional)

### Setting Change

- `eventType` (enum, optional)
  - Allowed values: `workspace_setting`
- `eventSubType` (enum, optional)
  - Allowed values: `setting_updated`
- `payload` (Setting change, optional)

### User access

- `method` (enum, optional)
  - Allowed values: `dashboard`, `sso`, `api`, `google`
- `location` (string, optional) — The geolocation based on the logged IP address
- `ipAddress` (string, optional) — The captured IP address of the user

### Custom role

- `roleName` (string, optional) — The name of the custom role
- `previousRoleName` (string, optional) — The previous name of the custom role

### Workspace membership

- `targetUser` (WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf2PayloadTargetUser, optional)
- `method` (enum, optional)
  - Allowed values: `sso`, `dashboard`, `admin`, `access_request`, `api`, `invite`, `scim`
- `userType` (enum, optional)
  - Allowed values: `member`, `guest`, `reviewer`, `client`
- `roleName` (string, optional) — The name of the role that was assigned to the user
- `previousRoleName` (string, optional) — The previous role that the user had

### Site membership

- `site` (WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf3PayloadSite, optional)
- `targetUser` (WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf3PayloadTargetUser, optional)
- `method` (enum, optional)
  - Allowed values: `invite`, `scim`, `dashboard`, `admin`, `access_request`, `api`
- `userType` (enum, optional)
  - Allowed values: `member`, `guest`, `reviewer`, `client`
- `roleName` (string, optional) — The name of the role that was assigned to the user
- `previousRoleName` (string, optional) — The previous role that the user had
- `granularAccess` (WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf3PayloadGranularAccess, optional)

### Workspace invitation

- `targetUser` (WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf4PayloadTargetUser, optional)
- `method` (enum, optional)
  - Allowed values: `sso`, `dashboard`, `admin`, `api`, `designer`, `scim`, `access_request`
- `userType` (enum, optional)
  - Allowed values: `member`, `guest`, `reviewer`, `client`
- `roleName` (string, optional) — The name of the role that was assigned to the user
- `previousRoleName` (string, optional) — The previous role that the user had
- `targetUsers` (list of WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf4PayloadTargetUsersItems, optional)

### Setting change

- `setting` (enum, optional)
  - Allowed values: `ai_toggle`
- `previousValue` (string, optional)
- `value` (string, optional)
- `method` (enum, optional)
  - Allowed values: `dashboard`

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf2PayloadTargetUser

- `id` (string, optional)
- `email` (string, optional)

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf3PayloadSite

- `id` (string, optional)
- `slug` (string, optional)

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf3PayloadTargetUser

- `id` (string, optional)
- `email` (string, optional)

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf3PayloadGranularAccess

- `id` (string, optional)
- `name` (string, optional)
- `type` (enum, optional)
  - Allowed values: `cms`
- `restricted` (boolean, optional)

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf4PayloadTargetUser

- `id` (string, optional)
- `email` (string, optional)

### WorkspacesWorkspaceIdOrSlugAuditLogsGetResponsesContentApplicationJsonSchemaItemsItemsOneOf4PayloadTargetUsersItems

- `id` (string, optional)
- `email` (string, optional)

## Examples

**Response**

```json
{
  "items": [
    {
      "eventType": "user_access",
      "eventSubType": "login",
      "payload": {
        "method": "dashboard",
        "location": "Ashburn US",
        "ipAddress": "54.165.18.93"
      },
      "timestamp": "2025-04-29T20:30:06.622Z",
      "actor": {
        "type": "person",
        "id": "6661ccb359b561c69f29d554",
        "email": "someone@email.com"
      },
      "workspace": {
        "id": "6621ccb459b561c69f29d57c",
        "slug": "hitchhikers-workspace"
      }
    },
    {
      "eventType": "workspace_membership",
      "eventSubType": "user_added",
      "payload": {
        "targetUser": {
          "id": "60492e55bbddce079561cd7a",
          "email": "someone@webflow.com"
        },
        "method": "sso",
        "userType": "member",
        "roleName": "member"
      },
      "timestamp": "2025-04-30T20:30:06.622Z",
      "actor": {
        "type": "person",
        "id": "60492e55bbddce079561cd7a",
        "email": "someone@webflow.com"
      },
      "workspace": {
        "id": "6621ccb459b561c69f29d57c",
        "slug": "hitchhikers-workspace"
      }
    },
    {
      "eventType": "site_membership",
      "eventSubType": "user_added",
      "payload": {
        "site": {
          "id": "67dc519889286123da057175",
          "slug": "hitchhikers-site"
        },
        "targetUser": {
          "id": "672946bf5d384ea895bb95e2",
          "email": "someone@webflow.com"
        },
        "method": "dashboard",
        "userType": "member",
        "roleName": "Edit - Cannot publish",
        "granularAccess": {
          "id": "67dc519889286123da057175",
          "name": "Blogs",
          "type": "cms",
          "restricted": false
        }
      },
      "timestamp": "2025-04-30T00:33:31.793Z",
      "actor": {
        "type": "person",
        "id": "671fe00d185fc8c1ad409d37",
        "email": "someone@webflow.com"
      },
      "workspace": {
        "id": "6621ccb459b561c69f29d57c",
        "slug": "hitchhikers-workspace"
      }
    }
  ],
  "pagination": {
    "limit": 10,
    "offset": 0,
    "total": 3
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs"

querystring = {"limit":"100","offset":"0","eventType":"user_access","from":"2025-06-22T16:00:31Z","to":"2025-07-22T16:00:31Z"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.webflow.com/v2/workspaces/hitchhikers-workspace/audit_logs?limit=100&offset=0&eventType=user_access&from=2025-06-22T16%3A00%3A31Z&to=2025-07-22T16%3A00%3A31Z")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```