Skip to main content
POST
/
chat
Create a new chat
curl --request POST \
  --url https://api.dev.knowmio.com/api/chat \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "title": "<string>",
  "metadata": {}
}
'
{
  "id": "<string>",
  "userId": "<string>",
  "organizationId": "<string>",
  "title": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "metadata": {}
}

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Query Parameters

organizationId
string
required

Organization ID - Required when using API Key authentication. Optional with session authentication (defaults to session's active organization).

Body

application/json
title
string
required
metadata
object

Response

Chat created successfully

id
string
required
userId
string
required
organizationId
string
required
title
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
metadata
object