PPylon Developers
ApiA I Agents

Create a new AI conversation

Creates a new conversation with an AI agent. Optionally provide an initial message to start the conversation.

POST
/api/v1/agents/conversations
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

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" \  -H "Content-Type: application/json" \  -d '{    "agentType": "TicketSales",    "initialMessage": null  }'
{
  "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
  "createdAt": "2019-08-24T14:15:22Z"
}
{
  "code": "string",
  "message": "string"
}