POST

Authorizations

x-api-key
string
header
required

Headers

bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

Idempotency-Key
string

Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.

Required string length: 1 - 255

Body

multipart/form-data

The multipart form of a skill upload. Send either files parts or one archive part.

files
file[]
required

The skill's files, one multipart part each (field name files or files[]); each part's filename is the file's relative path. Either all files sit in one top-level directory named like the SKILL.md name that holds SKILL.md (any letter case), or SKILL.md is at the root and the files are stored under a directory named after the skill.

archive
file

BMA extension. One zip holding the skill's files, instead of files parts (sending both is a 400). Directory entries are skipped; the files follow the same layout rules as files.

display_name
string

Human-readable label, one line of 1-255 characters; not unique. Defaults to the SKILL.md name.

Required string length: 1 - 255
bma_owner
string

BMA extension. The owner as JSON text, for example {"kind":"project","project_id":"proj_agqpxieuab6j5d2bbuvxu3b6da"}. Text that is not JSON, or a project owner naming any workspace but the request workspace by its proj_ ID, is a 400; otherwise the value is not used: the skill is always owned by the request workspace.

Response

Success.

A custom skill of a workspace, shown with the metadata of its latest live version.

id
string
required

ID of the skill (skl_ followed by 26 lowercase base32 characters).

type
string
required

Always skill.

Allowed value: "skill"
display_name
string
required

Human-readable label of the skill. The display_name sent at creation, otherwise the SKILL.md name; not unique, and unchanged when versions are added.

latest_version_id
string
required

ID (skr_...) of the skill's latest live version, the one with the highest bma_revision. When the latest version is deleted it becomes the newest remaining one.

source
object
required

Where the skill comes from; always {"type":"custom"}.

created_at
string<date-time>
required

When the skill was created (RFC 3339, UTC, up to microsecond precision).

updated_at
string<date-time>
required

When the skill last changed (RFC 3339, UTC); a version upload or version delete sets it.

bma_name
string
required

The machine-readable skill name from the SKILL.md frontmatter name, fixed at creation; every later version must carry the same name (display_name is the human label).

bma_revision
integer
required

The bma_revision of the latest live version.

Required range: x >= 1
bma_description
string
required

The SKILL.md frontmatter description of the latest live version.

bma_owner
object
required

Who owns the skill. BMA always answers {"kind":"project","project_id":...} for the workspace the skill was created in.

bma_skill_md
string

The full SKILL.md text of the latest live version. Returned by retrieve and create; omitted from list items.

bma_files
object[]

The files of the latest live version, in upload order. Returned by retrieve and create; omitted from list items.