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

Deploy workflow version

POST
https://api.respan.ai/api/workflows/:workflow_id/deployments/
POST
/api/workflows/:workflow_id/deployments/
$curl -X POST https://api.respan.ai/api/workflows/workflow_id/deployments/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "version": 3
>}'
1{
2 "id": "wv_12345",
3 "workflow_id": "wf_monitor_7890",
4 "version": 3,
5 "is_enabled": true,
6 "is_read_only": true
7}
Deploy a committed workflow version. Sets the target version as live and disables all other versions.
Was this page helpful?
Previous

Undeploy workflow

Next
Built with

Path parameters

workflow_idstringRequired
Workflow ID.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
versionintegerOptional
Version number to deploy. If omitted, the latest committed version is deployed.

Response

Workflow deployed successfully
idstring
workflow_idstring
versioninteger
is_enabledboolean
is_read_onlyboolean

Errors

401
Unauthorized Error
404
Not Found Error