---
id: workflow-revision-read
title: Read a revision
description: Returns one revision with its full definition.
sidebar_label: Read a revision
hide_title: true
hide_table_of_contents: true
api: >-
  eJztV01v20YQ/SuDvcRBaUlpU6Qg0IOTJoV7CALXrgMYRrTiDsWNyV1mZyhZFfjfiyEpivqwneaUQ3wxKc7szrx9b3ZmrVjPScU36tqHuzT3Swi4sGS9I3UbKYOUBFuy9U7F6gK5Co7AO+zNYGk5A8sEaZXnYDC1zor9SEXKlxi0vJwbFatlt8XpxjcOqI2KVKmDLpAxSCRrZWWvUnOmIuV0gSpWVswCfqlsQKNiDhVGipIMC63iteJVKVbEwbq5qvfjHuSWYkCXYAwaCMMCw2lhHaMBa+Bkukw/jUaj6XPwAThD2ET8jCDJLTo+TTJP6OAOV3CS+yWGRBMC5dU8gsrZLxVCiQF8mGtn/21yfy5I4L0uylyCXKafbHr9enadltV84lQdHc14g9HX5C0ZzDEcJn6ZDQ7KVcUMA5yUnizbBULnthvfL/VtpAiTKlheNccxQx0wnFWcqfjmVj4HpNI7QpIYfp5M5N/DG8vyiXeMjsVQl2VukwaZ8WcS6/UwI8sNShfb9Lsk/ewzJrwDx01PqfOWH71PElAzmjMWEpdBeMi2jXfgcsCcx89pu8Eh9IdS2UE9AmId2Lo5aIYXe4iL80Y2g7X7jF2V53omti0BDrHe1x5MxWcK1kFuiaE/MahcjkQwtS7JK4N/9D6/y9rTkeS5Re8IQqkPhWYVK6MZT9kWOHB5vToqx4A5asL3ntszODAgLLRjm/yDYQ/gjU3zF6mXHz8esu1No03AEHwYgeAx82YFpFcEy0wzLOXzMng3j0G71hCmssM0Ag1ZVWh3KsVIUIapQdY2l0/OROAdLHRuTUNZSLXNq4AUNVUQHYdVq/g0RWfkgFOLuXmE9GXwsxyLnx4m/4fW4gj3D0+eWDujg+mSahI/uXj3Bl79NnkF3V7QZkRRW/QMaILpQzFNm4KwK5o2jkMy7MbztglBbODq4jwCHM1HMM2YS4rH477804oYi5HBxbgJmrafnOfT1FfOTHeL5jetIcTqIH1M6O89Q29PrLmiowLvPV5OXjaSFUifWrq/Qrp70sBeXQG8t8Qke1snh5k8EW6fKI23gqfxkXLVAjNYTYegVwen9iEgiT6O8zx+mueWsaBjdWuXQ8399nhqxFjSmBLtxol3qW1qQ4FEev4EKkVFDJleyLXTXg/Q7b6CZ4k3+KwrIU0V+fVYFblyeF9iIs1A2xp0BeWHkn8o+YeSv0slN2ty5mW6mGMTaBPaQ9CuranH/YAzXm8eayUtiGi+nUCqkA+oqks7knaqzDVL9zNKfKGGbfLfovsWmmGz3GcpC6mub5f31khF3cO7TUf11/Wlqhv6pF7cF5tuSL0YTUYT1YtAvR+EA2cfzgXd0hMXuilE3QxxgdqAhkFfvMOX9bau/f/RrkuN8Z7HZa5tw9MGtw0/tt05qWGHK2+xHTbszS99lLeRyjyxLLBezzThVcjrWn7+UmGQmeQ2UgsdbNsS36yVsSTPRsWpzmm/QR6meXLRceo5fAdD4VEMNwp3ou+Fzit5U5G6w1U7CMvA+E0Zf/00+A2B9cdX39aRylAbDM3htJ/PkgRLHjgejIEiqF7Mf769VJHSuzLak02z+tGg1uvW4tLfoavrPkaWdwmwrv8Dxs7zGA==
sidebar_class_name: get api-method
info_path: docs/api/nullplatform-api
custom_edit_url: null
canonical: 'https://docs.nullplatform.com/docs/api/workflow-revision-read'
---
<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Read a revision"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/workflows/definitions/{id}/revisions/{revision}"}
  context={"endpoint"}
>

</MethodEndpoint>

Returns one revision with its full definition.

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

<ParamsDetails
  parameters={[{"in":"path","name":"id","required":true,"schema":{"type":"string"},"description":"Workflow reference: a server-minted id (`wf_...`) or the workflow's client-chosen key (lowercase slug, unique per organization).","example":"wf_ifWBbWfpug0n"},{"in":"path","name":"revision","required":true,"schema":{"type":"integer"},"description":"The revision number (positive integer).","example":3}]}
>

</ParamsDetails>

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

</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"The revision.","content":{"application/json":{"schema":{"title":"Revision","type":"object","required":["workflowId","revision","createdAt"],"properties":{"workflowId":{"type":"string","example":"wf_ifWBbWfpug0n"},"revision":{"type":"integer","description":"Revision number, starting at 1.","example":3},"definition":{"type":"object","nullable":true,"description":"The full definition. `null` in list responses unless `includeDefinition=true`."},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"releaseNotes":{"type":"string"},"semanticVersion":{"type":"string"}}}}}},"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>

