Activity Logs

Export activity logs

Export activity logs

post/workspaces/{workspace_id}/activity_log/export

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/activity_log/export
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace Id

Request body

export_type'csv' | 'xlsx' | 'internal_dataset'

The type of export to perform.

project_idinteger nullable

The ID of the project to export data from.

dataset_namestring nullable

The name of the dataset to create if exporting as an internal dataset.

Example request

{
  "export_type": "csv",
  "project_id": 2,
  "dataset_name": "activity_logs",
  "filters": {
    "start_time": "2021-01-01 00:00:00",
    "end_time": "2026-01-31 23:59:59",
    "categories": [
      "Project",
      "View"
    ],
    "activities": [
      "create_project",
      "create_view"
    ],
    "user_ids": [
      14,
      27
    ]
  }
}

Response

Export activity logs

status_codeinteger nullable
job_idinteger nullable

Created job id

failure_reasonstring nullable

Failure reason if status is failure

Changes

No recorded changes to this operation across all 3 revisions of this API.