---
title: "Natural-language entry search (Pro)"
method: POST
path: "/search/entries/ai"
tags: ["Search"]
---

# Natural-language entry search (Pro)

`POST /search/entries/ai`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/search/entries/ai`
- Auth: HTTP bearer

`interpreted` reports what the query was read as -- the keywords it was reduced to and any date range it implied -- so the caller can show what was actually searched for.

## Request body

- AiEntrySearchRequest
  - `q` string, required
  - `diaryId` string, uuid
  - `limit` integer

## Response `200`

OK

- object
  - `data` object, required
    - `hits` SearchHit[], required
      - `entryId` string, uuid, required
      - `diaryId` string, uuid, required
      - `diaryName` string, nullable, required
      - `groupName` string, nullable, required
      - `title` string, nullable, required
      - `preview` string, required
      - `occurredAt` string, required
      - `score` number, required
    - `interpreted` object, required
      - `keywords` string, required
      - `from` string, nullable, required
      - `to` string, nullable, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `402`: Pro is required

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
