Python SDK
from decimalai.skill_router import SkillRouter
router = SkillRouter(api_key="dai_sk_...")
skill = router.get_skill("search-flights")curl --request GET \
--url https://api.decimal.ai/api/v1/skills/{skill_name} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/skills/{skill_name}', 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.decimal.ai/api/v1/skills/{skill_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.decimal.ai/api/v1/skills/{skill_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.decimal.ai/api/v1/skills/{skill_name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/skills/{skill_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "sk_abc123",
"name": "search-flights",
"description": "Search available flights",
"category": "tools",
"stability": "stable",
"is_active": true,
"offer_scope": "workspace",
"trigger_phrases": [
"find flights"
],
"embedding_model": "text-embedding-3-small",
"embedding_dimensions": 1536,
"latest_version": {
"version_number": 3,
"content_hash": "a1b2c3d4e5f60718",
"change_summary": "Added retry logic on timeout",
"author": "alice@example.com",
"created_at": "2026-05-10T14:22:00Z"
},
"created_at": "2026-04-01T09:00:00Z",
"owner": {
"user_id": "user_123",
"user_name": "Alice",
"workspace_id": "ws_main",
"workspace_name": "Main"
},
"visibility": "org",
"can_edit": true,
"can_share": true,
"activation_count": 142,
"effectiveness_score": 0.87,
"pass_rate": 0.91,
"success_rate": 0.93,
"trend": "up"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}skills
Get a skill by name
Get skill metadata, ownership, and analytics.
GET
/
api
/
v1
/
skills
/
{skill_name}
Python SDK
from decimalai.skill_router import SkillRouter
router = SkillRouter(api_key="dai_sk_...")
skill = router.get_skill("search-flights")curl --request GET \
--url https://api.decimal.ai/api/v1/skills/{skill_name} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/skills/{skill_name}', 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.decimal.ai/api/v1/skills/{skill_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.decimal.ai/api/v1/skills/{skill_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.decimal.ai/api/v1/skills/{skill_name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/skills/{skill_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "sk_abc123",
"name": "search-flights",
"description": "Search available flights",
"category": "tools",
"stability": "stable",
"is_active": true,
"offer_scope": "workspace",
"trigger_phrases": [
"find flights"
],
"embedding_model": "text-embedding-3-small",
"embedding_dimensions": 1536,
"latest_version": {
"version_number": 3,
"content_hash": "a1b2c3d4e5f60718",
"change_summary": "Added retry logic on timeout",
"author": "alice@example.com",
"created_at": "2026-05-10T14:22:00Z"
},
"created_at": "2026-04-01T09:00:00Z",
"owner": {
"user_id": "user_123",
"user_name": "Alice",
"workspace_id": "ws_main",
"workspace_name": "Main"
},
"visibility": "org",
"can_edit": true,
"can_share": true,
"activation_count": 142,
"effectiveness_score": 0.87,
"pass_rate": 0.91,
"success_rate": 0.93,
"trend": "up"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Enter your API key (e.g. dai_sk_test_key_001)
Path Parameters
The skill's slug-style name (lowercase, hyphens/underscores).
Example:
"search-flights"
Cookies
Response
Successful Response
Full skill record returned by GET /api/v1/skills/{skill_name}.
Stricter than can_edit; required to publish or transfer
Who the trigger router offers this skill to: 'workspace' (every agent in the org) or 'restricted' (only agents it is explicitly assigned to via POST /agents/{name}/skills/{skill_id}). Set with PUT /skills/{id}.
Show child attributes
Show child attributes
last_synced_at for imported skills, else created_at
Show child attributes
Show child attributes