Agent

Send message to agent

Sends a message to an AI agent thread and streams the response using Server-Sent Events (SSE). The response follows the Vercel AI UI message stream format.

post/project/{projectId}/agents/messages

Request

  • Base URL
    https://api.takeshape.io
  • Auth
    HTTP bearer

Path parameters

projectIdstring uuid required
Example:550e8400-e29b-41d4-a716-446655440000

The unique identifier for a project

Request body

idstring required

The thread/session ID

triggerstring

Optional trigger for the message

Example request

{
  "messages": [
    {
      "parts": [
        {
          "text": "Hello, how can I help you today?"
        }
      ],
      "role": "user"
    }
  ],
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "metadata": {
    "custom": {
      "inputName": "userInput"
    }
  }
}

Response

SSE stream of agent responses

Changes

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