API referenceWorkflows
Save a version
POST
Needs a key withworkflows:write
Saves the workflow's document as it is now as a named version.
Requires scope workflows:write.
apiKeyheader
x-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
workflowId*stringLength
1 <= length <= 128application/json- body
title?stringLength
1 <= length <= 200The revision.
application/json- response
author?|Who saved it (who started the run, for auto).
createdAt*stringFormat
date-timeid*stringkind*stringValue in
"auto""manual""restore"runId*string|nullrunNodeCount?integer|nulltitle*string|nullcurl -X POST 'https://api.remagica.com/api/v1/workflows/cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05/revisions' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "author": { "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "image": "string", "name": "Autumn campaign" }, "createdAt": "2026-10-21T12:00:00.000Z", "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "kind": "auto", "runId": "599e5591-5b3d-4f60-8e2a-1d9c6b4f7e05", "runNodeCount": 1, "title": "Autumn campaign"}