History
Search query string.
Page number (0-based) for paginated results.
Number of results per page.
Success
Identifier of the search result (message or conversation ID).
ID of the conversation associated with this result.
Text snippet or summary of the result.
Timestamp of the message or conversation.
Result type (e.g., "conversation" or "message").
Bad request
Not Found
Internal Server Error
POST /api/v1/agent/search HTTP/1.1
Host: api.peoplelogic.dev
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"query": "sales report",
"page": 0,
"count": 10
}[
{
"id": "conv123",
"conversationId": "conv123",
"result": "Conversation about Quarterly Results",
"timestamp": "2025-07-01T08:00:00Z",
"type": "conversation"
},
{
"id": "msg789",
"conversationId": "conv123",
"result": "Q2 sales increased by 20%.",
"timestamp": "2025-07-01T08:05:00Z",
"type": "message"
}
]User's question or message.
Max number of results or steps (defaults to 5).
Additional instructions or context for the agent.
ID of an existing conversation (for follow-ups; omit for new questions).
If provided, get history messages since this timestamp (used in history request).
Success
Tenant/workspace of the user.
User ID who initiated or is associated with the message.
Name of the agent that produced the response (empty for user messages).
Type of message (e.g., "user_request" or "agent_response").
Message content.
Number of language model tokens used for this message (if applicable).
Time spent (in milliseconds) processing this message.
ID of the conversation this message belongs to.
Timestamp of the message.
Bad request
Not Found
Internal Server Error
POST /api/v1/agent/history HTTP/1.1
Host: api.peoplelogic.dev
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"conversationId": "conv123",
"since": "2025-07-13T00:00:00Z"
}[
{
"tenant": "acme-inc",
"userId": "user123",
"agent": "",
"messageType": "user_request",
"message": "How can I improve team productivity?",
"tokenUsage": 0,
"timeSpent": 0,
"conversationId": "conv123",
"timestamp": "2025-07-13T15:00:00Z",
"sources": []
},
{
"tenant": "acme-inc",
"userId": "user123",
"agent": "Peoplelogic Agent",
"messageType": "agent_response",
"message": "Encourage open communication and regular feedback...",
"tokenUsage": 1500,
"timeSpent": 3000,
"conversationId": "conv123",
"timestamp": "2025-07-13T15:00:05Z",
"sources": [
{
"name": "Employee Handbook",
"type": "document",
"url": "https://example.com/handbook.pdf"
}
]
}
]Last updated
Was this helpful?
