Skip to main content
POST
/
plugins
Upload a plugin
curl --request POST \
  --url https://registry.wp-content.io/plugins \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-KEY: <api-key>' \
  --form plugin='@example-file' \
  --form 'release_notes=First release'
import requests

url = "https://registry.wp-content.io/plugins"

files = { "plugin": ("example-file", open("example-file", "rb")) }
payload = { "release_notes": "First release" }
headers = {"X-API-KEY": "<api-key>"}

response = requests.post(url, data=payload, files=files, headers=headers)

print(response.text)
const form = new FormData();
form.append('plugin', '<string>');
form.append('release_notes', 'First release');

const options = {method: 'POST', headers: {'X-API-KEY': '<api-key>'}};

options.body = form;

fetch('https://registry.wp-content.io/plugins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://registry.wp-content.io/plugins",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plugin\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"release_notes\"\r\n\r\nFirst release\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-API-KEY: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://registry.wp-content.io/plugins"

payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plugin\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"release_notes\"\r\n\r\nFirst release\r\n-----011000010111000001101001--")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-KEY", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://registry.wp-content.io/plugins")
.header("X-API-KEY", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plugin\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"release_notes\"\r\n\r\nFirst release\r\n-----011000010111000001101001--")
.asString();
require 'uri'
require 'net/http'

url = URI("https://registry.wp-content.io/plugins")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"plugin\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"release_notes\"\r\n\r\nFirst release\r\n-----011000010111000001101001--"

response = http.request(request)
puts response.read_body
{
  "name": "My Plugin",
  "slug": "my-plugin",
  "version": "1.0.1",
  "author": "<a href=\"https://example.com\" target=\"_blank\">ACME</a>",
  "author_profile": "https://example.com",
  "short_description": "",
  "rating": 0,
  "num_ratings": 0,
  "active_installs": 0,
  "requires": "",
  "tested": null,
  "requires_php": "",
  "download_link": "https://wp-content-staging.s3.fr-par.scw.cloud/artifacts/plugins/my-plugin/my-plugin-1.0.1-6af596f11972bae336f7bcfdd03fdd1e.zip",
  "icons": {
    "default": "http://localhost:8080/images/icon-placeholder.png"
  },
  "added": "2025-06-11",
  "last_updated": "2025-06-11 9:05am UTC"
}

Authorizations

X-API-KEY
string
header
required

Body

multipart/form-data
plugin
file

Artifact for create or update a plugin

release_notes
string

Release notes of the version

Example:

"First release"

Response

OK

The response is of type object.