Skip to main content
Imports a Skill from a SKILL.md file or a zip archive. Use this endpoint to sync repository-managed Skills into Langdock.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required Scopes

This endpoint requires the SKILL_API scope.
Creating a new Skill requires the createSkills workspace permission. Updating an existing Skill with mode: "upsert" requires editor access to the matching Skill.

Request Format

Send the request as multipart/form-data.

SKILL.md Format

The imported Skill must include YAML frontmatter followed by instructions:
SKILL.md

Zip archive rules

Zip archives must contain a SKILL.md file at the root or inside one top-level directory. Langdock stores allowed supporting files with the Skill and skips unsupported file types. Supported supporting file types include Markdown, text, Python, shell, JavaScript, TypeScript, JSON, YAML, TOML, CSV, SQL, XML, HTML, CSS, SVG, PDF, Office files, fonts, and common image formats.

Import Modes

When an upsert updates an existing Skill, imported files replace the Skill’s existing stored files.

Example

Response Format

Success Response (200 OK or 201 Created)

200 OK means an existing Skill was updated through upsert. 201 Created means a new Skill was created.

Error Handling

Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.