> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "POST /api/chat"
description: ""
api: "POST /api/chat"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```bash title="cURL" lines=false
    curl -X POST "https://api.example.com/api/chat" \
      -H "Content-Type: application/json" \
      -d '{
      "messages": [
        null
      ],
      "docsZipUrl": "https://example.com",
      "docsPages": {},
      "skillUrls": [
        "https://example.com"
      ],
      "pageSlug": "string"
    }'
    ```
  </RequestExample>
</Aside>

<OpenAPIEndpoint {...{"method":"post","path":"/api/chat","parameters":[],"requestBody":{"required":true,"contentType":"application/json","schema":{"type":"object","required":["messages"],"properties":{"messages":{"type":"array","items":{}},"docsZipUrl":{"type":"string","format":"uri"},"docsPages":{"type":"object","additionalProperties":{"type":"string"}},"skillUrls":{"type":"array","items":{"type":"string","format":"uri"}},"pageSlug":{"type":"string"}}},"examples":[]},"responses":[{"status":"200","description":"","examples":[]},{"status":"default","description":"","examples":[]}],"security":[],"servers":[]}} />
