Skip to main content
POST
/
v0
/
chat
/
sessions
Create Session
curl --request POST \
  --url https://api.example.com/v0/chat/sessions \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "messages": [
    {
      "id": "<string>",
      "role": "<string>",
      "parts": [
        {}
      ],
      "created_at": 123,
      "metadata": {}
    }
  ],
  "title": "<string>"
}
'
{
  "_links": {
    "kyc": {
      "description": "Submit KYC information",
      "href": "/v0/user/me/kyc",
      "method": "PUT"
    },
    "self": {
      "href": "/v0/user/me",
      "method": "GET"
    },
    "wallets": {
      "href": "/v0/wallets",
      "method": "GET"
    }
  }
}

Headers

x-juno-jwt
string | null

Body

application/json
id
string
required
Required string length: 1 - 64
messages
MessageInput · object[]
required
Minimum array length: 1
title
string | null
Maximum string length: 255

Response

Session created successfully with initial messages

HAL-style hypermedia links for navigation and available actions.

session
SessionData · object
required