Skip to main content
POST
/
v0
/
chat
/
sessions
/
{session_id}
/
messages
Save Messages
curl --request POST \
  --url https://api.example.com/v0/chat/sessions/{session_id}/messages \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {
      "id": "<string>",
      "role": "<string>",
      "parts": [
        {}
      ],
      "created_at": 123,
      "metadata": {}
    }
  ]
}
'
{
  "_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

Path Parameters

session_id
string
required

Body

application/json
messages
MessageInput · object[]
required

Response

Messages saved successfully

HAL-style hypermedia links for navigation and available actions.

saved_count
integer
required