curl --request POST \
--url https://api.erstan.com/v1/public/authoring/skills/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"packageJson": {
"version": 1,
"entryPath": "SKILL.md",
"files": [
{
"path": "<string>",
"content": "<string>",
"language": "<string>"
}
],
"actions": [
{
"key": "<string>",
"title": "<string>",
"runtime": "e2b",
"entryPath": "<string>",
"description": "<string>",
"timeoutMs": 2
}
]
},
"name": "<string>",
"description": "<string>"
}
'import requests
url = "https://api.erstan.com/v1/public/authoring/skills/validate"
payload = {
"packageJson": {
"version": 1,
"entryPath": "SKILL.md",
"files": [
{
"path": "<string>",
"content": "<string>",
"language": "<string>"
}
],
"actions": [
{
"key": "<string>",
"title": "<string>",
"runtime": "e2b",
"entryPath": "<string>",
"description": "<string>",
"timeoutMs": 2
}
]
},
"name": "<string>",
"description": "<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({
packageJson: {
version: 1,
entryPath: 'SKILL.md',
files: [{path: '<string>', content: '<string>', language: '<string>'}],
actions: [
{
key: '<string>',
title: '<string>',
runtime: 'e2b',
entryPath: '<string>',
description: '<string>',
timeoutMs: 2
}
]
},
name: '<string>',
description: '<string>'
})
};
fetch('https://api.erstan.com/v1/public/authoring/skills/validate', 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.erstan.com/v1/public/authoring/skills/validate",
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([
'packageJson' => [
'version' => 1,
'entryPath' => 'SKILL.md',
'files' => [
[
'path' => '<string>',
'content' => '<string>',
'language' => '<string>'
]
],
'actions' => [
[
'key' => '<string>',
'title' => '<string>',
'runtime' => 'e2b',
'entryPath' => '<string>',
'description' => '<string>',
'timeoutMs' => 2
]
]
],
'name' => '<string>',
'description' => '<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.erstan.com/v1/public/authoring/skills/validate"
payload := strings.NewReader("{\n \"packageJson\": {\n \"version\": 1,\n \"entryPath\": \"SKILL.md\",\n \"files\": [\n {\n \"path\": \"<string>\",\n \"content\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"runtime\": \"e2b\",\n \"entryPath\": \"<string>\",\n \"description\": \"<string>\",\n \"timeoutMs\": 2\n }\n ]\n },\n \"name\": \"<string>\",\n \"description\": \"<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.erstan.com/v1/public/authoring/skills/validate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"packageJson\": {\n \"version\": 1,\n \"entryPath\": \"SKILL.md\",\n \"files\": [\n {\n \"path\": \"<string>\",\n \"content\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"runtime\": \"e2b\",\n \"entryPath\": \"<string>\",\n \"description\": \"<string>\",\n \"timeoutMs\": 2\n }\n ]\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erstan.com/v1/public/authoring/skills/validate")
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 \"packageJson\": {\n \"version\": 1,\n \"entryPath\": \"SKILL.md\",\n \"files\": [\n {\n \"path\": \"<string>\",\n \"content\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"runtime\": \"e2b\",\n \"entryPath\": \"<string>\",\n \"description\": \"<string>\",\n \"timeoutMs\": 2\n }\n ]\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"diagnostics": [
{}
],
"issues": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"requestId": "<string>"
}
}validate skill authoring content
Requires the stagedAuthoring workspace capability. Reads require agents:read; lists also require agents:list; writes and validation require agents:read plus agents:write. Saving stages content; publication is a separate operation. Current permissions are checked again on every retry. Multi-resource operations are not atomic.
curl --request POST \
--url https://api.erstan.com/v1/public/authoring/skills/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"packageJson": {
"version": 1,
"entryPath": "SKILL.md",
"files": [
{
"path": "<string>",
"content": "<string>",
"language": "<string>"
}
],
"actions": [
{
"key": "<string>",
"title": "<string>",
"runtime": "e2b",
"entryPath": "<string>",
"description": "<string>",
"timeoutMs": 2
}
]
},
"name": "<string>",
"description": "<string>"
}
'import requests
url = "https://api.erstan.com/v1/public/authoring/skills/validate"
payload = {
"packageJson": {
"version": 1,
"entryPath": "SKILL.md",
"files": [
{
"path": "<string>",
"content": "<string>",
"language": "<string>"
}
],
"actions": [
{
"key": "<string>",
"title": "<string>",
"runtime": "e2b",
"entryPath": "<string>",
"description": "<string>",
"timeoutMs": 2
}
]
},
"name": "<string>",
"description": "<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({
packageJson: {
version: 1,
entryPath: 'SKILL.md',
files: [{path: '<string>', content: '<string>', language: '<string>'}],
actions: [
{
key: '<string>',
title: '<string>',
runtime: 'e2b',
entryPath: '<string>',
description: '<string>',
timeoutMs: 2
}
]
},
name: '<string>',
description: '<string>'
})
};
fetch('https://api.erstan.com/v1/public/authoring/skills/validate', 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.erstan.com/v1/public/authoring/skills/validate",
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([
'packageJson' => [
'version' => 1,
'entryPath' => 'SKILL.md',
'files' => [
[
'path' => '<string>',
'content' => '<string>',
'language' => '<string>'
]
],
'actions' => [
[
'key' => '<string>',
'title' => '<string>',
'runtime' => 'e2b',
'entryPath' => '<string>',
'description' => '<string>',
'timeoutMs' => 2
]
]
],
'name' => '<string>',
'description' => '<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.erstan.com/v1/public/authoring/skills/validate"
payload := strings.NewReader("{\n \"packageJson\": {\n \"version\": 1,\n \"entryPath\": \"SKILL.md\",\n \"files\": [\n {\n \"path\": \"<string>\",\n \"content\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"runtime\": \"e2b\",\n \"entryPath\": \"<string>\",\n \"description\": \"<string>\",\n \"timeoutMs\": 2\n }\n ]\n },\n \"name\": \"<string>\",\n \"description\": \"<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.erstan.com/v1/public/authoring/skills/validate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"packageJson\": {\n \"version\": 1,\n \"entryPath\": \"SKILL.md\",\n \"files\": [\n {\n \"path\": \"<string>\",\n \"content\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"runtime\": \"e2b\",\n \"entryPath\": \"<string>\",\n \"description\": \"<string>\",\n \"timeoutMs\": 2\n }\n ]\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erstan.com/v1/public/authoring/skills/validate")
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 \"packageJson\": {\n \"version\": 1,\n \"entryPath\": \"SKILL.md\",\n \"files\": [\n {\n \"path\": \"<string>\",\n \"content\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"actions\": [\n {\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"runtime\": \"e2b\",\n \"entryPath\": \"<string>\",\n \"description\": \"<string>\",\n \"timeoutMs\": 2\n }\n ]\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"diagnostics": [
{}
],
"issues": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"requestId": "<string>"
}
}Authorizations
Workspace API key created in Erstan Settings. Keys carry scopes (agents:list, agents:read, agents:write, agents:run, runs:read, tasks:execute, documents:read, documents:write, files:read, files:write). Agent access follows the key creator's current workspace, team, and agent permissions. Agent draft creation requires agents:write; update, validation, and publishing require both agents:read and agents:write; draft testing also requires agents:run. Keys with tasks:execute must include at least one allowed project or team (allowedProjectIds / allowedTeamIds); keys with document or file scopes must include at least one allowed team. Empty allowlists mean no access — the API fails closed.