---
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: >-
  eJztV01v2zgQ/SsDXppgFdvtpmihW7abLtJDWuQDKRAE9VgcWWwkUiVHsQ1X/70YylGUxE2APfWQky2RHL735s1gtFaM86DSS3Xh/HVeugXQkrKGjbNBXSVKU8i8qeVZpeqUPWEVgAuCvCnLu82AAY7//XT6+TgFZwmm/coUSmMp6d4Gprp7ATV5QGaqaoadGKzGVelQh90E0OruQOnmg/1k2a9GKlGuJo8S/UirVC022Pf6S1Na1s6zSlSNHiti8sJyrYzQqJELlSiLFalUGa0S5elHYzxplbJvKFEhK6hCla4Vr2rZFdgbO1ftQ0nOChqoYLSgoyVWdSmnZOXb+/xvfD17k+3rt6Taq0QFyhpveBURzQg9+YOGC5VeXsmyp1A7GyjI9W8mE/l5fGmnNoSYkgQC+RvSkga0oitmRUWWBU7mLJNlCYN1XZosKjde7ln9PUi89W/pPmT72RLEa93sO2Uck9KllzArgHE+Jw0LwwVMr43V6UCbnyDZh58gOR2ptm3bRO1//fqY3ofSkGUg750fgZCdOb2CgKsAiwIZFrK88M7OU6EbN8JUoE8TQCiaCu2eJ9Q4KwmmmhhNOY22EiPCDZZGRxUgR1M2nkJn0GiwyMrlOVlt7BxyQ6V+Qsfau1lJ1V9btDQcXfCl26GSW3U79R6pK0wDo9Xo9YZUJL5z8vEDvHs/eQebu6BjFIZpn/4O03RXwNdeaoZN56oOx3PZPowQZA+cnxwlQKP5CKYFcx3S8bivurAKTNVI0804gg53S9bxXu4aq6f36+J/xZDi20j6GPld7GPH0O8PjNwMKCtjmebkhyf2J/uxrEXS50LDLazO5EbDIv9m8ot/Zhd53cwnFmhpAge521hJZvYM3J5oGGvKjTWx944fhJV4nTCDaOg9rh5l7YunIPWx3efp8z43TNXwmt6t9z0Uu+jT1KTgwzhkaMeZs7mJ/bOiEHD+jCpVExgKvCG47cywuX0FrzKn6VVsIG3XRd5u6yLnlpY1ZUy6qxK/aSgvlfxSyS+V/EdWcozJhZOhbk7d+CbQhtLezafjtdHtuJ/0uiLvxrzGlwNvYm1GtinLukTOna9GmavuDWKnUuidFsNxrKclgdRmKJTnbpNKNn8+Ol8hq1R9ujhTbfRL7uS44OlS+Xo0GU1U73p1PIADB1+ORM7aBa4wdp7NaHoYucUR55b1Q5Os75rZnzOeb2RjWvK4LtFE08ec3Jrtsh/aQ3RL/82RqDQO5Ju0XiWqcIHlwHo9w0Dnvmxbef2jIS8T9FWibtAbmfRi6rUJ8l+rNMcy0BNy7ZxsDLkL26b4rSRu69VKtd5g2ciTStQ1rbpPifaqTVRBqMlHON3CQZZRzYMjWwdxsWTv//8Oz1Si8L4RHxgv3rAV0nrd7Thz12TbtkfI8iwg2/YXoA/jcw==
sidebar_class_name: get api-method
info_path: docs/api/nullplatform-api
custom_edit_url: null
canonical: 'https://docs.nullplatform.com/docs/api/workflow-execution-export'
---
<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>

