SPB Git

Repository Public

retrieve.md 2.0 KB 92 lines markdown

1---2title: Get Skill Version3url: https://platform.claude.com/docs/en/api/skills/versions/retrieve4---56# Get Skill Version78**GET** `/v1/skills/{skill_id}/versions/{version}`910Get Skill Version1112## Path parameters1314- `skill_id: string`1516  Unique identifier for the skill.1718  The format and length of IDs may change over time.1920- `version: string`2122  Identifies the skill version: a version ID, or the literal `latest` for the skill's most recent version.2324  Requests carrying the `skills-2025-10-02` beta header address versions by their Unix epoch timestamp instead (e.g., "1759178010641129").2526## Headers2728- `"anthropic-workspace-id": optional string`2930## Returns3132- `SkillVersion object`3334  - `type: "skill_version"`3536    Object type.3738    For Skill Versions, this is always `"skill_version"`.3940    default: skill_version4142  - `id: string`4344    Unique identifier for this Skill Version. The id addresses the version in45    paths and pins it in references.4647  - `created_at: string`4849    ISO 8601 timestamp of when the skill was created.5051    format: date-time5253  - `description: string`5455    Description of the skill version.5657    This is extracted from the SKILL.md file in the skill upload.5859  - `name: string`6061    The Skill's immutable kebab-case slug, set at creation from the first62    upload's SKILL.md frontmatter `name` (or its enclosing directory). Every63    later upload must resolve to the same value. Also the top-level directory64    of the Skill's mounted files and the base name of a downloaded archive.6566  - `skill_id: string`6768    Unique identifier for the skill.6970    The format and length of IDs may change over time.7172## Example7374```bash75curl https://api.anthropic.com/v1/skills/$SKILL_ID/versions/$VERSION \76    -H 'anthropic-version: 2023-06-01' \77    -H "X-Api-Key: $ANTHROPIC_API_KEY"78```7980### Response (200)8182```json83{84  "id": "id",85  "created_at": "2024-10-30T23:58:27.427722Z",86  "description": "description",87  "name": "name",88  "skill_id": "skill_01JAbcdefghijklmnopqrstuvw",89  "type": "skill_version"90}91```92
Files main
Menu

Theme