---
title: "Get a Workflow draft and its recent validation/version history"
method: GET
path: "/credits/workflows/{workflowId}"
tags: ["Hosted Workflows"]
---

# Get a Workflow draft and its recent validation/version history

`GET /credits/workflows/{workflowId}`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/workflows/{workflowId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns a Workflow draft owned by the calling account, with its recent validation and version history. Returns 404 for Workflows owned by another account.

## Path parameters

- `workflowId` string, uuid, required

## Response `200`

Tenant-scoped Workflow definition envelope

- object
  - `success` unknown, required
  - `workflow` object, required

## Other responses

- `404`: Workflow not found for this account

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
