---
title: "Record AI fetch"
method: POST
path: "/api/sites/{id}/ingest/ai-fetch"
tags: ["Sites"]
---

# Record AI fetch

`POST /api/sites/{id}/ingest/ai-fetch`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/ingest/ai-fetch`
- Auth: one of:
  - API key in cookie `hk_token`
  - HTTP bearer
  - API key in header `X-API-Key`

Accepts a server-side AI crawler fetch record for a site. The user agent must match a known AI bot. Intended for edge or log-forwarded fetch analytics.

## Path parameters

- `id` string, uuid, required

## Request body

- AIFetchIngestPayload
  - `bytes_served` integer
  - `content_type` string
  - `hostname` string
  - `path` string, required
  - `response_ms` integer
  - `status_code` integer, required
  - `user_agent` string, required

## Response `202`

Accepted

---

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