Skip to main content
POST
/
workflows
/
{workflow_id}
/
versions
Publish workflow version
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/workflows/{workflow_id}/versions \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "bump_type": "minor",
  "version_notes": "Reviewer step + tighter HS code regex."
}
'
{
  "data": {
    "id": 12,
    "workflow_id": 42,
    "version_number": "1.3.0",
    "is_latest": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

workflow_id
integer
required

Body

application/json
bump_type
enum<string>

Semver bump for the new version. Defaults to 'minor' when omitted.

Available options:
major,
minor,
patch
version_notes
string

Free-form notes attached to the published version.

Response

200 - application/json

Publish workflow version.

data
any