Start the import of a skill library from a ZIP.
Creates a new skill library from an archive in the Agent Skills format: one folder per
skill with a SKILL.md, optionally files under scripts/, references/ and assets/,
and optionally files of the library level at the root. An import always creates a new
library; nothing existing is replaced. A taken name gets a counter, Sales rules (2),
and the run reports the name it actually gave.
The call answers with a presigned upload URL. The client uploads the ZIP with a single HTTP
PUT of the raw bytes to that URL, sending exactly the requiredHeaders; the bytes do
not travel through this API, which is why the import is not limited to the 10 MB request
size of the API. Once the upload has finished, Galilea detects it and runs the
import in the background: it scans the archive for malware first and writes nothing
before the scan has passed. The client follows the run with
GET /skill-library-imports/{importId}.
An archive passes as a whole or not at all. Every find refuses it: malware, a skill without instructions or description, a name that is invalid or already taken in the tenant, a file outside the three roots, a folder nested deeper than three levels, a script where the tenant does not allow scripts, an archive over the limits.
Requires the right to create a library of the requested level: every editor may create a user or shared library, only a tenant manager an organization library.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
application/json- body
Request for a presigned upload URL for a skill library archive.
filename*stringName of the ZIP to upload. Must not contain path separators (/ or \).
length <= 255name*stringName of the library to create. Weighed only against the libraries the calling user can see; a taken name gets a counter, and the run reports the name actually given.
length <= 255level*stringThe level of the new library. user is the caller's own library, which is on from the start; shared is offered to colleagues and off until they switch it on; organization applies to everyone the tenant manager grants access to.
"user""shared""organization"The presigned upload target was created; the run waits for the archive.
application/json- response
A presigned upload target for a skill library archive. The client uploads the ZIP with a
single HTTP PUT of the raw bytes to presignedUrl, sending exactly the headers listed in
requiredHeaders. The URL is valid for expiresIn seconds. Once the upload has finished,
the import runs by itself; follow it with GET /skill-library-imports/{importId}.
importId*stringIdentifier of the import run.
uuidpresignedUrl*stringPresigned upload URL for the upload; the bytes do not travel through the Galilea API.
expiresIn*integerSeconds until the presigned URL expires.
requiredHeaders*Headers the PUT request MUST include, exactly as given.
curl -X POST "https://example.com/skill-library-imports" \ -H "Content-Type: application/json" \ -d '{ "filename": "sales-skills.zip", "name": "Vertriebsregeln", "level": "user" }'{ "importId": "7f2a1c90-9e3a-11f0-b47b-db7bdf71c9d7", "presignedUrl": "https://upload.example.com/imports/7f2a91c3.zip?expires=900&signature=...", "expiresIn": 900, "requiredHeaders": { "Content-Type": "application/zip" }}