Messages

Base Path: /v1/message

Send Message

Method: POST Endpoint: https://api.tokensource.com/v1/message Description: Sends a message. Associates the message with the user, an AI assistant, and optionally an objective.

Request Body:

{
  "aiAssistantId": 1,
  "objectiveId": 1,
  "content": "Hello, how can I help you today?"
}

Response (201 Created):

{
  "status": "success",
  "data": {
    "id": 1,
    "message": "Message sent successfully"
  }
}

Last updated