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
agentId
The optional owning agent ID.
Request
This endpoint expects a multipart form with multiple files.
file
An agentskills.io ZIP package or standalone SKILL.md file.
content
Standalone SKILL.md content used by agent and MCP callers.
fileName
The file name used when content is supplied, for example SKILL.md.
Response
OK
id
The skill identifier.
createdBy
The user who created the skill.
createdOn
When the skill was created.
updatedOn
When the skill was last updated.
key
The stable key used to reference the skill.
name
The name shown in the skill library.
description
A short explanation of what the skill does.
instructions
The Markdown instruction body from SKILL.md.
instructionsSource
The source from which the instructions were created.
type
The ownership type.
userId
The owning user for a user-owned skill.
agentId
The owning agent for an agent-owned skill.
accessLevel
The requesting user's resolved access level.
isOwner
Whether the requesting user owns the skill.
workspaceAccessLevel
The workspace-wide access level.
linkedAgentCount
The number of linked agents.
metadata
The skill frontmatter as a JSON object.
hasFiles
Whether the skill includes bundled files.
secretRequirements
The secrets that the skill declares.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error

