---
title: "Star a library item (skill or mcp)"
method: POST
path: "/agents/library/{item_kind}/{item_id}/star"
tags: ["Agents"]
---

# Star a library item (skill or mcp)

`POST /agents/library/{item_kind}/{item_id}/star`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/agents/library/{item_kind}/{item_id}/star`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/agents/library/:item_kind/:item_id/star/post.ts> (a function with typed inputs; its response is checked against the schema)

Marks the calling user as having starred this library item. Only users who have already installed the item are eligible — calls from non-installed users return 403. Idempotent: re-starring is a no-op. Returns the new aggregate star_count.

## Path parameters

- `item_kind` 'skill' | 'mcp', required
- `item_id` string, required

## Response `200`

Star recorded

- object
  - `item_kind` string
  - `item_id` string
  - `is_starred_by_me` boolean
  - `star_count` integer

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `403`: Caller has not installed this item; not eligible to star.
- `500`: Internal server error
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
