> ## Documentation Index
> Fetch the complete documentation index at: https://thehyperstack.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Skills

### Description

Finds [skills](https://thehyperstack.com/docs/tutorials/credential-setup/skills.md) to link to a group's tags: ESCO skills, O\*NET skills and your own skill lists. It is the same search as the skill picker in the Studio. It returns the best 20 matches, best first.

To link a result, use it in `skills` on [Create](https://thehyperstack.com/docs/api-guide/create-credential-group.md) or [Update Credential Group](https://thehyperstack.com/docs/api-guide/update-credential-group.md): send its `id`, or its `framework.key` and `code`. For one of your own lists, you can send `framework.id` as the `framework`.

This endpoint accepts `GET` only, and reads its parameters from the query string. `POST` returns `405`.

ESCO and O\*NET skills need the plan's skills alignment. Your own lists need the plan's custom skills. Skills alignment and custom skills are on every plan, so `feature_unavailable` means your organization has no active plan.

### Headers

**Authorization** `string` *required*

Your API key: `Bearer YOUR_API_KEY`. Create a key in the Studio under **Settings → Developers**.

### Query Parameters

**q** `string` *required*

The words to search for, up to 200 characters. With fewer than 2 characters, `results` is an empty list.

**framework** `string` (default: all)

Where to search: `esco`, `onet`, `org` (your own skill lists) or `all`. `all` searches every one your plan includes.

**language** `string` (default: en)

The language of ESCO names and descriptions, as a [language code](https://thehyperstack.com/docs/tutorials/credential-setup/credential-languages.md#language-codes) such as `fr`. ESCO has English, Arabic, German, Spanish, French, Irish, Italian and Portuguese. In other languages, and for O\*NET, names are in English. Your own skills show as you typed them.

### Success Response Fields

**success** `boolean`

`true` when the search ran.

**results** `array[object]`

Up to 20 skills, best match first.

**skill**

**id** `string`

The skill's ID. Send it as `id` in `skills`.

**framework** `object`

Where the skill is from: `key` (`esco`, `onet` or `org`), `id` and `name` (`ESCO`, `O*NET` or your list's name). O*NET adds `version`, the O*NET release.

**code** `string`

The ESCO code, the O\*NET element ID (such as `2.C.1.a`), or your own code. Can be empty for your own skills.

**name** `string`

The skill's name, in `language` when the framework has it.

**description** `string`

The skill's description. Can be empty.

**url** `string`

The skill's web address, or its public skill page.

**language** `string`

The language of `name` and `description`. Empty for your own skills.

**chip** `string`

The name to use as the tag. Commas are made spaces.

**outdated** `boolean`

`true` when a new ESCO or O\*NET version dropped the skill.

**outdated\_in** `string`

The version that dropped it, or an empty string.

**retired** `boolean`

`true` when you retired the skill in your list.

**kind** `string`

O\*NET only: `skill`, `knowledge`, `ability` or `software`.

**page** `string`

O*NET only: the skill's page on O*NET OnLine.

The search shows only skills that can be linked, so `outdated` and `retired` are `false` in its results.

### Responses

```json 200 Success theme={null}
{
  "success": true,
  "results": [
    {
      "id": "Vb7Kq2Xm9PzLr4Tw",
      "framework": { "key": "org", "id": "Hd3Nw8Lc5QeYt1Za", "name": "Acme competencies" },
      "code": "ACM-12",
      "name": "Cloud security",
      "description": "Protects workloads and data in public clouds.",
      "url": "https://hyperstack.id/acme-academy/skills/Vb7Kq2Xm9PzLr4Tw",
      "language": "",
      "chip": "Cloud security",
      "outdated": false,
      "outdated_in": "",
      "retired": false
    }
  ]
}
```

```json 400 Unknown framework theme={null}
{
  "success": false,
  "error": "framework must be esco, onet, org or all",
  "error_code": "invalid_framework"
}
```

```json 400 Unknown language theme={null}
{
  "success": false,
  "error": "language must be one of en, ar, de, es, fr, ga, hi, it, ko, pt, ru, sw, ta, zh-CN",
  "error_code": "invalid_language"
}
```

```json 400 Query too long theme={null}
{
  "success": false,
  "error": "q can have up to 200 characters",
  "error_code": "invalid_query"
}
```

```json 403 Plan lacks skills theme={null}
{
  "success": false,
  "error": "Your plan doesn't include skills alignment.",
  "error_code": "feature_unavailable"
}
```

```json 403 Invalid key theme={null}
{
  "detail": "Invalid token or organization not found"
}
```

```bash theme={null}
curl "https://api.thehyperstack.com/v1/skills?q=cloud%20security&framework=all&language=en" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Then link the result to a tag:

```bash theme={null}
curl -X POST "https://api.thehyperstack.com/v1/group/update/Kq7Zp2LmX9aB" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "skills": [
      { "name": "Cloud security", "id": "Vb7Kq2Xm9PzLr4Tw" },
      { "name": "teamwork" }
    ]
  }'
```

ESCO skills are from ESCO, European Commission. O\*NET results include information from the O\*NET Database by USDOL/ETA, used under the CC BY 4.0 license. O\*NET® is a trademark of USDOL/ETA.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.