Sessions

Creates a blank session with optional provider and model defaults.

post/api/sessions

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

titlestring
providerIdstring
modelIdstring

Response

Session created successfully.

idstring required
titlestring required
createdAtstring date-time required
updatedAtstring date-time required
archivedAtstring date-time nullable required
defaultProviderIdstring nullable required
defaultModelIdstring nullable required
messageCountinteger required

Example response

{
  "id": "ses_123",
  "title": "New chat",
  "createdAt": "2026-04-23T10:00:00.000Z",
  "updatedAt": "2026-04-23T10:05:00.000Z"
}

Changes