Imports a skill package.

Imports a skill from an agentskills.io ZIP package or standalone SKILL.md file. Pass agentId to import the skill as private to that agent; omit it to create a reusable skill. <Check title="Required Permissions" icon="key">Any authenticated user.</Check>

Authentication

AuthorizationBearer

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

Query parameters

agentIdstringOptionalformat: "uuid"
The optional owning agent ID.

Request

This endpoint expects a multipart form with multiple files.
filefileOptional
An agentskills.io ZIP package or standalone SKILL.md file.
contentfileOptional
Standalone SKILL.md content used by agent and MCP callers.
fileNamestringOptional
The file name used when content is supplied, for example SKILL.md.

Response

OK
idstringOptionalformat: "uuid"
The skill identifier.
createdBystringOptionalformat: "uuid"
The user who created the skill.
createdOnstringOptionalformat: "date-time"
When the skill was created.
updatedOnstring or nullOptionalformat: "date-time"
When the skill was last updated.
keystring or nullOptional
The stable key used to reference the skill.
namestring or nullOptional
The name shown in the skill library.
descriptionstring or nullOptional
A short explanation of what the skill does.
instructionsstring or nullOptional

The Markdown instruction body from SKILL.md.

instructionsSourcestring or nullOptional
The source from which the instructions were created.
typeenumOptional
The ownership type.
userIdstring or nullOptionalformat: "uuid"

The owning user for a user-owned skill.

agentIdstring or nullOptionalformat: "uuid"

The owning agent for an agent-owned skill.

accessLevelenumOptional
The requesting user's resolved access level.
isOwnerbooleanOptional
Whether the requesting user owns the skill.
workspaceAccessLevelenum or nullOptional

The workspace-wide access level.

linkedAgentCountintegerOptional
The number of linked agents.
metadatastring or nullOptional
The skill frontmatter as a JSON object.
hasFilesbooleanOptional
Whether the skill includes bundled files.
secretRequirementslist of objects or nullOptional
The secrets that the skill declares.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error