> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://api.docs.modulards.com/modular-ds-public-api/websites/connection/create-a-modular-connector-download-link/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.docs.modulards.com/_mcp/server. # Create a Modular Connector download link POST https://api.modulards.com/api/public/v1/connection-plugins Content-Type: application/json Creates a personalized Modular Connector plugin package and returns a time-limited download link for it. Installing the package on a WordPress website connects it to Modular DS with no credentials to enter, and the website joins the team you choose. Use it to onboard a website that does not exist in Modular DS yet, or one you added by hand. Returns the download link and the token's expiry. The answer is `200`, not `201`, and it never carries the linking token itself: the token is inside the package. **Body** - `team` (integer, required): the team the website joins once the plugin registers it. - `expires_at` (date-time, optional): when the link token expires. Defaults to 24 hours from now; it must be a future date at most 7 days ahead. - `preset_uptime`, `preset_malware_scan`, `preset_broken_link`, `preset_backup` (integer, optional): ids of the uptime, Malware Scanner, Broken Links Checker and backup global configurations to assign the website to as soon as it connects. Any you leave out or send as `null` is skipped. **Errors** - **404**: the team or a global configuration is not one of yours. - **422**: `expires_at` is not a future date or is more than 7 days ahead. Reference: https://api.docs.modulards.com/modular-ds-public-api/websites/connection/create-a-modular-connector-download-link ## Authentication - `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints. ## Request ### Body (application/json) This endpoint expects an object. - `expires_at` (any, optional, nullable) - `preset_backup` (any, optional, nullable) - `preset_broken_link` (any, optional, nullable) - `preset_malware_scan` (any, optional, nullable) - `preset_uptime` (any, optional, nullable) - `team` (double, optional) ## Response ### 200 200 - Connector download issued - `jsonapi` (ApiPublicV1ConnectionPluginsPostResponsesContentApplicationJsonSchemaJsonapi, optional) - `meta` (ApiPublicV1ConnectionPluginsPostResponsesContentApplicationJsonSchemaMeta, optional) ## Types ### ApiPublicV1ConnectionPluginsPostResponsesContentApplicationJsonSchemaJsonapi - `version` (string, optional) ### ApiPublicV1ConnectionPluginsPostResponsesContentApplicationJsonSchemaMeta - `download_url` (string, optional) — Time-limited download URL of the personalized Modular Connector plugin package. - `expires_at` (datetime, optional) — When the link token expires. ## Examples ### 200 - Connector download issued **Response** ```json { "jsonapi": { "version": "1.1" }, "meta": { "download_url": "https://cdn.modulards.com/connector/download/9f8e7d6c5b4a3210-linking-token.zip", "expires_at": "2026-09-24T10:00:00.000000Z" } } ``` **SDK Code** ```python 200 - Connector download issued import requests url = "https://api.modulards.com/api/public/v1/connection-plugins" headers = {"Authorization": "Bearer "} response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript 200 - Connector download issued const url = 'https://api.modulards.com/api/public/v1/connection-plugins'; const options = {method: 'POST', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 - Connector download issued package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/connection-plugins" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 - Connector download issued require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/connection-plugins") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 - Connector download issued import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.modulards.com/api/public/v1/connection-plugins") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 - Connector download issued request('POST', 'https://api.modulards.com/api/public/v1/connection-plugins', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 - Connector download issued using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/connection-plugins"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 - Connector download issued import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/connection-plugins")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Create a Modular Connector download link **Request** ```json { "expires_at": null, "preset_backup": null, "preset_broken_link": null, "preset_malware_scan": null, "preset_uptime": null, "team": 1 } ``` **Response** ```json { "jsonapi": { "version": "1.1" }, "meta": { "download_url": "https://cdn.modulards.com/connector/download/9f8e7d6c5b4a3210-linking-token.zip", "expires_at": "2026-09-24T10:00:00.000000Z" } } ``` **SDK Code** ```python Create a Modular Connector download link import requests url = "https://api.modulards.com/api/public/v1/connection-plugins" payload = { "expires_at": None, "preset_backup": None, "preset_broken_link": None, "preset_malware_scan": None, "preset_uptime": None, "team": 1 } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Create a Modular Connector download link const url = 'https://api.modulards.com/api/public/v1/connection-plugins'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"expires_at":null,"preset_backup":null,"preset_broken_link":null,"preset_malware_scan":null,"preset_uptime":null,"team":1}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Create a Modular Connector download link package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/connection-plugins" payload := strings.NewReader("{\n \"expires_at\": null,\n \"preset_backup\": null,\n \"preset_broken_link\": null,\n \"preset_malware_scan\": null,\n \"preset_uptime\": null,\n \"team\": 1\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Create a Modular Connector download link require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/connection-plugins") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"expires_at\": null,\n \"preset_backup\": null,\n \"preset_broken_link\": null,\n \"preset_malware_scan\": null,\n \"preset_uptime\": null,\n \"team\": 1\n}" response = http.request(request) puts response.read_body ``` ```java Create a Modular Connector download link import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.modulards.com/api/public/v1/connection-plugins") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"expires_at\": null,\n \"preset_backup\": null,\n \"preset_broken_link\": null,\n \"preset_malware_scan\": null,\n \"preset_uptime\": null,\n \"team\": 1\n}") .asString(); ``` ```php Create a Modular Connector download link request('POST', 'https://api.modulards.com/api/public/v1/connection-plugins', [ 'body' => '{ "expires_at": null, "preset_backup": null, "preset_broken_link": null, "preset_malware_scan": null, "preset_uptime": null, "team": 1 }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Create a Modular Connector download link using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/connection-plugins"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"expires_at\": null,\n \"preset_backup\": null,\n \"preset_broken_link\": null,\n \"preset_malware_scan\": null,\n \"preset_uptime\": null,\n \"team\": 1\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Create a Modular Connector download link import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "expires_at": , "preset_backup": , "preset_broken_link": , "preset_malware_scan": , "preset_uptime": , "team": 1 ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/connection-plugins")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```