Scaffold a folder-skill (folder + SKILL.md manifest)
curl --request POST \
--url https://api.devic.ai/v1/documents/skills/scaffold \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"projectId": "<string>",
"parentFolderId": "<string>",
"tags": [
"<string>"
]
}
'import requests
url = "https://api.devic.ai/v1/documents/skills/scaffold"
payload = {
"name": "<string>",
"description": "<string>",
"projectId": "<string>",
"parentFolderId": "<string>",
"tags": ["<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({
name: '<string>',
description: '<string>',
projectId: '<string>',
parentFolderId: '<string>',
tags: ['<string>']
})
};
fetch('https://api.devic.ai/v1/documents/skills/scaffold', 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.devic.ai/v1/documents/skills/scaffold",
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([
'name' => '<string>',
'description' => '<string>',
'projectId' => '<string>',
'parentFolderId' => '<string>',
'tags' => [
'<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.devic.ai/v1/documents/skills/scaffold"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"projectId\": \"<string>\",\n \"parentFolderId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\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.devic.ai/v1/documents/skills/scaffold")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"projectId\": \"<string>\",\n \"parentFolderId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devic.ai/v1/documents/skills/scaffold")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"projectId\": \"<string>\",\n \"parentFolderId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"folder": {},
"skillDoc": {
"_id": "<string>",
"clientUID": "<string>",
"projectId": "<string>",
"name": "<string>",
"fileName": "<string>",
"mimeType": "<string>",
"size": 123,
"markdownContent": "<string>",
"summary": "<string>",
"tokenCount": 123,
"currentVersion": 123,
"folderId": "<string>",
"parentDocumentId": "<string>",
"createdByUserUID": "<string>",
"creationTimestampMs": 123,
"lastEditTimestampMs": 123,
"versionCreated": true,
"isSkill": true,
"tags": [
"<string>"
]
}
}Skills
Scaffold a folder-skill (folder + SKILL.md manifest)
Creates a folder flagged as a skill and the SKILL.md manifest inside it, with the name/description frontmatter already in place. Use the returned folder._id in knowledgeSkills with type: "folder", then add the supporting documents to that folder.
POST
/
v1
/
documents
/
skills
/
scaffold
Scaffold a folder-skill (folder + SKILL.md manifest)
curl --request POST \
--url https://api.devic.ai/v1/documents/skills/scaffold \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"projectId": "<string>",
"parentFolderId": "<string>",
"tags": [
"<string>"
]
}
'import requests
url = "https://api.devic.ai/v1/documents/skills/scaffold"
payload = {
"name": "<string>",
"description": "<string>",
"projectId": "<string>",
"parentFolderId": "<string>",
"tags": ["<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({
name: '<string>',
description: '<string>',
projectId: '<string>',
parentFolderId: '<string>',
tags: ['<string>']
})
};
fetch('https://api.devic.ai/v1/documents/skills/scaffold', 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.devic.ai/v1/documents/skills/scaffold",
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([
'name' => '<string>',
'description' => '<string>',
'projectId' => '<string>',
'parentFolderId' => '<string>',
'tags' => [
'<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.devic.ai/v1/documents/skills/scaffold"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"projectId\": \"<string>\",\n \"parentFolderId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\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.devic.ai/v1/documents/skills/scaffold")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"projectId\": \"<string>\",\n \"parentFolderId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.devic.ai/v1/documents/skills/scaffold")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"projectId\": \"<string>\",\n \"parentFolderId\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"folder": {},
"skillDoc": {
"_id": "<string>",
"clientUID": "<string>",
"projectId": "<string>",
"name": "<string>",
"fileName": "<string>",
"mimeType": "<string>",
"size": 123,
"markdownContent": "<string>",
"summary": "<string>",
"tokenCount": 123,
"currentVersion": 123,
"folderId": "<string>",
"parentDocumentId": "<string>",
"createdByUserUID": "<string>",
"creationTimestampMs": 123,
"lastEditTimestampMs": 123,
"versionCreated": true,
"isSkill": true,
"tags": [
"<string>"
]
}
}Authorizations
Use JWT token for authentication
Body
application/json
Skill name. Also names the folder.
One-line description. It is what the model sees before deciding to load the skill, so phrase it as a trigger ("How to … when …"). Newlines are collapsed; truncated to 1024 characters in the catalog.
Optional project ID to scope the skill
Optional parent folder ID
Category tags
⌘I