Skip to main content
POST
cURL
Related guide: Skills guide. See the Skills guide for a walkthrough with examples.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
bundle
string<bytes>
required

Zip archive containing SKILL.md at the root and optional supporting files. In JSON requests the bytes are base64 encoded. Operating-system archive metadata (__MACOSX, ._* AppleDouble sidecars, .DS_Store, Thumbs.db, desktop.ini) is ignored.

project_id
string

Project that should contain the skill when creating a new skill. Import creates a new skill; a conflicting name returns AlreadyExists.

path
string

Project path where the new skill should be stored.

sharing
object

Which projects in the workspace may use this skill. A skill imported without a project defaults to every project.

Response

OK

skill
object
required

Created skill.