---
id: workflow-execution-export
title: "Export an execution"
description: "Streams the full execution as NDJSON: one `execution` line, one `step` line per attempt (full payloads), and one `log` line per entry."
sidebar_label: "Export an execution"
hide_title: true
hide_table_of_contents: true
api: eJztV0tz00gQ/itdcyHxKnJgQ0HpFiBswQFSJFSoghQea1rSkNGMmGnZ8Rr9960eybLzgFTtiQMnS5qefnzd/bl7LUiWQWSfxYXzV4VxS8BrzFvSzgZxmQiFIfe64XeRiTPyKOsAVCEUrTFbYZAB3r16e/b+XQbOIszGkxkYbTHpvwbCpv8ADXqQRFg3BHtRWSNXxkkV9hOQVvUXjCt35NGSX6UiEa5BL1n7GyUysRx8PxiNZnjdOE8iEY30skZCz1GuheYwGkmVSISVNYpMaCUS4fF7qz0qkZFvMREhr7CWIlsLWjUsFchrW4ruNiTnFe6goBV7h9eybgzf4pOvz4u/5eP5k/xIPUXRXSYiYN56Tavo0RylR3/cUiWyz5d87DE0zgYMbP7J4SH/3DXaow0hpiSBgH6BitMgLeMq86pGS+xO7iyhJVYjm8boPCI3vT6w6ltgfeufhns72vcWIZp182+YU0xKn16UeQUkyxIVLDVVMLvSVmU72PwAzj78AM5pKrqu6xJx9OnT3fBeGo2WAL13PgUOdu7UCoJcBVhWkmDJx0vvbJlxuFEQZuz6LAEJVVtLe+BRKjk3CDOFJLWZxbLiQoSFNFpFFKCQ2rQeQ1+gscBiVK4o0CptSyg0GvULHBvv5gbrv+7BUlOsgtNeQiQbdHv07qDLkQaSVkmvhqBi4HsfXr+EZ88Pn8FgC/qIwm7aZz/zabbPzjeee4Z0X1W9Hw9l+yS6wDLw8cObBDAtU5hVRE3IptOx68IqENapwsU0Oh22R9bRQeFaq2Y3++J/6eDmGyC96/lW9ztHMMoHktTuhCy0JSzR7944OjyKbc2QPqQaNm71Ra4VLIuvurh4Mb8omrY8tIDXOlBg29pyMvMH3B0DDVOFhbY6cu/0llrW1wOzo016L1d3snbqMXB/3F/n2cN1rgnrXTNjtd6sociivw6NGz5MQy7tNHe20JE/awxBlg+gUreBoJILhA0zw2B9BY9yp/BRJJCuZ5Gn97HIR4vXDeaEqu8SPxDKn07+08l/Ovm37OSokyrHQ12J/fjGru1Cu51Pp2utuuk46fVN3o95rTc7tSkbndrWmMZIKpyv09zVNwaxM270HovdcWwMixWJYSjk915IJMPDa+drSSITby/ORRfrpXC7tLEZroNIBPvYp/cwfZwe3kn6i1YblUDTzo0OVQK+tcM8PI8RjnUbuC54Et8NbVvVaEttMf1iv9jXrvWgFcoAzpfS6n8RqNIBjk/fZCxwAJPJq23JTiYgPUbdozrl8pYHypDCyQI9T2MLhDnmrsYAEmxbz5GTO5l4XGgOcTJJIDiwjiquSh0AmYWNC5T2No+NlgE39ngeV9A4bmwfgBxI2OiCPaOveB/QC5ztp3Cck15IYr0877IeNhCnQ2q9DaApAHldlqzL2cHiyVg9kwl4zB3zc4wn4hwn1Pkq/iYDMdimJR4PW+ofOBfGlWHQeIa5Rwrx80J6zSMnK79CbCD3qNCSlqYXCEjsc2Bt4IoI8ZYrUm6qxgWqZfz/GRaUk1jhcdDdeH+7atbbv7TfZ0kbmofwmqaNkTpSX+zMDeV8Hle3EDlj3DwTkcW1bGjuy0RULhBfWK/nMuBHb7qOP39v0fMedZmIDfiRAJQO/KxEVkgT8Bdw7X0YaGkf7tvl7g1iw9qWOXshTctvIhFXuOoXyu6yS0SFUqGP7vQHx3mODe1cuXcdY2IaWfCfk3ORCHmTjm7RT7Rwr0vrdS9x7q7Qdt3oIfE7O9l1/wEV4ZxG
sidebar_class_name: "get api-method"
info_path: docs/api/workflows
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Export an execution"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/workflows/executions/{id}/export"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Streams the full execution as NDJSON: one `execution` line, one `step` line per attempt (full payloads), and one `log` line per entry.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"The execution id.","example":"exec_8f3a1b2c4d5e"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"The NDJSON stream, served as an attachment.","content":{"application/x-ndjson":{"schema":{"type":"string","description":"One JSON object per line, each tagged with `kind: execution | step | log`."}}}},"4XX":{"description":"Client error. The body says what went wrong: an error `type`, a human-readable `detail`, and, on validation failures, one entry per offending field.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}},"5XX":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}}}}
>
  
</StatusCodes>


      