Assistant

Message the Assistant

Runs one turn as your account and answers with the messages it added: yours, then the Assistant's reply. The turn is paid from your credit and refused before it runs when the balance is below zero.

post/v1/assistant/sessions/{session_id}/messages

Request

  • Base URL: https://api.naturali.ai
  • URL: https://api.naturali.ai/v1/assistant/sessions/{session_id}/messages
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)

Request body

contentstring required

Example request

{
  "content": "List my projects."
}

Response

The messages this turn added, oldest first.

Example response

{
  "data": [
    {
      "id": "doc_V1StGXR8Z5jdHi6B",
      "role": "assistant",
      "content": "You have two projects."
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.