Conversation
PEGA
Pegasystems Inc.
CA
PEGA
Posted: 21 hours 47 minutes ago
Last activity: 6 hours 12 minutes ago
Last activity: 22 Jan 2026 12:45 EST
AI Agent APIs
A REST API to manage AI agent conversations in Pega—start, interact with, retrieve, and close conversations, and react to messages.
Base path: https://{host}/prweb/app/{application}/api/application/v2/ai-agents
| Topic | EndPoint URL | Sample Request | SAMPLE RESPONSE |
| Get a conversation (GET) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentId}/conversations/{conversationId} | NA |
|
| Get the Past History (GET) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentId}/conversations?contextID={contextId}&pageSize={pageSize}&pageIndex={pageIndex} | NA |
|
| Initiate AI conversation(POST) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentId}/conversations |
|
|
| Send a message in a conversation (PATCH) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentId}/conversations/{conversationId} |
|
|
| End a conversation(PUT) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentId}/conversations/{conversationId}/close | {} | {} |
| Like a message (PUT) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentName}/conversations/{conversationId}/messages/{messageId}/like | {} | {} |
| Dislike a message (PUT) | https://{host}/prweb/app/{application}/api/application/v2/ai-agents/{agentName}/conversations/{conversationId}/messages/{messageId}/dislike | {} | {} |
Pega GenAI Cookbook - Recipes series
Enjoyed this article? See more similar articles in Pega Cookbook - Recipes 🔥🔥🔥 series.