Get Skill
client.beta.skills.retrieve(stringskillID, SkillRetrieveParams { betas } params?, RequestOptionsoptions?): SkillRetrieveResponse { id, created_at, display_title, 4 more }
/v1/skills/{skill_id}?beta=true
Get Skill
Parameters
skillID: string
Unique identifier for the skill.
The format and length of IDs may change over time.
Returns
Get Skill
TypeScript
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
apiKey: 'my-anthropic-api-key',
});
const skill = await client.beta.skills.retrieve('skill_id');
console.log(skill.id);{
"id": "skill_01JAbcdefghijklmnopqrstuvw",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_title": "My Custom Skill",
"latest_version": "1759178010641129",
"source": "custom",
"type": "type",
"updated_at": "2024-10-30T23:58:27.427722Z"
}Returns Examples
{
"id": "skill_01JAbcdefghijklmnopqrstuvw",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_title": "My Custom Skill",
"latest_version": "1759178010641129",
"source": "custom",
"type": "type",
"updated_at": "2024-10-30T23:58:27.427722Z"
}