Allmine API
Notifications

Register runtime Live Activity session token

**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Mobil uygulama, remote-start sonrasinda olusan runtime Live Activity token bilgisini backend’e kaydeder. Bu token backend’in cancelled, ready, started ve expired anlarinda end push gonderebilmesi icin gereklidir.

POST
/api/v1/notifications/live-activity-sessions

Production uyarisi: Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin.

Mobil uygulama, remote-start sonrasinda olusan runtime Live Activity token bilgisini backend’e kaydeder. Bu token backend’in cancelled, ready, started ve expired anlarinda end push gonderebilmesi icin gereklidir.

Authorization

JWT-auth
AuthorizationBearer <token>

Paste the JWT access token without the Bearer prefix.

In: header

Request Body

application/json

Runtime Live Activity session bilgileri

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/notifications/live-activity-sessions" \  -H "Content-Type: application/json" \  -d '{    "streamId": "65f000000000000000000001",    "deviceId": "iphone-15-pro-max",    "liveActivityToken": "live_activity_runtime_token",    "activityId": "live-activity-123"  }'
{
  "success": true
}
{
  "isSuccess": false,
  "statusCode": 400,
  "data": null,
  "errors": [
    "Validation failed"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 401,
  "data": null,
  "errors": [
    "Authentication required"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 403,
  "data": null,
  "errors": [
    "Insufficient permissions"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 404,
  "data": null,
  "errors": [
    "Resource not found"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}
{
  "isSuccess": false,
  "statusCode": 409,
  "data": null,
  "errors": [
    "Resource already exists or cannot be changed in its current state"
  ],
  "timestamp": "2026-01-15T10:30:00.000Z"
}