# Get trigger history

`GET https://api.cryptohopper.com/v1/hopper/{id}/triggerhistory`

Part of [Triggers](https://www.cryptohopper.com/api-documentation/api-reference/triggers.md) in the Cryptohopper API reference.

Returns the last 50 times a trigger of the hopper fired, newest first, with the indicator values and actions of each run.

The handler checks no OAuth scope: any valid access token can call it. indicator_values and action_values are JSON-encoded strings.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Hopper ID. |

## Example request

```bash
curl "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/triggerhistory" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": [
        {
            "trigger_id": "12845001",
            "trigger_date": "2026-09-25 11:30:00",
            "indicator_values": "{\"price\":70010.5}",
            "action_values": "{\"setbuyingstatus\":{\"config\":\"0\"}}",
            "cooldown": "1758801000",
            "cooldown_count": "30",
            "cooldown_val": "minutes",
            "name": "Stop buying above 70k",
            "trigger_history_id": "88065001"
        }
    ]
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
