History
Get a trail change
GET /api/v1/trail-changes/{id} — Get a trail change.

GET /api/v1/trail-changes/{id}
Retrieve a recorded entity change using the identifier returned by its change collection.
Authentication
An API key is required for external integrations. Send X-API-Key: YOUR_API_KEY or Authorization: Bearer YOUR_API_KEY. Authentication explains public origin and secret IP restrictions.
Parameters
Path parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Change ID from the list endpoint. |
No resource-specific query parameters.
Example request
curl -H "X-API-Key: $ICECOAST_API_KEY" 'https://api.icecoast.us/api/v1/trail-changes/123'
const response = await fetch('https://api.icecoast.us/api/v1/trail-changes/123', {
headers: { 'X-API-Key': process.env.ICECOAST_API_KEY },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();
console.log(result);
import os
import requests
response = requests.get(
'https://api.icecoast.us/api/v1/trail-changes/123',
headers={'X-API-Key': os.environ['ICECOAST_API_KEY']},
timeout=30,
)
response.raise_for_status()
print(response.json())
JavaScript above is a server-side Node.js example. Browser clients must use an origin-restricted public key; never bundle a secret key.
Response
Success is HTTP 200 with success: true, data and meta.version: "v1".
The following is a synthetic response excerpt illustrating the verified structure. Names, IDs, counts and dates are examples, not live resort data. Optional fields are omitted.
{
"success": true,
"data": {
"id": 123,
"mountain": "00000000-0000-4000-8000-000000000001",
"trail_name": "Example Trail",
"zone": "Main",
"fields": {
"open": {
"from": false,
"to": true
}
},
"run_id": null,
"source": "example",
"created_at": "2026-12-04T12:00:00.000Z"
},
"meta": {
"version": "v1"
}
}
Resource fields
| Field | Type | Meaning |
|---|---|---|
id | integer / string | See the data model and returned resource. |
mountain | string | Mountain UUID. |
trail_name | string | Trail name, on trail changes. |
lift_name | string | Lift name, on lift changes. |
zone | string / null | Zone. |
fields | object | Changed-field payload; preserve its returned structure. |
run_id | string / null | Associated ingestion run if recorded. |
source | string / null | Recorded source label. |
created_at | string | Change-record timestamp. |
Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See data semantics.
Errors
| HTTP status | Meaning |
|---|---|
| 400 | Invalid request parameters where validated. |
| 401 | Missing, invalid, expired or revoked API key. |
| 403 | Origin/IP restriction or endpoint key-type restriction denied the request. |
| 404 | Trail change not found |
| 429 | Monthly API allowance exhausted when a key is used. |
| 500 | The resource could not be read. |
| 503 | API-key/quota verification unavailable. |
JSON errors may use error or message; the global handler maps validation/runtime errors to success: false, error (name) and message (details). See error handling.
