Publish an app
Needs a key withapps:publish
Publishes the app: its page, inputs and outputs as they are now become what runs. A team or personal app is published at once; a public one goes in_review until a platform admin approves it.
Requires scope apps:publish.
apiKeyx-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.
appId*stringThe app's id, or its slug.
1 <= length <= 128The app.
application/json- response
canEdit*booleanWhether you can change it (you can edit its workflow).
coverUrl*string|nullcreatedAt*stringdate-timedescription*stringid*stringmetrics*How much it's used: runs (by everyone), the last one, and remixes.
ownerName*string|nullpublishedAt*|nullremixable*booleanslug*|Its address on the Apps page (/apps/<slug>).
status*stringdraft → published; a public app goes in_review first and ends published or rejected.
"draft""in_review""published""rejected"title*stringupdatedAt*stringdate-timevisibility*string"personal""team""public"coverKey*string|nullcreditsEstimate*|What a run with the app's own values would cost, or null when it couldn't run as it is.
draft*|The inputs and outputs being edited (people who can edit only); a run uses the published ones.
form*array<>The inputs a run takes: the published ones, or the draft's for a test run.
outputs*array<>pageId*stringreviewNote*string|nulltestOnly*booleanNot published yet: only a test run (test: true) can run it.
workflowId*|Its workflow (people who can edit it only).
curl -X POST 'https://api.remagica.com/api/v1/apps/5d1e8a42-7b9c-4f30-a2d6-0c3e9b7f1a54/publish'{ "canEdit": true, "coverUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.jpg", "createdAt": "2026-10-21T12:00:00.000Z", "description": "Product shots for the autumn campaign.", "id": "5d1e8a42-7b9c-4f30-a2d6-0c3e9b7f1a54", "metrics": { "lastRunAt": "2026-10-21T12:00:00.000Z", "remixes": 1, "runs": 1 }, "ownerName": "string", "publishedAt": "2026-10-21T12:00:00.000Z", "remixable": true, "slug": "string", "status": "draft", "title": "Autumn campaign", "updatedAt": "2026-10-21T12:00:00.000Z", "visibility": "personal", "coverKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.jpg", "creditsEstimate": 12, "draft": { "inputs": [ { "description": "Product shots for the autumn campaign.", "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "label": "string", "nodeId": "7b79be4b-5b3d-4f60-8e2a-1d9c6b4f7e05", "type": "text" } ], "outputs": [ { "nodeId": "7b79be4b-5b3d-4f60-8e2a-1d9c6b4f7e05" } ] }, "form": [ { "description": "Product shots for the autumn campaign.", "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "label": "string", "nodeId": "7b79be4b-5b3d-4f60-8e2a-1d9c6b4f7e05", "type": "text", "control": { "kind": "number", "max": 1, "min": 1, "step": 1 }, "defaultUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "defaultValue": "string", "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05" } ], "outputs": [ { "label": "string", "nodeId": "7b79be4b-5b3d-4f60-8e2a-1d9c6b4f7e05" } ], "pageId": "c5dd13a6-5b3d-4f60-8e2a-1d9c6b4f7e05", "reviewNote": null, "testOnly": true, "workflowId": "cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05"}