---
title: "Process message with AI"
method: POST
path: "/chat/conversations/{id}/process"
---

# Process message with AI

`POST /chat/conversations/{id}/process`

## Request

- Base URL: `https://api.closedloop.sh`
- URL: `https://api.closedloop.sh/chat/conversations/{id}/process`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/closedloop/apis/closedloop-ai-api/docs/chat/conversations/:id/process/post.ts> (a function with typed inputs; its response is checked against the schema)

Process a message with AI analysis

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `content` string, required: Message content to process

## Response `201`

Message processed successfully

- Message
  - `id` string, uuid
  - `content` string
  - `role` 'user' | 'assistant'
  - `created_at` string, date-time

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/closedloop/apis/closedloop-ai-api.md) - [All operations](https://skmtc.dev/closedloop/apis/closedloop-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/closedloop/apis/closedloop-ai-api/revisions/20e04ae722ee?raw)
