# List a tool's pin changes

GET

/v1/tools/{toolId}/pin-history

```sh
curl --request GET \
  --url 'https://example.com/v1/tools/example/pin-history?limit=25' \
  --header 'Authorization: Bearer <token>'
```

Every pin and unpin of the item, newest first: what each scope pinned before and after, who asked and why.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.3.1/reference/api.md#bearerauth)**

## Parameters

### Path Parameters

**toolId**

required

string

ToolId — dotted namespace (`acme.lookup-order`).

### Query Parameters

**limit**

integer

default: 25 >= 1 <= 100

1..100. Default 25.

**cursor**

string

Where the previous page ended: its `nextCursor`, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise `400 bad-input`, and the list starts again without it. Absent → first page.

## Responses

### 200

Page of pin changes.

application/json

object

**data**

required

Array\<object>

One change of a scope’s pin, kept for good: what was pinned before, what is after, who asked and why.

object

**id**

required

string format: uuid

**itemId**

required

string

**scope**

required

One of: discriminator: kind

- **object**

  The whole tenant.

  object

  **kind**

  required

  string

  Allowed values: tenant

- **object**

  An org’s projects.

  object

  **kind**

  required

  string

  Allowed values: org

  **orgId**

  required

  string format: uuid

- **object**

  One project.

  object

  **kind**

  required

  string

  Allowed values: project

  **projectId**

  required

  string format: uuid

**action**

required

string

Allowed values: pin unpin

**fromVersion**

required

The scope’s own pin before; null when it had none.

string | null

**toVersion**

required

The scope’s own pin after; null after an unpin.

string | null

**requestedBy**

required

Who pinned or unpinned: a user, or a service token.

object

**kind**

required

string

Allowed values: user service

**id**

required

string

**reason**

string

**createdAt**

required

string format: date-time

**hasMore**

required

boolean

**nextCursor**

string

##### Example

```json
{
  "data": [
    {
      "scope": {
        "kind": "tenant"
      },
      "action": "pin",
      "requestedBy": {
        "kind": "user"
      }
    }
  ]
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 503

The database was too busy to answer in time (`database-busy`); `Retry-After` (whole seconds) says when to try again.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`GET /v1/tools/{toolId}`: Fetch a tool manifest (latest active version)](https://docs.kindgi.com/v0.3.1/reference/api/operations/toolsget.md)
- [`GET /v1/tools/{toolId}/versions`: List all versions of a tool](https://docs.kindgi.com/v0.3.1/reference/api/operations/toolslistversions.md)
- [`GET /v1/tools/{toolId}/versions/{version}`: Fetch a specific tool version](https://docs.kindgi.com/v0.3.1/reference/api/operations/toolsgetversion.md)
- [`POST /v1/tools/{toolId}/versions/{version}/unregister`: Unregister a specific tool version](https://docs.kindgi.com/v0.3.1/reference/api/operations/toolsunregister.md)
- [Error code `database-busy`](https://docs.kindgi.com/v0.3.1/reference/errors.md#database-busy)
- [Every error code](https://docs.kindgi.com/v0.3.1/reference/errors.md)
