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.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Query parameters
agentIdstringOptionalThe optional owning agent ID.
Request body Required
multipart/form-data
filestringOptionalAn agentskills.io ZIP package or standalone SKILL.md file.
contentstringOptionalStandalone SKILL.md content used by agent and MCP callers.
fileNamestringOptionalThe file name used when content is supplied, for example SKILL.md.
Responses
200 OK
application/json
isOfficialbooleanOptionalWhether a workspace admin marked this item as official. False when metadata is disabled.
tagsarray of object or nullOptionalThe canonical AI tags. Empty when metadata is disabled.
Show 4 properties
idstringOptionalThe stable identifier of this workspace tag.
namestring or nullOptionalThe shared display name.
colorstring or nullOptionalThe shared display color.
assignmentCountinteger or nullOptionalThe number of active agents, skills, prompts, and connectors that use this tag. Only set by the tag list.
canEditTagsbooleanOptionalWhether the current viewer can replace this item's tags.
canSetOfficialbooleanOptionalWhether the current viewer can change this item's official status.
idstringOptionalThe skill identifier.
createdBystringOptionalThe user who created the skill.
createdOnstringOptionalWhen the skill was created.
updatedOnstring or nullOptionalWhen the skill was last updated.
keystring or nullOptionalThe stable key used to reference the skill.
namestring or nullOptionalThe name shown in the skill library.
descriptionstring or nullOptionalA short explanation of what the skill does.
instructionsstring or nullOptionalThe Markdown instruction body from SKILL.md.
instructionsSourcestring or nullOptionalThe source from which the instructions were created.
typestringOptionalAllowed: "user" "agent"
The ownership type.
userIdstring or nullOptionalThe owning user for a user-owned skill.
agentIdstring or nullOptionalThe owning agent for an agent-owned skill.
accessLevelstringOptionalAllowed: "read" "manage"
The requesting user's resolved access level.
isOwnerbooleanOptionalWhether the requesting user owns the skill.
hasAdminAccessOnlybooleanOptionalWhether the skill is visible only through workspace administration access.
workspaceAccessLevelstring or nullOptionalAllowed: "read" "manage"
The workspace-wide access level.
linkedAgentCountintegerOptionalThe number of linked agents.
metadatastring or nullOptionalThe skill frontmatter as a JSON object.
hasFilesbooleanOptionalWhether the skill includes bundled files.
secretRequirementsarray of object or nullOptionalThe secrets that the skill declares.
Show 6 properties
idstringOptionalThe secret requirement identifier.
envVarNamestring or nullOptionalThe environment variable name the secret is injected as.
descriptionstring or nullOptionalThe description shown to users when providing the secret.
scopestringOptionalAllowed: "workspace" "user"
Who must provide the secret value.
isRequiredbooleanOptionalWhether the secret is required for the skill to work.
hasValuebooleanOptionalWhether a value is available for the requesting user.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.