List recent target chat activity
curl --request GET \
--url https://api.acornops.dev/api/v1/workspaces/{workspaceId}/targets/{targetId}/chat-activity \
--cookie acornops_cp_session=const options = {method: 'GET', headers: {cookie: 'acornops_cp_session='}};
fetch('https://api.acornops.dev/api/v1/workspaces/{workspaceId}/targets/{targetId}/chat-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"targetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetType": "kubernetes",
"windowSeconds": 123,
"generatedAt": "2023-11-07T05:31:56Z",
"recentActivity": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Sessions and runs
List recent target chat activity
Returns recent non-deleted, non-expired troubleshooting sessions with message/run activity for the target. Requires target read access, not chat creation permission.
List recent target chat activity
curl --request GET \
--url https://api.acornops.dev/api/v1/workspaces/{workspaceId}/targets/{targetId}/chat-activity \
--cookie acornops_cp_session=const options = {method: 'GET', headers: {cookie: 'acornops_cp_session='}};
fetch('https://api.acornops.dev/api/v1/workspaces/{workspaceId}/targets/{targetId}/chat-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"targetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetType": "kubernetes",
"windowSeconds": 123,
"generatedAt": "2023-11-07T05:31:56Z",
"recentActivity": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Authorizations
userSessionexternalIntegrationClientToken
Headers
Required only for linked external integration requests. Must identify the linked external user.
Required string length:
1 - 128Path Parameters
Example:
"4b930d98-add9-4924-ab26-3c16d96ec373"
Example:
"5b006e4c-509c-458a-9f02-5aafbdc01ade"
Query Parameters
Required range:
60 <= x <= 3600Response
Recent activity payload with target metadata, windowSeconds, generatedAt, and recentActivity rows including owner display metadata, last run, active run, and write-capable activity flags.