For the complete documentation index, see llms.txt. This page is also available as Markdown.

Activity Logs

List Activity Logs

get

Retrieves a paginated list of activity logs. Can be filtered by subject_type and subject_id.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Query parameters
filter[subject_type]stringOptional

Filter results by subject_type.

filter[subject_id]stringOptional

Filter results by subject_id.

fields[causer]stringOptional

Comma-separated list of causer fields to return. Available: id, name, email

pageinteger · min: 1Optional

Page number for pagination.

Default: 1
per_pageinteger · min: 1 · max: 100Optional

Number of results per page.

Responses
200

Successful response

application/json
get/api/v1/activity-logs
GET /api/v1/activity-logs HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "log_name": "string",
      "subject_type": "string",
      "subject_id": "string",
      "causer_id": "string",
      "event": "string",
      "created_at": "2025-01-15T10:30:00.000000Z",
      "updated_at": "2025-01-15T10:30:00.000000Z",
      "changes": "string",
      "user": {
        "id": 0,
        "name": "string",
        "email": "string"
      }
    }
  ],
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "path": "https://api.example.com/api/v1/activity-logs",
    "per_page": 15,
    "to": 1,
    "total": 1
  },
  "links": {
    "first": "https://api.example.com/api/v1/activity-logs?page=1",
    "last": "https://api.example.com/api/v1/activity-logs?page=1",
    "prev": null,
    "next": null
  }
}

Last updated

Was this helpful?