treg.to Skills API
The Skills API from treg.to — 3 operation(s) for skills.
The Skills API from treg.to — 3 operation(s) for skills.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/treg-to:treg-to-skills-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: treg Skills API
version: 0.0.1
tags:
- name: Skills
paths:
/skills:
post:
summary: Register Skill
description: 'Register a skill from a raw payload (recipe + secrets + tools). The dashboard''s folder importer
and the CLI build this same payload; the shared core is `_register_skill_bundle`.'
operationId: register_skill_skills_post
parameters:
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SkillIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Register Skill Skills Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Skills
/skills/analyze:
post:
summary: Analyze Skill Folder
description: 'Classify an uploaded skill folder WITHOUT registering — the dashboard''s verify step. Same
classifier as `treg upload skills`: recipe-only vs contract vs generated, plus readiness gaps.'
operationId: analyze_skill_folder_skills_analyze_post
parameters:
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SkillAnalyzeIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Analyze Skill Folder Skills Analyze Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Skills
/skills/import:
post:
summary: Import Skill Folder
description: 'Register selected skills from an uploaded folder: scan → build the payload (secret VALUES from
the uploaded files / provided env values) → register each as a bundle. Mirrors `treg upload skills`.'
operationId: import_skill_folder_skills_import_post
parameters:
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SkillImportIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Import Skill Folder Skills Import Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Skills
components:
schemas:
SkillImportIn:
properties:
files:
items:
$ref: '#/components/schemas/SkillFileIn'
type: array
title: Files
default: []
select:
items:
type: string
type: array
title: Select
default: []
env_values:
additionalProperties:
type: string
type: object
title: Env Values
default: {}
type: object
title: SkillImportIn
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SkillSecretIn:
properties:
local_name:
type: string
title: Local Name
value:
type: string
title: Value
kind:
type: string
title: Kind
default: env
type: object
required:
- local_name
- value
title: SkillSecretIn
SkillIn:
properties:
name:
type: string
title: Name
recipe:
type: string
title: Recipe
default: ''
files:
additionalProperties:
type: string
type: object
title: Files
default: {}
secrets:
items:
$ref: '#/components/schemas/SkillSecretIn'
type: array
title: Secrets
default: []
tools:
items:
$ref: '#/components/schemas/SkillToolIn'
type: array
title: Tools
default: []
type: object
required:
- name
title: SkillIn
SkillToolIn:
properties:
name:
type: string
title: Name
base_url:
type: string
title: Base Url
bindings:
items:
additionalProperties: true
type: object
type: array
title: Bindings
default: []
health_check:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Health Check
examples:
items:
additionalProperties: true
type: object
type: array
title: Examples
default: []
cli:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Cli
type: object
required:
- name
- base_url
title: SkillToolIn
SkillAnalyzeIn:
properties:
files:
items:
$ref: '#/components/schemas/SkillFileIn'
type: array
title: Files
default: []
type: object
title: SkillAnalyzeIn
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
SkillFileIn:
properties:
path:
type: string
title: Path
content:
type: string
title: Content
type: object
required:
- path
- content
title: SkillFileIn