# Send a message

> For the complete documentation index, see [llms.txt](/llms.txt)

> Send a message and get an AI response. Returns 201 for new chats, 200 for existing ones.

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Send a message"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/v1/chats/"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Send a message and get an AI response. Returns 201 for new chats, 200 for existing ones.

**Required permission:** `chat_create`

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  parameters={undefined}
>
  
</ParamsDetails>

<RequestSchema
  {...require("./send-message.RequestSchema.json")}
>
  
</RequestSchema>

<StatusCodes
  {...require("./send-message.StatusCodes.json")}
>
  
</StatusCodes>
