curl -sS "$BMA_BASE_URL/v1/skills/skl_agq7qo75pb6s5gqqjnxy4li4a4/versions/latest/content" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-o content.bin"<string>"{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}Download a skill version
Downloads one live version of a skill of the request workspace as a zip archive, streamed as application/octet-stream. The archive holds the version’s files under one top-level directory (for example pdf-tools/SKILL.md and pdf-tools/scripts/extract.py); an upload made with SKILL.md at its root is stored, and downloaded, under a directory named after the skill. latest downloads the live version with the highest bma_revision. A deleted, unknown or malformed version is a 404 without an error.code; a skill that was deleted, belongs to another workspace or does not exist is a 404 not_found.
Authorization: An organization API key (x-api-key: bma_org_v1_...), a personal access token (Authorization: Bearer bma_pat_v1_...), an OAuth access token, or a signed-in user’s dashboard token or session. Any workspace role (admin, developer, operator or viewer) in the request workspace may download; organization owners and admins act as workspace admins in every workspace of their organization. The workspace is the one named by bma-workspace-id (or anthropic-workspace-id), otherwise the credential’s own workspace; a user credential names its organization with bma-organization-id.
Limits:
- The archive holds at most 30 MiB of uncompressed file content (the upload limit).
- Rate limit: one request of the organization’s read budget (Rate limits).
Errors (besides the common errors (401 authentication, 429 rate_limited, 500)):
| Status | error.type | error.code | Cause | Fix |
|---|---|---|---|---|
| 400 | invalid_request_error | organization_required | A user credential that is bound to no organization names none. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none. | Name the workspace with the bma-workspace-id header. |
| 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 404 | not_found_error | not_found | No live skill with this ID exists in the request workspace (unknown, malformed, deleted, or of another workspace). | Check the ID and the organization or workspace it belongs to; do not retry the same request. |
curl -sS "$BMA_BASE_URL/v1/skills/skl_agq7qo75pb6s5gqqjnxy4li4a4/versions/latest/content" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-o content.bin"<string>"{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}Headers
Path Parameters
Response
The version's zip archive.
The response is of type file.