Import a skill from a ZIP archive
curl --request POST \
--url https://api.openworklabs.com/v1/plugins/skill-zip \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openworklabs.com/v1/plugins/skill-zip"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.openworklabs.com/v1/plugins/skill-zip', 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://api.openworklabs.com/v1/plugins/skill-zip",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.openworklabs.com/v1/plugins/skill-zip"
req, _ := http.NewRequest("POST", url, nil)
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://api.openworklabs.com/v1/plugins/skill-zip")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/plugins/skill-zip")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"item": {
"id": "<string>",
"externalKey": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"sourceRepositoryUrl": "<string>",
"sourceFormat": "agent-plugin",
"sourceSchemaVersion": "<string>",
"status": "active",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"memberCount": 4503599627370495,
"marketplaces": [
{
"id": "<string>",
"name": "<string>"
}
],
"extension": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"sourceFormat": "agent-plugin",
"manifest": {
"schemaVersion": 1,
"id": "<string>",
"name": "<string>",
"description": "<string>",
"source": {
"format": "agent-plugin",
"trusted": true,
"origin": "builtin",
"reference": "<string>"
},
"resources": [
{}
],
"contributions": [
{}
],
"setup": {},
"lifecycle": {}
}
}
}
}{
"error": "invalid_request",
"details": [
{
"message": "<string>",
"path": [
"<string>"
]
}
],
"message": "<string>",
"capability": "<string>"
}{
"error": "unauthorized"
}{
"error": "forbidden",
"reason": "<string>",
"message": "<string>"
}{
"error": "invalid_request",
"details": [
{
"message": "<string>",
"path": [
"<string>"
]
}
],
"message": "<string>",
"capability": "<string>"
}Plugins
Import a skill from a ZIP archive
Creates a private plugin holding one skill from a .zip in the layout Anthropic’s Agent Skills use (and Claude exports): SKILL.md at the root, or in one folder named after the skill, with any supporting files beside it. Send multipart form data with the archive in file and an optional pluginName (the skill name by default). Files of any type; up to 40 MB per archive, 500 files, 10 MB per file and 30 MB of supporting files. The skill is available to its creator at once and is not shared.
POST
/
v1
/
plugins
/
skill-zip
Import a skill from a ZIP archive
curl --request POST \
--url https://api.openworklabs.com/v1/plugins/skill-zip \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openworklabs.com/v1/plugins/skill-zip"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.openworklabs.com/v1/plugins/skill-zip', 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://api.openworklabs.com/v1/plugins/skill-zip",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.openworklabs.com/v1/plugins/skill-zip"
req, _ := http.NewRequest("POST", url, nil)
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://api.openworklabs.com/v1/plugins/skill-zip")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/plugins/skill-zip")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"item": {
"id": "<string>",
"externalKey": "<string>",
"organizationId": "<string>",
"name": "<string>",
"description": "<string>",
"sourceRepositoryUrl": "<string>",
"sourceFormat": "agent-plugin",
"sourceSchemaVersion": "<string>",
"status": "active",
"createdByOrgMembershipId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"memberCount": 4503599627370495,
"marketplaces": [
{
"id": "<string>",
"name": "<string>"
}
],
"extension": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"sourceFormat": "agent-plugin",
"manifest": {
"schemaVersion": 1,
"id": "<string>",
"name": "<string>",
"description": "<string>",
"source": {
"format": "agent-plugin",
"trusted": true,
"origin": "builtin",
"reference": "<string>"
},
"resources": [
{}
],
"contributions": [
{}
],
"setup": {},
"lifecycle": {}
}
}
}
}{
"error": "invalid_request",
"details": [
{
"message": "<string>",
"path": [
"<string>"
]
}
],
"message": "<string>",
"capability": "<string>"
}{
"error": "unauthorized"
}{
"error": "forbidden",
"reason": "<string>",
"message": "<string>"
}{
"error": "invalid_request",
"details": [
{
"message": "<string>",
"path": [
"<string>"
]
}
],
"message": "<string>",
"capability": "<string>"
}Was this page helpful?