What the API is

Every Modulify tool as an HTTP method, with the same tokens, scopes and workspaces as the MCP server.

On this page

The Modulify API is the MCP server's tool catalog served over plain HTTP. Each tool is one method. You call it with a POST to https://api.modulify.ai/v1/ followed by the method name, send its arguments as a JSON object, and get a JSON answer back.

curl -X POST https://api.modulify.ai/v1/list_workspaces \
  -H "Authorization: Bearer YOUR_TOKEN"

One catalog, two ways in

MCP is for AI clients such as Claude Code, Claude Desktop and Cursor. The API is for your own code: a script, a server, a scheduled job or an app. Both reach the same 326 methods, and both run every call through the same checks, so a method behaves the same way whichever door it came through.

MCP API
Who calls it An AI client Your code
How The Model Context Protocol at https://api.modulify.ai/mcp POST https://api.modulify.ai/v1/<method>
Signs in with An access token The same access token
Answers with Text written for a model A JSON envelope and an HTTP status code
Long results Cut at 60,000 characters Returned in full

A token works in both places at once. Calls over MCP and calls over the API share one per-minute budget, counted per token. See Rate limits.

What a token can reach

A token acts as you. It reaches the workspaces you belong to, or only the workspaces or sites you picked for it, and only the methods its scopes allow. Inside a workspace, your role must also hold the API access permission. Everything else you could do in the dashboard follows the same rules over the API: plan limits, credit balances, site locks and permissions all apply. See Authentication.

Modulify records which way each call came in. A deploy hook called through the API shows the source API in the hook's call log, an email sent through the API shows API in the email history, and site email turned off through the API reads "Turned off through the API", the same way calls over MCP show as coming from MCP.

What the API does not do

The API covers what the tools cover. A few things stay in the dashboard on purpose:

  • Changing a plan, buying credits and anything else that charges a card on the spot. buy_domain and renew_domain hand back a Stripe checkout link for a person to pay on instead, and set_domain_auto_renew only switches on renewals that Modulify charges to your saved card later, before the domain expires.
  • Deleting a workspace.
  • Downloading a backup or a file out of one. read_storage_backup_file only reads the text of one file in a storage backup, up to a size cap.

The other APIs

Three other kinds of address can be called from code. None of them takes an access token.

  • Your site's own APIs. Code running inside your site reads and writes its file storage, sends email, reads its visitor numbers and calls AI models with a key that belongs to that one site. See the Storage HTTP API, the Email HTTP API, the Analytics HTTP API and the AI HTTP API.
  • Deploy hooks. A deploy hook is a secret address that publishes one site when anything calls it. See Deploy hooks.
  • Domain search. Any website or script can check which domains are free and what each extension costs, with no key at all. See the Domain HTTP API.

Use those from the site's code, a build service or any web page. Use the API when your code acts for you across your workspaces.

Next