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

List workflow versions

GET
https://api.respan.ai/api/workflows/:workflow_id/versions/
GET
/api/workflows/:workflow_id/versions/
$curl https://api.respan.ai/api/workflows/workflow_id/versions/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json"
1{
2 "count": 2,
3 "next": "https://api.respan.ai/api/workflows/7f8e9d2c-4b3a-11ee-be56-0242ac120002/versions/?page=2&page_size=10",
4 "previous": null,
5 "results": [
6 {
7 "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
8 "workflow_id": "7f8e9d2c-4b3a-11ee-be56-0242ac120002",
9 "version": 3,
10 "name": "Data Ingestion Automation",
11 "description": "Automates data ingestion from external APIs every hour.",
12 "type": "automations",
13 "trigger_event_type": "scheduled_hourly",
14 "is_enabled": true,
15 "is_read_only": false,
16 "created_at": "2024-04-10T08:00:00Z",
17 "updated_at": "2024-05-01T12:15:00Z"
18 },
19 {
20 "id": "b2c3d4e5-f678-9012-abcd-ef2345678901",
21 "workflow_id": "7f8e9d2c-4b3a-11ee-be56-0242ac120002",
22 "version": 2,
23 "name": "Data Ingestion Automation",
24 "description": "Initial version of the data ingestion workflow.",
25 "type": "automations",
26 "trigger_event_type": "manual_trigger",
27 "is_enabled": false,
28 "is_read_only": true,
29 "created_at": "2024-01-15T09:30:00Z",
30 "updated_at": "2024-02-20T10:45:00Z"
31 }
32 ]
33}
List all versions of a workflow.
Was this page helpful?
Previous

Create workflow version

Next
Built with

Path parameters

workflow_idstringRequired
Workflow ID.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

pageintegerOptional
Page number.
page_sizeintegerOptional
Results per page.

Response

Successful response for List workflow versions
countinteger
nextstring or null
previousstring or null
resultslist of objects

Errors

401
Unauthorized Error
404
Not Found Error