---
title: "Commit a search event"
method: POST
path: "/analytics/searches/commit"
tags: ["Analytics"]
---

# Commit a search event

`POST /analytics/searches/commit`

## Request

- Base URL: `https://api.savanto.ai`
- URL: `https://api.savanto.ai/analytics/searches/commit`
- Auth: HTTP bearer

Record a search event for analytics tracking. Requires search scope.

## Request body

- object
  - `query` string, required
  - `source` string
  - `type` string
  - `resultsCount` number
  - `topScore` number
  - `avgScore` number

## Response `200`

Search event committed

- object
  - `data` object, required
    - `committed` boolean, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `413`: Payload too large
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/savanto/apis/savanto-api.md) · [All operations](https://skmtc.dev/savanto/apis/savanto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/savanto/apis/savanto-api/revisions/82437327a878?raw)
