Skip to content
Primary navigation

Download a skill version zip bundle.

client.skills.versions.content.retrieve(stringversion, ContentRetrieveParams { skill_id } params, RequestOptionsoptions?): Response
GET/skills/{skill_id}/versions/{version}/content

Download a skill version zip bundle.

ParametersExpand Collapse
version: string

The skill version number.

params: ContentRetrieveParams { skill_id }
skill_id: string

The identifier of the skill.

ReturnsExpand Collapse
unnamed_schema_4 = Response

Download a skill version zip bundle.

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});

const content = await client.skills.versions.content.retrieve('version', { skill_id: 'skill_123' });

console.log(content);

const data = await content.blob();
console.log(data);
Returns Examples