curl -X GET "https://production.runalloy.com/workflows/{workflowId}/logs?userId={{userId}}" \
-H "Authorization: bearer YOUR_API_KEY" \
-H "x-api-version: 2025-09"{
"data": [
{
"executionId": "uGmauA50FBlibba3JkPfB",
"startedAt": "2024-11-15T17:57:42.233Z",
"stoppedAt": "2024-11-15T17:57:42.847Z",
"finished": true,
"results": [
{
"startedAt": "2024-11-15T17:57:42.233Z",
"stoppedAt": "2024-11-15T17:57:42.287Z",
"data": [
[
{
"json": {},
"id": "1e2ef00f-af4c-405e-88b7-c71536d28ddd"
}
]
],
"connectorId": "6ad63c40-1abc-4289-8287-c62ef8bb2003"
},
{
"startedAt": "2024-11-15T17:57:42.391Z",
"data": [
[
{
"json": null,
"profileId": {
"type": "profile",
"id": "01F1EQ9A32KABYFC7Q0QNNHH33",
"attributes": {
"email": "[email protected]",
"phone_number": "+12394750599",
"external_id": null
},
"relationships": {
"lists": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/relationships/lists/",
"related": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/lists/"
}
},
"segments": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/relationships/segments/",
"related": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/segments/"
}
},
"conversation": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/relationships/conversation/",
"related": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/conversation/"
}
}
},
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/"
}
},
"statusCode": 200,
"id": "a6c68f48-4ef0-4d16-a009-3b47db6f611f"
}
]
],
"stoppedAt": "2024-11-15T17:57:42.781Z",
"connectorId": "ae331681-25a5-452c-8d21-884fada67437"
}
],
"inputs": [
{
"connectorId": "6ad63c40-1abc-4289-8287-c62ef8bb2003",
"data": {}
},
{
"connectorId": "ae331681-25a5-452c-8d21-884fada67437",
"data": {
"apiVersion": "legacy",
"profileFrom": "emailAddress",
"email": "[email protected]"
}
}
]
}
]
}Retrieves log data for a given workflow.
Each log includes the executionId (which can be used to rerun an execution), the startedAt and stoppedAt date stamps, and the JSON output of the execution.
curl -X GET "https://production.runalloy.com/workflows/{workflowId}/logs?userId={{userId}}" \
-H "Authorization: bearer YOUR_API_KEY" \
-H "x-api-version: 2025-09"{
"data": [
{
"executionId": "uGmauA50FBlibba3JkPfB",
"startedAt": "2024-11-15T17:57:42.233Z",
"stoppedAt": "2024-11-15T17:57:42.847Z",
"finished": true,
"results": [
{
"startedAt": "2024-11-15T17:57:42.233Z",
"stoppedAt": "2024-11-15T17:57:42.287Z",
"data": [
[
{
"json": {},
"id": "1e2ef00f-af4c-405e-88b7-c71536d28ddd"
}
]
],
"connectorId": "6ad63c40-1abc-4289-8287-c62ef8bb2003"
},
{
"startedAt": "2024-11-15T17:57:42.391Z",
"data": [
[
{
"json": null,
"profileId": {
"type": "profile",
"id": "01F1EQ9A32KABYFC7Q0QNNHH33",
"attributes": {
"email": "[email protected]",
"phone_number": "+12394750599",
"external_id": null
},
"relationships": {
"lists": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/relationships/lists/",
"related": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/lists/"
}
},
"segments": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/relationships/segments/",
"related": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/segments/"
}
},
"conversation": {
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/relationships/conversation/",
"related": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/conversation/"
}
}
},
"links": {
"self": "https://a.klaviyo.com/api/profiles/01F1EQ9A32KABYFC7Q0QNNHH33/"
}
},
"statusCode": 200,
"id": "a6c68f48-4ef0-4d16-a009-3b47db6f611f"
}
]
],
"stoppedAt": "2024-11-15T17:57:42.781Z",
"connectorId": "ae331681-25a5-452c-8d21-884fada67437"
}
],
"inputs": [
{
"connectorId": "6ad63c40-1abc-4289-8287-c62ef8bb2003",
"data": {}
},
{
"connectorId": "ae331681-25a5-452c-8d21-884fada67437",
"data": {
"apiVersion": "legacy",
"profileFrom": "emailAddress",
"email": "[email protected]"
}
}
]
}
]
}The version of the API to use. The current API version is 2025-09.
The Id of the git workflow you want to find logs for
The Id of the user you want delete logs for. Returned from the Create User endpoint
page of results
Number of results per page (max 30, default 10)
asc or desc for ascending/descending (default desc)
200