Skip to content

Get Skill Version

SkillVersion skills().versions().retrieve(VersionRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/skills/{skill_id}/versions/{version}

Get Skill Version

ParametersExpand Collapse
VersionRetrieveParams params
String skillId
Optional<String> version

The version number to retrieve.

ReturnsExpand Collapse
class SkillVersion:
String id

Unique identifier for the skill version.

long createdAt

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

String description

Description of the skill version.

String name

Name of the skill version.

JsonValue; object_ "skill.version"constant"skill.version"constant

The object type, which is skill.version.

String skillId

Identifier of the skill for this version.

String version

Version number for this skill.

Get Skill Version

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.skills.versions.SkillVersion;
import com.openai.models.skills.versions.VersionRetrieveParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        VersionRetrieveParams params = VersionRetrieveParams.builder()
            .skillId("skill_123")
            .version("version")
            .build();
        SkillVersion skillVersion = client.skills().versions().retrieve(params);
    }
}
{
  "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"
}