Skip to main content
GET
Get a Skill file
Ruft eine gespeicherte Skill-Datei anhand des Pfads aus deinem Workspace ab.

Basis-URL

Dedicated DeploymentsErsetze api.langdock.com durch <your-deployment-url>/api/public in allen Anfragen.

Erforderliche Scopes

Dieser Endpoint erfordert den SKILL_API Scope.
Erfordert Viewer-Zugriff auf den Skill.

Parameter

Die Datei muss gültiges UTF-8 sein und darf höchstens 512 KB groß sein. Lesbare Endungen sind .md, .mdx, .txt, .py, .sh, .js, .ts, .json, .yaml, .yml, .toml, .csv, .xml, .xsd, .html, .css und .svg. Binärdateien und andere nicht unterstützte Dateien bleiben unter Skill abrufen gelistet. Dieser Endpoint gibt ihren Inhalt nicht zurück.

Beispiel

Antwortformat

Erfolgsantwort (200 OK)

Fehlerbehandlung

Langdock blockiert bewusst Browser-basierte Anfragen, um deinen API-Schlüssel zu schützen und die Sicherheit deiner Anwendungen zu gewährleisten. Weitere Informationen findest du in unserem Guide zu Best Practices für API-Schlüssel.

Autorisierungen

Authorization
string
header
erforderlich

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Pfadparameter

skillId
string<uuid>
erforderlich

UUID of the Skill.

Abfrageparameter

path
string
erforderlich

Relative path of the file inside the Skill.

Required string length: 1 - 255

Antwort

File returned successfully

path
string
erforderlich

Relative path inside the Skill.

sizeBytes
integer
erforderlich

File size in bytes.

extension
string
erforderlich

Lowercase file extension, including the leading dot.

hasScript
boolean
erforderlich

Whether the file is a script file (.py, .sh, .js, or .ts).

sha256
string
erforderlich

Lowercase SHA-256 hash of the original file bytes.

content
string
erforderlich

UTF-8 file contents.