Skip to content
GET /workflow/{id}/versions/{version}

One version of the workflow, with its content in data: the tracked fields as they were at that version, with secrets removed.

Path Parameters

idstring
required·

The object's ID.

versioninteger
required

Response Body

actorobject
idstring

The user's ID, or for api_token the token's ID.

impersonated_by_staffboolean
namestring
Example: Jane Doe via API token "CI"
typestring

How the author authenticated, for example session or api_token.

dataRecord<string, any>

The object's tracked fields as they were at this version, with secrets removed.

is_currentboolean
messagestring

The change note. In a listing, a note too long to store with the version's metadata is a shortened preview ending in …, and message_truncated is true; getting that one version returns it whole.

message_truncatedboolean

True when message is a shortened preview of a longer note.

recorded_atstring · date-time
restored_from_versioninteger
sourcestring

save and restore were written by a save. baseline is the state found before the first recorded save. untracked is a state found before a save that no recorded version matched: the object was changed without recording a version. legacy was stored before version history existed. The last three have no author.

Possible values:
saverestorebaselineuntrackedlegacy
versioninteger

Errors

StatusDescription
400A version that is not a positive integer.
404No such workflow or version, or the caller cannot edit the workflow.
curl -X GET 'https://api.truto.one/workflow/{id}/versions/{version}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/workflow/{id}/versions/{version}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/workflow/{id}/versions/{version}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())