Skip to content

List Skill Versions

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

List Skill Versions

ParametersExpand Collapse
skill_id: String
after: String

The skill version ID to start after.

limit: Integer

Number of versions to retrieve.

minimum0
maximum100
order: :asc | :desc

Sort order of results by version number.

Accepts one of the following:
:asc
:desc
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.

List Skill Versions

require "openai"

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

page = openai.skills.versions.list("skill_123")

puts(page)
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "description": "description",
      "name": "name",
      "object": "skill.version",
      "skill_id": "skill_id",
      "version": "version"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "list"
}
Returns Examples
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "description": "description",
      "name": "name",
      "object": "skill.version",
      "skill_id": "skill_id",
      "version": "version"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "list"
}