# Get one toolbox skill version with its text

> Source: https://elaichi.ai/docs/api-reference/toolboxes/toolbox/gettoolboxskillversion/

`GET /toolbox/{id}/skill-version/{versionId}`

Resource: **Toolbox** · API: **Toolboxes**

## Path parameters

- **`id`** _(string, required)_
  Stored toolbox id (`tbx_…`).
- **`versionId`** _(string, required)_
  Version id (`skv_…`).

## Response body

- **`id`** _(string)_
  Version id (`skv_…`).
- **`kind`** _(string)_
  `written`: new text. `reaffirmed`: the same text saved again ("still accurate"). `cleared`: the skill was removed. `copied`: a toolbox stamped from a template started with its skill.
  Allowed: `written`, `reaffirmed`, `cleared`, `copied`
- **`excerpt`** _(string,null)_
  The opening of the text as one plain line, at most 200 code points. Null for `cleared`.
- **`char_count`** _(integer)_
  Length in Unicode code points; 0 for `cleared`.
- **`author`** _(string,null)_
  Who made this write (`usr_…`).
- **`author_label`** _(string,null)_
  Their name, else email. Null beside a non-null `author`: no longer a member.
- **`origin_template_id`** _(string,null)_
  `copied` rows: the template it came from.
- **`origin_template_name`** _(string,null)_
  Its current name; null once deleted.
- **`created_at`** _(string)_
- **`is_current`** _(boolean)_
  True on the newest version — the text the resource holds now.
- **`matches_current`** _(boolean)_
  True when this version's text equals the resource's current skill (restoring it would change nothing). Not the same as `is_current`: a later "still accurate" save repeats an older version's text, and both match.
- **`skill`** _(string,null)_
  The full text of this version; null for `cleared`.

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/toolbox/<id>/skill-version/<versionId>' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/toolbox/<id>/skill-version/<versionId>', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/toolbox/<id>/skill-version/<versionId>"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())
```
