Save chat message

POST /api/v11/message/save

Save chat message after AI response

application/json

Body

Responses

  • 200 application/json

    Message saved successfully

    Hide response attributes Show response attributes object
    • success boolean Required

      Default value is true.

    • id integer Required
  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • success boolean Required

      Default value is false.

    • error string Required

      Value is One or more API parameters are malformed. Please check your request and try again.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • success boolean Required

      Default value is false.

    • error string Required

      Value is Invalid username, password, or access token.

  • 429 application/json

    User exceeded the message limit for their current plan

    One of:
POST /api/v11/message/save
curl \
 -X POST https://chat-api.aurora-interactive.online:8443/api/v11/message/save \
 -H "Content-Type: application/json" \
 -H "x-access-token: wcdE8dGPZEshG6B8E5uGpgALr5LzwPX5AqZFKAZsfcvzuHVf" \
 -d '{"chatId":42,"role":"system","content":"string","timestamp":42}'
Request examples
# Headers
x-access-token: wcdE8dGPZEshG6B8E5uGpgALr5LzwPX5AqZFKAZsfcvzuHVf

# Payload
{
  "chatId": 42,
  "role": "system",
  "content": "string",
  "timestamp": 42
}
Response examples (200)
{
  "success": true,
  "id": 42
}
Response examples (400)
{
  "success": false,
  "error": "One or more API parameters are malformed. Please check your request and try again"
}
Response examples (401)
{
  "success": false,
  "error": "Invalid username, password, or access token"
}
Response examples (429)
{
  "success": false,
  "error": "You have exceeded your Message/TTS quota. To send more messages, please upgrade your plan or wait until your subscription renews."
}
{
  "statusCode": 42,
  "error": "string",
  "message": "string"
}