---
title: "Get a skill"
description: "Get a single skill (must be a preset or owned by the user)."
---

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

Path: AI Gateway API › Skills

`GET /skills/{skill_id}`

Get a single skill (must be a preset or owned by the user).

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `skill_id` (`get_skill.path.skill_id`; string, required)

## Header parameters

- `X-On-Behalf-Of` (`get_skill.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`get_skill.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`
- `X-App-Id` (`get_skill.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://truememory-api.mvstg.com/skills/<skill_id>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/skills/<skill_id>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-api.mvstg.com/skills/<skill_id>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "id": "string",
  "user_id": "string",
  "app_ids": [
    "string"
  ],
  "key": "string",
  "name": "string",
  "description": "string",
  "prompt": "string",
  "category": "string",
  "categories": [
    {
      "id": "string",
      "name": "string"
    }
  ],
  "icon": "string",
  "argument_hint": "string",
  "allowed_tools": [
    "string"
  ],
  "metadata": {},
  "use_case": "string",
  "detection_patterns": [
    "string"
  ],
  "license": "string",
  "compatibility": "string",
  "is_preset": true,
  "is_active": true,
  "sort_order": 0,
  "forked_from_skill_id": "string",
  "usage_count": 0,
  "last_used_at": "2019-08-24T14:15:22Z",
  "parent_synced_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "app_id": "string"
}
```

- `id` (`get_skill.response.200.id`; string, required)
- `user_id` (`get_skill.response.200.user_id`; any of, required) — Owner user_id, NULL for presets.
  - any of: `string`, `null`
- `app_ids` (`get_skill.response.200.app_ids`; any of, required) — Apps this skill is assigned to. NULL means all apps (global/unscoped).
  - any of: `array<string>`, `null`
- `key` (`get_skill.response.200.key`; string, required)
- `name` (`get_skill.response.200.name`; string, required)
- `description` (`get_skill.response.200.description`; any of, required)
  - any of: `string`, `null`
- `prompt` (`get_skill.response.200.prompt`; string, required)
- `category` (`get_skill.response.200.category`; any of, required) — Freeform grouping label (legacy string). Distinct from `categories`.
  - any of: `string`, `null`
- `icon` (`get_skill.response.200.icon`; any of, required)
  - any of: `string`, `null`
- `argument_hint` (`get_skill.response.200.argument_hint`; any of, required)
  - any of: `string`, `null`
- `allowed_tools` (`get_skill.response.200.allowed_tools`; array<string>, required)
- `metadata` (`get_skill.response.200.metadata`; object, required)
- `is_preset` (`get_skill.response.200.is_preset`; boolean, required)
- `is_active` (`get_skill.response.200.is_active`; boolean, required)
- `sort_order` (`get_skill.response.200.sort_order`; integer, required)
- `forked_from_skill_id` (`get_skill.response.200.forked_from_skill_id`; any of, required)
  - any of: `string`, `null`
- `usage_count` (`get_skill.response.200.usage_count`; integer, required) — Global invocation count, bumped via POST /skills/{id}/usage.
- `last_used_at` (`get_skill.response.200.last_used_at`; any of, required) — When the skill was last invoked, NULL if never.
  - any of: `string`, `null`
- `parent_synced_at` (`get_skill.response.200.parent_synced_at`; any of, required) — For forks: the preset updated_at this fork is synced to. The fork is stale when its preset's updated_at is newer. NULL for non-forks.
  - any of: `string`, `null`
- `created_at` (`get_skill.response.200.created_at`; string, required)
  - format `date-time`
- `updated_at` (`get_skill.response.200.updated_at`; string, required)
  - format `date-time`
- `app_id` (`get_skill.response.200.app_id`; any of, required) — DEPRECATED, read app_ids instead. Legacy single-app scalar derived from app_ids for pre-multi-app consumers: the first app id, or null for all apps. Lossy for multi-app skills.
  - any of: `string`, `null`
- `categories` (`get_skill.response.200.categories`; array<object>, optional) — Category entities assigned via the registry. Returned by the list endpoints, the single-skill reads (user and admin) and PUT /admin/skills/{skill_id}/categories; omitted by writes.
  - `id` (`get_skill.response.200.categories.id`; string, required)
  - `name` (`get_skill.response.200.categories.name`; string, required)
- `use_case` (`get_skill.response.200.use_case`; any of, optional) — When this skill applies, in natural language. Read by skill selection.
  - any of: `string`, `null`
- `detection_patterns` (`get_skill.response.200.detection_patterns`; any of, optional) — Example utterances that should invoke this skill.
  - any of: `array<string>`, `null`
- `license` (`get_skill.response.200.license`; any of, optional) — SKILL.md `license`: a license name, or the file in the skill that holds it.
  - any of: `string`, `null`
- `compatibility` (`get_skill.response.200.compatibility`; any of, optional) — SKILL.md `compatibility`: what the skill needs to run (product, packages, network).
  - any of: `string`, `null`

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`get_skill.response.422.detail`; array<object>, optional)
  - `loc` (`get_skill.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`get_skill.response.422.detail.msg`; string, required)
  - `type` (`get_skill.response.422.detail.type`; string, required)
  - `input` (`get_skill.response.422.detail.input`; unknown, optional)
  - `ctx` (`get_skill.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/skills/get/index.md
