---
title: "Send message to AI coach (requires OpenAI)"
method: POST
path: "/api/ai/respond"
tags: ["AI Coach"]
---

# Send message to AI coach (requires OpenAI)

`POST /api/ai/respond`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/ai/respond`
- Auth: HTTP bearer

## Headers

- `x-timezone` string, required

## Request body

- AiRespondDto
  - `message` string, required
  - `sessionId` string
  - `session_id` string: Snake-case alias for sessionId
  - `timezone` string
  - `capabilities` string[]: Chat cards this client can render beyond the original set. Older builds send nothing and get today's behaviour. Known: "recipe_set" (up to three recipes in one card).

## Response `200`

- unknown

## Changes

- **2026-10-02** `99dfe8a4d48b`: 1 info
  - added the new optional request property `capabilities`

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/ai/respond/post.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
