POST /v2/skills
Create and publish the first version from a multipart bundle or form fields.
How to use
Publish the first version using multipart form fields or bundle files. Use files (plural), repeat parts for multiple files, preserve relative paths, or upload a zip. Save the created skill ID and version. A name conflict is 409; invalid/oversized bundles are 422.
Authentication and permissions
Required permissions: skills.create. Resource and owner access checks also apply.
Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Bundle files; each part's filename is its relative POSIX path inside the bundle (optionally under one shared root folder). A single .zip is accepted as an alternative.
Skill name (form mode); a changed name renames the skill when published.
Skill description (form mode).
SKILL.md body (form mode).
Action refs; repeat the field per item.
Created
Invalid request parameters
Authentication required
Permission denied; insufficient API-key scope includes meta.required_scope
Name or version conflict
Invalid skill bundle, including oversized uploads
Skill persistence failed; internal details are not exposed
Other client errors use the same public error envelope
curl --fail-with-body -sS \
"$STACKAI_BASE_URL/v2/skills" \
-H "Authorization: Bearer $STACKAI_API_KEY" \
-F 'files=@skill.zip'{
"response_code": "text",
"meta": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"data": {
"skill_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"version": 1,
"is_builtin": true,
"actions": [
"text"
],
"created_by_user_profile": {
"id": "text",
"full_name": "text"
},
"created_by_org": {
"org_id": "text",
"org_name": "text"
},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"instructions": "text",
"frontmatter": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"files": [
{
"path": "text",
"content_type": "text",
"size": 1
}
]
}
}Last updated
Was this helpful?

