Modulify

Get a one-click DNS link

get_domain_connect_url

Returns a link that has the DNS provider add the records one custom domain needs automatically, where the provider supports it.

POST /v1/get_domain_connect_urlScopeconfig:readRead only

The link covers that domain and its www companion, never the site's other domains, so each domain needs its own link. The tool tells the client to hand you the link rather than follow it itself.

The link comes back in applyUrl. When the provider does not support one-click setup, the answer carries supported false and no link, and the records have to be added by hand. It needs the Manage domains permission in the workspace. See One click setup.

Request

Call it with a POST to https://api.modulify.ai/v1/get_domain_connect_url, sending the inputs below as a JSON object. The token needs the config:read scope.

It only reads and changes nothing, so retrying it is safe.

curl -X POST https://api.modulify.ai/v1/get_domain_connect_url \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"projectId":"PROJECT_ID","workspaceId":"WORKSPACE_ID","domainId":"DOMAIN_ID"}'

Over MCP, the same method is the get_domain_connect_url tool.

Inputs

Input Type Required Description
projectId string Yes The site id.
workspaceId string Yes The workspace the site belongs to.
domainId string Yes The _id of the custom domain to configure, as get_domain_status or add_custom_domain returned it.

Response

Every call answers with the JSON envelope of success, message, data, code and version. data holds the result described above, and on a method that returns a total, count carries it. The response headers carry the call's X-Request-Id and what is left of your per-minute budget in X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Errors explains every status code a call can answer with.