---
title: "Logs a redirection"
method: PUT
path: "/6/{hashid}/stats/redirect"
tags: ["Session & Events"]
---

# Logs a redirection

`PUT /6/{hashid}/stats/redirect`

Logs a "redirection triggered" event in stats logs.

## Path parameters

- `hashid` string, required

## Request body

- LogRedirectionRequest
  - `id` string, required — The id of the redirection triggered
  - `query` string — The search query that led to this
  - `session_id` string, required — Identifier of search session

## Response `200`

OK

- StatsResponse — Response returned over register stat operation.
  - `status` string — Result of the stats request. i.e. 'registered'

## Other responses

- `400` — Bad Request — missing required fields (session_id, id) or redirect id is not numeric.
- `403` — Forbidden — missing or invalid API token, client IP is blocked, or CORS `Origin` not allowed.

---

[API](https://skmtc.dev/doofinder/apis/recommendations-api.md) · [All operations](https://skmtc.dev/doofinder/apis/recommendations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doofinder/recommendations-api/revisions/50dc63ab0921/schema)
