curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/traces/{correlationId}/events/{eventId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/traces/{correlationId}/events/{eventId}', 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}/traces/{correlationId}/events/{eventId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"automation": "<string>",
"appInstance": "<string>",
"workspaceId": "<string>",
"duration": 123,
"trigger": {},
"expired": true,
"input": "<unknown>",
"output": "<unknown>",
"source": {
"correlationId": "<string>",
"automationSlug": "<string>",
"appInstanceFullSlug": "<string>",
"appInstanceDepth": 123,
"workspaceId": "<string>",
"userId": "<string>",
"sessionId": "<string>",
"serviceTopic": "<string>"
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Inputs and outputs of one trace step
Returns the inputs and outputs of one step of a trace, fetched on
demand. Same permission as the trace (agent-factory:traces:read).
The event must belong both to the given correlation and to an
execution of the given agent. Known secret keys are stripped from
input and output; the raw event is never served (open it in the
Builder activity view, under workspace access control).
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/traces/{correlationId}/events/{eventId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/traces/{correlationId}/events/{eventId}', 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}/traces/{correlationId}/events/{eventId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"automation": "<string>",
"appInstance": "<string>",
"workspaceId": "<string>",
"duration": 123,
"trigger": {},
"expired": true,
"input": "<unknown>",
"output": "<unknown>",
"source": {
"correlationId": "<string>",
"automationSlug": "<string>",
"appInstanceFullSlug": "<string>",
"appInstanceDepth": 123,
"workspaceId": "<string>",
"userId": "<string>",
"sessionId": "<string>",
"serviceTopic": "<string>"
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
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).
Headers
Resolve the agent as its editor does (draft configuration).
true Path Parameters
64128128Response
Step detail.
True when the 14-day cleanup already removed this step's inputs and outputs.
Step inputs, known secret keys removed.
Step outputs, known secret keys removed.
Was this page helpful?