curl --request POST \
--url https://api.hq.zone/v1/skills/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body_markdown": "<string>",
"kind": "markdown",
"name": "<string>",
"description": "<string>",
"profile": "<string>",
"provides": "<string>"
}
'import requests
url = "https://api.hq.zone/v1/skills/upload"
payload = {
"body_markdown": "<string>",
"kind": "markdown",
"name": "<string>",
"description": "<string>",
"profile": "<string>",
"provides": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body_markdown: '<string>',
kind: 'markdown',
name: '<string>',
description: '<string>',
profile: '<string>',
provides: '<string>'
})
};
fetch('https://api.hq.zone/v1/skills/upload', 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.hq.zone/v1/skills/upload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'body_markdown' => '<string>',
'kind' => 'markdown',
'name' => '<string>',
'description' => '<string>',
'profile' => '<string>',
'provides' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.hq.zone/v1/skills/upload"
payload := strings.NewReader("{\n \"body_markdown\": \"<string>\",\n \"kind\": \"markdown\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profile\": \"<string>\",\n \"provides\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.hq.zone/v1/skills/upload")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body_markdown\": \"<string>\",\n \"kind\": \"markdown\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profile\": \"<string>\",\n \"provides\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hq.zone/v1/skills/upload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body_markdown\": \"<string>\",\n \"kind\": \"markdown\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profile\": \"<string>\",\n \"provides\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"slug": "<string>",
"version": "<string>"
}Upload a skill
Creates a workspace-owned skill from caller-supplied content. The body may be either inline markdown (wrapped automatically as SKILL.md) or a multi-file pack of base64-encoded files that must include a SKILL.md at the root. The display name must be 3 to 60 characters of letters, digits, spaces, hyphens, or underscores and is used to derive the slug; an optional runtime profile (claude-sdk, hermes, or openai-agents; defaults to claude-sdk) and an optional capability slot may be set. Size limits apply (up to 50 files, 256 KiB total raw content, 64 KiB markdown, and a 1 MB request limit). Re-uploading with the same derived slug updates the existing skill in place. Returns the resulting slug and version with HTTP 201. Admin only; scoped to the caller’s own workspace.
curl --request POST \
--url https://api.hq.zone/v1/skills/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body_markdown": "<string>",
"kind": "markdown",
"name": "<string>",
"description": "<string>",
"profile": "<string>",
"provides": "<string>"
}
'import requests
url = "https://api.hq.zone/v1/skills/upload"
payload = {
"body_markdown": "<string>",
"kind": "markdown",
"name": "<string>",
"description": "<string>",
"profile": "<string>",
"provides": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body_markdown: '<string>',
kind: 'markdown',
name: '<string>',
description: '<string>',
profile: '<string>',
provides: '<string>'
})
};
fetch('https://api.hq.zone/v1/skills/upload', 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.hq.zone/v1/skills/upload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'body_markdown' => '<string>',
'kind' => 'markdown',
'name' => '<string>',
'description' => '<string>',
'profile' => '<string>',
'provides' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.hq.zone/v1/skills/upload"
payload := strings.NewReader("{\n \"body_markdown\": \"<string>\",\n \"kind\": \"markdown\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profile\": \"<string>\",\n \"provides\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.hq.zone/v1/skills/upload")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body_markdown\": \"<string>\",\n \"kind\": \"markdown\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profile\": \"<string>\",\n \"provides\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hq.zone/v1/skills/upload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body_markdown\": \"<string>\",\n \"kind\": \"markdown\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profile\": \"<string>\",\n \"provides\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"slug": "<string>",
"version": "<string>"
}Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Body
- Option 1
- Option 2
Inline markdown: server wraps it as SKILL.md in a single-file
tarball. Covers the "paste a paragraph or two" case.
markdown Display name (3–60 chars, alphanumeric + spaces/hyphens). Used to derive the slug.
One-line description shown on the Skills page.
Runtime profile this pack targets. Defaults to claude-sdk.
Capability slot this skill fills, e.g. app-design. When set (and
the skill is enabled), it supersedes the platform default that
provides the same capability for this workspace - the tenant's own
instructions replace ours. Brand tokens still flow via the
workspace preamble, independent of which design skill is active.