For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST /v2/skills

Create Skill

post

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.

Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Body
filesstring · binary[]Optional

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.

namestring · nullableOptional

Skill name (form mode); a changed name renames the skill when published.

descriptionstring · nullableOptional

Skill description (form mode).

instructionsstring · nullableOptional

SKILL.md body (form mode).

actionsstring[]Optional

Action refs; repeat the field per item.

Responses
201

Created

application/json
post/v2/skills
curl
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?