> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.withpersona.com/2020-05-18/api-reference/workflows/list-all-workflow-versions/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.withpersona.com/_mcp/server. # List all Workflow Versions GET https://api.withpersona.com/api/v1/workflow-versions Retrieves the published versions and current draft version of a Workflow. Archived versions are not returned. Provide the Workflow ID in `filter[workflow-id]`, which you can copy from the Workflow in your Persona dashboard. The `live`, `rollout-label`, and `rollout-percentage` attributes are relative to the environment your API key belongs to: a version live in Production is not live in Sandbox. Sandbox API keys are supported, and report `live: false` for every version of a Workflow that is only deployed to Production. Reference: https://docs.withpersona.com/api-reference/workflows/list-all-workflow-versions ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Query parameters - `page` (WorkflowVersionsGetParametersPage, optional) - `fields` (map from string to string, optional) — Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response. See [Serialization](https://docs.withpersona.com/serialization#sparse-fieldsets) for more details. - `filter` (WorkflowVersionsGetParametersFilter, required) ### Headers - `Key-Inflection` (enum, optional) — Determines casing for the API response. - Allowed values: `camel`, `kebab`, `snake` - `Idempotency-Key` (string, optional) — Ensures the request is idempotent. - `Persona-Version` (enum, optional) — Server API version. More info on versioning can be found [here](https://docs.withpersona.com/versioning). - Allowed values: `2025-12-08`, `2025-10-27`, `2023-01-05`, `2022-09-01`, `2021-08-18`, `2021-07-05`, `2021-02-21`, `2020-05-18` ## Response ### 200 This endpoint returns a collection of Workflow Version objects. - `data` (list of workflow-version, required) — An array of Workflow Versions - `links` (WorkflowVersionsGetResponsesContentApplicationJsonSchemaLinks, required) ## Errors ### 400 Bad Request Error The request was unacceptable, often due to invalid parameters. - `errors` (list of WorkflowVersionsGetResponsesContentApplicationJsonSchemaErrorsItems, optional) ### 401 Unauthorized Error An invalid API key was provided. - `errors` (list of WorkflowVersionsGetResponsesContentApplicationJsonSchemaErrorsItems, optional) ### 403 Forbidden Error The given API key doesn’t have permissions to perform the request or a quota has been exceeded. - `errors` (list of WorkflowVersionsGetResponsesContentApplicationJsonSchemaErrorsItems, optional) ### 404 Not Found Error The requested resource doesn’t exist. - `errors` (list of WorkflowVersionsGetResponsesContentApplicationJsonSchemaErrorsItems, optional) ### 429 Too Many Requests Error Your organization’s rate limit has been exceeded. We recommend an exponential backoff on requests. - `errors` (list of WorkflowVersionsGetResponsesContentApplicationJsonSchemaErrorsItems, optional) ## Types ### WorkflowVersionsGetParametersPage - `after` (string, optional) — Object ID for pagination cursor - `before` (string, optional) — Object ID for pagination cursor - `size` (double, optional) — Limit on the number of objects returned ### WorkflowVersionsGetParametersFilter - `workflow-id` (string, required) — The Workflow ID to list versions for. ### workflow-version A Workflow Version object - `id` (string, optional) - `attributes` (WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionAttributes, optional) - `relationships` (WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionRelationships, optional) ### WorkflowVersionsGetResponsesContentApplicationJsonSchemaLinks - `prev` (string, required, nullable) - `next` (string, required, nullable) ### WorkflowVersionsGetResponsesContentApplicationJsonSchemaErrorsItems - `title` (string, optional) - `details` (string, optional) ### WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionAttributes - `workflow-name` (string, optional, nullable) — The name of the Workflow this version belongs to. - `description` (string, optional, nullable) — A description of the changes in this version. Draft versions have no description until one is set. - `status` (string, optional) — The status of the Workflow Version Possible values: - draft - published - archived Do not assume this is a static enumeration; Persona may add new values in the future without a versioned update. - `trigger-type` (string, optional, nullable) — What starts a run of this version. Null until a trigger is attached. Possible values: - trigger-account - trigger-api - trigger-case - trigger-direct - trigger-event - trigger-recurring - trigger-schedule - trigger-verification Do not assume this is a static enumeration; Persona may add new values in the future without a versioned update. - `live` (boolean, optional) — Whether this version is running in the environment of the requesting API key or delivering webhook. While a Workflow is being rolled out, two versions are live at once; both report true. Always false while the Workflow itself is paused or archived. - `rollout-label` (string, optional, nullable) — Which side of a rollout this version serves. Null when the version is not live — including while the Workflow is paused or archived — and for organizations whose deployments do not model a per-version traffic share. Possible values: - treatment - control Do not assume this is a static enumeration; Persona may add new values in the future without a versioned update. - `rollout-percentage` (integer, optional, nullable) — The share of traffic this version receives in the environment of the requesting API key or delivering webhook. Null when the version is not live — including while the Workflow is paused or archived — and for organizations whose deployments do not model a per-version traffic share. - `last-updater` (string, optional, nullable) — The email address of the User who last updated this version. Null when the version was last updated by Persona rather than by a member of your organization. - `inputs` (list of WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionAttributesInputsItems, optional) — The values a run of this version accepts when it is started. - `outputs` (list of WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionAttributesOutputsItems, optional) — The values a completed run of this version returns. - `created-at` (datetime, optional) - `updated-at` (datetime, optional) — When this version was last edited. Does not cover edits to `inputs` or `outputs`; poll those values directly rather than this timestamp to detect input-contract changes. - `published-at` (datetime, optional, nullable) ### WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionRelationships - `workflow` (WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionRelationshipsWorkflow, optional) ### WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionAttributesInputsItems - `name` (string, optional) - `type` (string, optional, nullable) — The JSON type accepted for this input. - `required` (boolean, optional) ### WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionAttributesOutputsItems - `name` (string, optional, nullable) ### WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionRelationshipsWorkflow - `data` (WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionRelationshipsWorkflowData, optional) ### WorkflowRunIncludedObjectsItemsDiscriminatorMappingWorkflowVersionRelationshipsWorkflowData - `type` ("workflow", optional) - `id` (string, optional) ## Examples **Response** ```json { "data": [ { "id": "wfv_DRAFT123", "attributes": { "workflow-name": "KYC Review Workflow", "description": null, "status": "draft", "trigger-type": "trigger-api", "live": false, "rollout-label": null, "rollout-percentage": null, "last-updater": "taylor@example.com", "inputs": [ { "name": "account_id", "type": "string", "required": true } ], "outputs": [ { "name": "risk_score" } ], "created-at": "2026-03-27T18:29:41.000Z", "updated-at": "2026-03-27T18:31:05.000Z", "published-at": null }, "relationships": { "workflow": { "data": { "type": "workflow", "id": "wfl_3VghhbvDc7UuUNT8uZrqZjsk" } } }, "type": "workflow-version" }, { "id": "wfv_TREATMENT123", "attributes": { "workflow-name": "KYC Review Workflow", "description": "Add manual review escalation", "status": "published", "trigger-type": "trigger-api", "live": true, "rollout-label": "treatment", "rollout-percentage": 25, "last-updater": "alex@example.com", "inputs": [ { "name": "account_id", "type": "string", "required": true } ], "outputs": [ { "name": "risk_score" } ], "created-at": "2026-03-26T18:22:59.828Z", "updated-at": "2026-03-26T18:29:41.000Z", "published-at": "2026-03-26T18:29:41.000Z" }, "relationships": { "workflow": { "data": { "type": "workflow", "id": "wfl_3VghhbvDc7UuUNT8uZrqZjsk" } } }, "type": "workflow-version" }, { "id": "wfv_CONTROL123", "attributes": { "workflow-name": "KYC Review Workflow", "description": "Initial published version", "status": "published", "trigger-type": "trigger-api", "live": true, "rollout-label": "control", "rollout-percentage": 75, "last-updater": null, "inputs": [ { "name": "account_id", "type": "string", "required": true } ], "outputs": [ { "name": "risk_score" } ], "created-at": "2026-03-20T18:22:59.828Z", "updated-at": "2026-03-20T18:29:41.000Z", "published-at": "2026-03-20T18:29:41.000Z" }, "relationships": { "workflow": { "data": { "type": "workflow", "id": "wfl_3VghhbvDc7UuUNT8uZrqZjsk" } } }, "type": "workflow-version" } ], "links": { "prev": null, "next": null } } ``` **SDK Code** ```python Success import requests url = "https://api.withpersona.com/api/v1/workflow-versions" querystring = {"filter":"{\"workflow-id\":\"wfl_3VghhbvDc7UuUNT8uZrqZjsk\"}"} headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers, params=querystring) print(response.json()) ``` ```javascript Success const url = 'https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Success package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Success require 'uri' require 'net/http' url = URI("https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java Success import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D") .header("Authorization", "Bearer ") .asString(); ``` ```php Success request('GET', 'https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp Success using RestSharp; var client = new RestClient("https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift Success import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.withpersona.com/api/v1/workflow-versions?filter=%7B%22workflow-id%22%3A%22wfl_3VghhbvDc7UuUNT8uZrqZjsk%22%7D")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```