API & MCP Server
Two ways to automate InstallMage: a REST API for RMM tools and scripts, and an MCP server for AI agents. Both run on the same conversion engine and require an InstallMage Pro or MSP API key, created from Settings → API. See the changelog for what shipped most recently.
REST API
Submit a job, then poll for its status. Every request is authenticated with Authorization: Bearer im_....
Convert an EXE
curl -X POST https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/api-convert \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@installer.exe" \
-F "create_intunewin=true" \
-F "callback_url=https://your-app.example.com/hooks/installmage"
# → { "jobId": "...", "status": "pending", "message": "Conversion started. Poll /api-status?jobId=... for progress." }callback_url is optional and must be https://. When set, InstallMage POSTs { event, jobId, status, filenameOriginal, filenameConverted, errorLog, timestamp } to it when the job starts and when it completes, fails or is cancelled (event is started, completed, failed or cancelled). It's a notification, not a download link, so fetch the signed URL via api-status after you receive it. A non-2xx answer is retried four more times, so five attempts in all (after 1 minute, 5 minutes, 30 minutes, then 2 hours), and then given up on. The URL must be public: addresses inside a network are refused with a 400.
Every delivery is signed. Verify X-InstallMage-Signature = sha256= + HMAC-SHA256 of <X-InstallMage-Timestamp>.<raw request body> using the signing secret shown under Settings → API, and reject timestamps more than a few minutes old. Two more headers help with logging and with spotting retries: X-InstallMage-Event (the event name) and X-InstallMage-Delivery (an id that stays the same across retries of one delivery).
Check job status
curl https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/api-status?jobId=JOB_ID \
-H "Authorization: Bearer YOUR_API_KEY"
# → {
# "jobId": "...", "status": "completed", "progress": 100, "engine": "...",
# "filenameOriginal": "installer.exe", "filenameConverted": "installer.msi",
# "downloadUrl": "..." | null, "intunewinUrl": "..." | null, "cheatSheetUrl": "..." | null,
# "errorLog": "..." (only when status is "failed"),
# "createdAt": "2026-10-01T09:30:00+00:00", "updatedAt": "..."
# }The three URLs are signed links, valid for one hour, and are null until the job is completed; ask again for a fresh link when one expires. You can look up your own jobs and, on a team plan, your teammates' jobs. A job you cannot see returns 404.
status is one of pending, analyzing, converting, completed, failed, or cancelled. A 429 means either a request rate limit or your monthly conversion quota was hit (rate-limit answers carry a Retry-After header); a 403 means the key isn't on a Pro or MSP subscription or lacks the scope the call needs. Files can be up to 500MB through the REST API (200MB through the MCP server). api-convert takes an .exe, an .msi or a .zip (see below); the batch endpoint takes .exe files only. The larger per-plan limits on the pricing page apply to uploads in the web app.
Convert a batch (up to 5 EXEs)
curl -X POST https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/api-convert-batch \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@installer1.exe" \
-F "file=@installer2.exe" \
-F "create_intunewin=true"
# → { "results": [
# { "filename": "installer1.exe", "jobId": "...", "status": "pending" },
# { "filename": "installer2.exe", "jobId": "...", "status": "pending" }
# ], "message": "2/2 conversion(s) started..." }Repeat the file field for each installer (max 5 per request, matching the dashboard's bulk upload). create_intunewin and callback_url apply to every file in the batch. Per-file failures (wrong extension, too large) don't fail the whole batch — check each entry's error field in the response, and poll api-status per jobId as usual.
List, cancel and retry jobs
# List jobs (newest first). Includes teammates' jobs on a team plan.
curl "https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/api-jobs?status=failed&limit=20" -H "Authorization: Bearer YOUR_API_KEY"
# → { "jobs": [ { "jobId": "...", "status": "failed", "progress": 40, "engine": "...", "filenameOriginal": "...",
# "filenameConverted": null, "ownJob": true, "createdAt": "...", "updatedAt": "..." } ],
# "nextCursor": "2026-10-01T09:30:00+00:00" | null }
# pass nextCursor back as ?cursor=... to get the next page
# Cancel a job that hasn't finished (your own jobs only)
curl -X POST https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/api-cancel -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"jobId": "JOB_ID"}'
# Re-queue a failed job (only possible while its original upload still exists; see below)
curl -X POST https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/api-retry -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"jobId": "JOB_ID"}'Listing takes status (one of the values above), limit (1 to 100, default 20) and cursor; a bad value is a 400. ownJob is false for a teammate's job. Cancel and retry take the jobId in the JSON body (or as a query parameter) and work on your own jobs only; anyone else's is a 404. Cancel only works on pending, analyzing or converting jobs (otherwise 409), deletes the uploaded installer and returns { "jobId": "...", "status": "cancelled" }. Retry only works on failed jobs (otherwise 409), returns the same shape with status pending, and answers 410 once the original upload is gone. Uploads are deleted as soon as a job finishes, so retry only applies to jobs that failed before their upload was deleted (for example after a worker restart); otherwise submit the installer again. A retry reuses the same job, so it doesn't count as a new conversion.
Code signing and custom install arguments
api-convert accepts these optional form fields: cert_password (the password for the .pfx you uploaded under Settings → Code signing, up to 256 characters; stored encrypted and applied to that job) and install_args (silent-install arguments to use instead of the detected ones, up to 500 characters). It also accepts uninstall_cmd, the vendor's silent uninstall command (up to 500 characters, for example "C:\Program Files\App\unins000.exe" /VERYSILENT). The package runs it when it is uninstalled; without it, uninstalling removes only the wrapper, not the application. api-convert-batch accepts cert_password for the whole batch; it takes no other options (use api-convert for install arguments, formats and the rest).
MSI and zip inputs
api-convert also accepts a single .msi or .zip (not in a batch). An MSI is signed and wrapped for Intune as it is. A zip is unpacked: the installer inside is run with install_args (a .mst next to an MSI is applied automatically), and the folder is packaged with an install script. Add entry_point (a path inside the zip, up to 260 characters) when it holds several candidates, or package_kind=portable (the only value, and only for a .zip) for an application that needs no installer: it is copied to Program Files with a Start Menu shortcut and removed on uninstall. Zip uploads produce a .zip package instead of an MSI.
PSAppDeployToolkit output
Add package_format=psadt to build a PSAppDeployToolkit v4 project instead of an MSI (works for .exe, .msi and .zip). Install, uninstall and repair run through Invoke-AppDeployToolkit.exe; the download is a .zip of the project, plus the .intunewin when requested. close_processes is a comma-separated list of program names (no .exe, up to 10) the toolkit asks the user to close first.
Updating an app
Add previous_job_id (the id of your earlier job for the same application; a malformed id is a 400) when you submit a new version. The cheat sheet then gets an "Update of a previous version" section: whether the new build upgrades the old one on its own, what to set for "Uninstall previous version" in Intune supersedence, and what the detection rule must match. It must be one of your own jobs; otherwise it is ignored.
Key permissions, expiry and rate limits
When you create a key you can limit what it may do: convert (submit and retry jobs), read (status and listing) and cancel. A key can also expire after 30, 90 or 365 days and have its own requests-per-minute limit (default 60, max 600). On top of that each IP address is limited to about 60 requests a minute per endpoint. A key missing a scope gets a 403 naming it; an expired or unknown key gets a 401. Existing keys keep all permissions and never expire. An account can hold up to 5 keys.
Errors
Every failure is JSON: { "error": "what went wrong" } with a status of 400 (bad or missing input), 401 (unknown or expired key), 403 (plan or scope), 404 (job not found or not yours), 405 (wrong method), 409 (the job is not in a state that allows it), 410 (the upload is gone), 429 (rate limit or monthly quota) or 500. The text is meant for a person: branch on the status code, not on the wording.
Command-line client
export INSTALLMAGE_API_KEY=im_...
node cli/bin/installmage.mjs convert setup.exe --intunewin --out ./packages
node cli/bin/installmage.mjs jobs --status failedThe cli/ folder of the repository contains a dependency-free Node 18.3+ CLI that uploads installers, waits for the conversion and downloads the results. It is not published to npm, so run it from a copy of that folder as shown. See cli/README.md for every option.
Public recipe library (no API key)
# Search approved, verified community recipes. No authentication needed.
curl "https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/recipes-api?q=7-zip&limit=5"
# → { "recipes": [ { "id": "...", "appName": "7-Zip", "silentInstallArgs": "/S", ... } ],
# "total": 1, "nextOffset": null }
# Fetch a single recipe
curl "https://ipvtmyjcocqggwtvkkog.supabase.co/functions/v1/recipes-api?id=RECIPE_ID"
# → { "recipe": { ... } }Query parameters: q (matches the app name, up to 60 characters), category, framework (installer framework, e.g. NSIS), limit (1–100, default 25) and offset (0 to 10,000). Results are sorted by upvotes. Only approved, verified recipes are returned and submitter identities are never exposed. Responses are cached for five minutes and the endpoint is rate limited per IP. Recipe notes are community-contributed — treat them as untrusted text and test installer arguments before deploying.
MCP Server
A Model Context Protocol server (Streamable HTTP transport) at https://installmage.com/mcp — point any MCP-compatible client (Claude, a custom RMM copilot, etc.) at it to give the agent direct access to InstallMage.
Client config
{
"mcpServers": {
"installmage": {
"url": "https://installmage.com/mcp"
}
}
}Tools
convert_exe— submit an installer (a public https:// link to an .exe, up to 200MB, fetched within 30 seconds) plus your API key; optionalfilename,createIntunewinandcallbackUrl. Returns ajobId.check_conversion_status— poll a job started withconvert_exefor progress and the download link.search_blog/get_blog_post— search InstallMage's packaging & deployment guides.silent_install_switches— silent-install command lines by installer framework (MSI, Inno Setup, NSIS, InstallShield, WiX, Advanced Installer, Squirrel).explain_exit_code— meaning and fix for an msiexec / Intune Win32 app exit code.
convert_exe and check_conversion_status need an apiKey argument (same Pro API key as the REST API above) — the other four tools are read-only and don't require one.