Skip to content

Get Skill Version

skills.versions.retrieve(version, **kwargs) -> SkillVersion { id, created_at, description, 4 more }
GET/skills/{skill_id}/versions/{version}

Get Skill Version

ParametersExpand Collapse
skill_id: String
version: String

The version number to retrieve.

ReturnsExpand Collapse
class SkillVersion { id, created_at, description, 4 more }
id: String

Unique identifier for the skill version.

created_at: Integer

Unix timestamp (seconds) for when the version was created.

description: String

Description of the skill version.

name: String

Name of the skill version.

object: :"skill.version"

The object type, which is skill.version.

skill_id: String

Identifier of the skill for this version.

version: String

Version number for this skill.

Get Skill Version

require "openai"

openai = OpenAI::Client.new(api_key: "My API Key")

skill_version = openai.skills.versions.retrieve("version", skill_id: "skill_123")

puts(skill_version)
{
  "id": "id",
  "created_at": 0,
  "description": "description",
  "name": "name",
  "object": "skill.version",
  "skill_id": "skill_id",
  "version": "version"
}
Returns Examples
{
  "id": "id",
  "created_at": 0,
  "description": "description",
  "name": "name",
  "object": "skill.version",
  "skill_id": "skill_id",
  "version": "version"
}