# Logs API

> API request logs (public API + MCP) and the workspace activity log.

Base URL: `https://api.socialit.com/v1`. Authenticate with `Authorization: Bearer <API key or OAuth token>`.

## List API request logs

`GET /logs`

Filter with status, method, path, api_key_id, source, created_at.after / created_at.before, or any <field>.<condition>.

Access: `admin` · MCP tool: `list-request-logs` · Zernio: `GET /v1/logs`

### Query parameters

- `page` (integer; ≥ 1): Page number
- `limit` (integer; 1–100): Items per page (max 100)
- `sort` (string; one of created_at, status, duration_ms)
- `order` (string; one of asc, desc)
- `match` (string; one of all, or): Combine filters with AND (default) or OR
- `status` (string)
- `method` (string)
- `path` (string)
- `api_key_id` (string)
- `source` (string)

```bash
curl "https://api.socialit.com/v1/logs" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
```

Response 200:

```json
{
  "object": "list",
  "data": [
    {
      "object": "request_log",
      "id": "string",
      "method": "string",
      "path": "string",
      "route": "string",
      "operation_id": "string",
      "source": "api",
      "status": 1,
      "duration_ms": 1,
      "api_key_id": "string",
      "oauth_client_id": "string",
      "request_id": "string",
      "ip": "string",
      "user_agent": "string",
      "request_body": {},
      "response_body": {},
      "created_at": "2026-10-13T09:00:00.000Z"
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "has_more": true,
  "next_page_url": "https://example.com",
  "previous_page_url": "https://example.com"
}
```

## Get an API request log

`GET /logs/{id}`

Includes the (redacted) request and response bodies.

Access: `admin` · MCP tool: `get-request-log`

### Path parameters

- `id` (string; required; 1–80 characters): requestLog id (log_…)

```bash
curl "https://api.socialit.com/v1/logs/log_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
```

Response 200:

```json
{
  "object": "request_log",
  "id": "string",
  "method": "string",
  "path": "string",
  "route": "string",
  "operation_id": "string",
  "source": "api",
  "status": 1,
  "duration_ms": 1,
  "api_key_id": "string",
  "oauth_client_id": "string",
  "request_id": "string",
  "ip": "string",
  "user_agent": "string",
  "request_body": {},
  "response_body": {},
  "created_at": "2026-10-13T09:00:00.000Z"
}
```

## List workspace activity

`GET /activity`

Audit log of changes to workspace settings, members, API keys and webhooks.

Access: `admin` · MCP tool: `list-activity`

### Query parameters

- `page` (integer; ≥ 1): Page number
- `limit` (integer; 1–100): Items per page (max 100)
- `sort` (string; one of created_at)
- `order` (string; one of asc, desc)
- `match` (string; one of all, or): Combine filters with AND (default) or OR
- `action` (string)
- `actor_type` (string)
- `target_type` (string)

```bash
curl "https://api.socialit.com/v1/activity" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
```

Response 200:

```json
{
  "object": "list",
  "data": [
    {
      "object": "activity",
      "id": "string",
      "actor": {
        "type": "string",
        "id": "string",
        "name": "string"
      },
      "action": "string",
      "target": {
        "type": "string",
        "id": "string",
        "name": "string"
      },
      "metadata": {},
      "created_at": "2026-10-13T09:00:00.000Z"
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "has_more": true,
  "next_page_url": "https://example.com",
  "previous_page_url": "https://example.com"
}
```


---

Source: https://socialit.com/docs/api-reference/logs/
