curl --request POST \
--url https://melso.ai/api/skills/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://skills.sh/anthropics/skills/pdf",
"on_conflict": "fail"
}
'import requests
url = "https://melso.ai/api/skills/import"
payload = {
"url": "https://skills.sh/anthropics/skills/pdf",
"on_conflict": "fail"
}
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({url: 'https://skills.sh/anthropics/skills/pdf', on_conflict: 'fail'})
};
fetch('https://melso.ai/api/skills/import', 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://melso.ai/api/skills/import",
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([
'url' => 'https://skills.sh/anthropics/skills/pdf',
'on_conflict' => 'fail'
]),
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://melso.ai/api/skills/import"
payload := strings.NewReader("{\n \"url\": \"https://skills.sh/anthropics/skills/pdf\",\n \"on_conflict\": \"fail\"\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://melso.ai/api/skills/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://skills.sh/anthropics/skills/pdf\",\n \"on_conflict\": \"fail\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/skills/import")
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 \"url\": \"https://skills.sh/anthropics/skills/pdf\",\n \"on_conflict\": \"fail\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"reason": "<string>",
"skill": {
"id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"description": "<string>",
"content": "<string>",
"config": "<unknown>",
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"scope": "<string>",
"area_ids": [
"<string>"
],
"files": [
{
"id": "<string>",
"skill_id": "<string>",
"path": "<string>",
"content": "<string>",
"encoding": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
],
"source_edited": true
},
"existing_skill": {
"id": "<string>",
"name": "<string>",
"created_by": "<string>",
"can_overwrite": true
}
}{
"status": "<string>",
"reason": "<string>",
"skill": {
"id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"description": "<string>",
"content": "<string>",
"config": "<unknown>",
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"scope": "<string>",
"area_ids": [
"<string>"
],
"files": [
{
"id": "<string>",
"skill_id": "<string>",
"path": "<string>",
"content": "<string>",
"encoding": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
],
"source_edited": true
},
"existing_skill": {
"id": "<string>",
"name": "<string>",
"created_by": "<string>",
"can_overwrite": true
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Import skill
Workspace member.
Response: with on_conflict (always for an archive): {status,reason?,skill?,existing_skill?} where status is created, updated, conflict, skipped or failed. overwrite replaces the existing skill only for its creator. Without on_conflict, a URL import returns the created skill, or a 409 with existing_skill.
Status: 201 created; 200 updated or skipped; 400 invalid source or archive; 403 overwrite by someone else; 409 conflict; 413 over the limits; 502/503/504 source unavailable or slow.
curl --request POST \
--url https://melso.ai/api/skills/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://skills.sh/anthropics/skills/pdf",
"on_conflict": "fail"
}
'import requests
url = "https://melso.ai/api/skills/import"
payload = {
"url": "https://skills.sh/anthropics/skills/pdf",
"on_conflict": "fail"
}
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({url: 'https://skills.sh/anthropics/skills/pdf', on_conflict: 'fail'})
};
fetch('https://melso.ai/api/skills/import', 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://melso.ai/api/skills/import",
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([
'url' => 'https://skills.sh/anthropics/skills/pdf',
'on_conflict' => 'fail'
]),
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://melso.ai/api/skills/import"
payload := strings.NewReader("{\n \"url\": \"https://skills.sh/anthropics/skills/pdf\",\n \"on_conflict\": \"fail\"\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://melso.ai/api/skills/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://skills.sh/anthropics/skills/pdf\",\n \"on_conflict\": \"fail\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://melso.ai/api/skills/import")
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 \"url\": \"https://skills.sh/anthropics/skills/pdf\",\n \"on_conflict\": \"fail\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"reason": "<string>",
"skill": {
"id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"description": "<string>",
"content": "<string>",
"config": "<unknown>",
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"scope": "<string>",
"area_ids": [
"<string>"
],
"files": [
{
"id": "<string>",
"skill_id": "<string>",
"path": "<string>",
"content": "<string>",
"encoding": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
],
"source_edited": true
},
"existing_skill": {
"id": "<string>",
"name": "<string>",
"created_by": "<string>",
"can_overwrite": true
}
}{
"status": "<string>",
"reason": "<string>",
"skill": {
"id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"description": "<string>",
"content": "<string>",
"config": "<unknown>",
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"scope": "<string>",
"area_ids": [
"<string>"
],
"files": [
{
"id": "<string>",
"skill_id": "<string>",
"path": "<string>",
"content": "<string>",
"encoding": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
],
"source_edited": true
},
"existing_skill": {
"id": "<string>",
"name": "<string>",
"created_by": "<string>",
"can_overwrite": true
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Company API key (mwk_) or personal access token (mel_). A PAT requires X-Workspace-ID on company-scoped routes. An API key implies its own company.
Headers
Company UUID for a personal token on company-scoped operations. A company API key already binds its company.