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

# N8N Webhook Summarizer

GET https://api.milescaira.com/v7/chatbot/n8n_webhook_summarizer/

Push expired sessions to N8N and store the returned summaries.

Reference: https://one.miles-api.com/api-reference/engagement/chatbot/n-8-n-webhook-summarizer-v-7-chatbot-n-8-n-webhook-summarizer-get

## Servers

- `https://api.milescaira.com` (Production, default)
- `https://miles-usp-backend-uat-2-154625965269.asia-south1.run.app` (UAT)
- `http://localhost:8080` (Local)

## Request

### Query parameters

- `assume_tz` (string, optional, default: UTC)
- `as_of` (string, optional, nullable)
- `limit` (integer, optional, nullable)
- `max_workers` (integer, optional, nullable)

## Response

### 200

Successful Response

- `detail` (string, required)
- `total_sessions` (integer, required)
- `stored_summaries` (integer, optional, nullable)
- `webhook_url` (string, optional, nullable)
- `results` (list of SummarizerSessionResult, optional)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### SummarizerSessionResult

Per-session outcome of the N8N summarizer push.

- `sso_user_id` (string, optional, nullable)
- `session_id` (string, optional, nullable)
- `ok` (boolean, optional, default: false)
- `status_code` (integer, optional, nullable)
- `response_preview` (string, optional, nullable)
- `stored_in_db` (boolean, optional, default: false)
- `db_error` (string, optional, nullable)
- `duration_ms` (double, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "detail": "string",
  "total_sessions": 1,
  "stored_summaries": 1,
  "webhook_url": "string",
  "results": [
    {
      "sso_user_id": "string",
      "session_id": "string",
      "ok": false,
      "status_code": 1,
      "response_preview": "string",
      "stored_in_db": false,
      "db_error": "string",
      "duration_ms": 1.1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.milescaira.com/v7/chatbot/n8n_webhook_summarizer/"

response = requests.get(url)

print(response.json())
```

```go
package main

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

func main() {

	url := "https://api.milescaira.com/v7/chatbot/n8n_webhook_summarizer/"

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

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

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

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

}
```

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

HttpResponse<String> response = Unirest.get("https://api.milescaira.com/v7/chatbot/n8n_webhook_summarizer/")
  .asString();
```