Get a single conversation with its message history
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/conversations/{contextId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/conversations/{contextId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/conversations/{contextId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"conversation": {
"contextId": "<string>",
"agent_id": "<string>",
"title": "<string>",
"is_archived": true,
"is_starred": true,
"messages_count": 123,
"last_message_at": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"messages": [
{}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Conversations
Get a single conversation with its message history
Returns the conversation envelope plus a paginated slice of its task-message history (ordered most-recent first).
GET
/
v1
/
agents
/
{agentId}
/
conversations
/
{contextId}
Get a single conversation with its message history
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/conversations/{contextId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/conversations/{contextId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/conversations/{contextId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"conversation": {
"contextId": "<string>",
"agent_id": "<string>",
"title": "<string>",
"is_archived": true,
"is_starred": true,
"messages_count": 123,
"last_message_at": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"messages": [
{}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
BearerAuthOrgApiKeyAuth
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
Maximum string length:
64Maximum string length:
64Query Parameters
Page size for the task-message history (default 100).
1-indexed page number for the task-message history.
Response
Conversation + messages.
Conversation envelope (one row per A2A contextId).
Task-message records (A2A history entries).
Was this page helpful?