Get a Skill file
Skills API
Get Skill File
Retrieve a stored Skill file by path
GET
Get a Skill file
Retrieves a stored Skill file by path from your workspace.
Base URL
Required Scopes
This endpoint requires theSKILL_API scope.
Requires viewer access to the Skill.
Parameters
The file must be valid UTF-8 and no larger than 512 KB. Readable extensions are
.md, .mdx, .txt, .py, .sh, .js, .ts, .json, .yaml, .yml, .toml, .csv, .xml, .xsd, .html, .css, and .svg. Binary and other unsupported files stay listed on Get Skill. This endpoint does not return their contents.
Example
Response Format
Success Response (200 OK)
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.
Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Path Parameters
UUID of the Skill.
Query Parameters
Relative path of the file inside the Skill.
Required string length:
1 - 255Response
File returned successfully
Relative path inside the Skill.
File size in bytes.
Lowercase file extension, including the leading dot.
Whether the file is a script file (.py, .sh, .js, or .ts).
Lowercase SHA-256 hash of the original file bytes.
UTF-8 file contents.