PPylon Developers
ApiA I Agents

Send a message to the AI agent

Sends a message to an active conversation. The AI agent will process the message and respond.

POST
/api/v1/agents/conversations/{id}/messages
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/agents/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages" \  -H "Content-Type: application/json" \  -d '{    "message": "string"  }'
{
  "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",
  "assistantResponse": "string",
  "respondedAt": "2019-08-24T14:15:22Z"
}
{
  "code": "string",
  "message": "string"
}