For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • GETList workflows
      • POSTCreate a workflow
      • POSTFilter workflows
      • GETGet latest workflow draft
      • DELDelete workflow
      • PATCHUpdate latest workflow draft
      • GETList workflow versions
      • POSTCreate workflow version
      • GETGet workflow version
      • PATCHUpdate workflow version
      • POSTDeploy workflow version
      • DELUndeploy workflow
      • POSTValidate workflow
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceWorkflows

Get workflow version

GET
https://api.respan.ai/api/workflows/:workflow_id/versions/:version/
GET
/api/workflows/:workflow_id/versions/:version/
$curl https://api.respan.ai/api/workflows/workflow_id/versions/1/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json"
1{
2 "id": "wf_9a8b7c6d5e4f3a2b1c0d",
3 "version": 1,
4 "name": "Data Enrichment Workflow",
5 "type": "automations",
6 "createdAt": "2024-05-20T10:15:30Z",
7 "updatedAt": "2024-06-01T08:45:00Z",
8 "description": "Workflow to enrich incoming customer data with third-party APIs",
9 "steps": [
10 {
11 "stepId": "step_001",
12 "name": "Validate Input",
13 "type": "validation",
14 "config": {
15 "schema": "customer_data_schema_v2"
16 }
17 },
18 {
19 "stepId": "step_002",
20 "name": "Call Enrichment API",
21 "type": "api_call",
22 "config": {
23 "endpoint": "https://api.thirdparty.com/enrich",
24 "method": "POST"
25 }
26 },
27 {
28 "stepId": "step_003",
29 "name": "Store Results",
30 "type": "database_write",
31 "config": {
32 "table": "enriched_customers"
33 }
34 }
35 ],
36 "active": true
37}
Get a specific workflow version by workflow ID and version number.
Was this page helpful?
Previous

Update workflow version

Next
Built with

Path parameters

workflow_idstringRequired
Workflow ID.
versionintegerRequired
Version number.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Response

Successful response for Get workflow version

Errors

401
Unauthorized Error
404
Not Found Error