Export several skills as one zip bundle
Streams a zip holding one Agent Skills package folder per skill (published state only). Any workspace role may export; a key needs read:skills, and read:roles too when filtering by roleId. Filter with exactly one of ids (comma-separated, max 100) or roleId (every skill of that role). All-or-nothing: any id that does not resolve in the key’s workspace fails the whole request with 404. Folder-name collisions inside the bundle get numeric suffixes (report, report-2, …). A role with no skills yields an empty zip. Downloadable resources with no uploaded file yet are left out of their package. Every App the skills attach is written once under apps/<name>/, and no skill folder is named apps then; Apps travel only when the key may read them (read:apps).
apiKeyAuthorizationBearer <token>Workspace API key (SKA_...).
ids?stringComma-separated skill ids to export (max 100)
1 <= lengthroleId?stringExport every skill of this role
1 <= lengthZip bundle of skill packages
response?fileapplication/zipbinarycurl -X GET 'https://app.skilder.ai/api/v1/skills/export'"string"Discard a role’s open draft DELETE
Discards the caller’s open draft; the published state is never touched, and the discarded edits cannot be recovered. Requires the Contributor or Admin role; a key needs `write:roles`. This closes the loop PATCH opens: an auto-opened draft that will not be published is released here instead of holding the author lock forever. Errors: **409 with `reason: NO_OPEN_DRAFT`** when nothing is open to discard, **409 with `reason: DRAFT_LOCKED`** when another user holds the draft (a draft is author-private; only its holder may discard it).
Export one skill as an Agent Skills zip package GET
Any workspace role may export; a key needs `read:skills`. Streams the skill’s published state as an Agent Skills package: `<skill-name>/SKILL.md`, every related resource at its folder path, declared empty folders, and — when present — the `mcp.json` (suggested servers) and `SKILDER.json` (resource descriptions, suggested tools, App names) sidecars. The skill’s Apps sit beside it under `apps/<name>/` (`app.html`, `SKILDER.json`) when the key may read them (`read:apps`). Downloadable resources with no uploaded file yet are left out.

