## Get Skill

`Skill skills().retrieve(SkillRetrieveParamsparams = SkillRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

**get** `/skills/{skill_id}`

Get a skill by its ID.

### Parameters

- `SkillRetrieveParams params`

  - `Optional<String> skillId`

### Returns

- `class Skill:`

  - `String id`

    Unique identifier for the skill.

  - `long createdAt`

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

    `format: unixtime`

  - `String defaultVersion`

    Default version for the skill.

  - `String description`

    Description of the skill.

  - `String latestVersion`

    Latest version for the skill.

  - `String name`

    Name of the skill.

  - `JsonValue; object_ "skill"constant`

    The object type, which is `skill`.

    - `SKILL("skill")`

### Example

```java
package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.skills.Skill;
import com.openai.models.skills.SkillRetrieveParams;

public final class Main {
    private Main() {}

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

        Skill skill = client.skills().retrieve("skill_123");
    }
}
```

#### 200 — Example

```json
{
  "id": "id",
  "created_at": 0,
  "default_version": "default_version",
  "description": "description",
  "latest_version": "latest_version",
  "name": "name",
  "object": "skill"
}
```
