Allmine API
Notifications

Cihaz token kaydet veya güncelle

**Production uyarisi:** Bu endpoint veri degistirir veya operasyon tetikleyebilir. API Playground icinde Production server seciliyse gercek production verisi etkilenir; test icin Development server kullanin. Kullanıcının cihaz tokenını kaydeder veya günceller. Token null gönderilirse sadece timezone veya Live Activity push-to-start token bilgisi güncellenir. Push notification gönderimi için gereklidir. Token opsiyoneldir - kullanıcı izin vermeyebilir.

POST
/api/v1/notifications/device-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.

Kullanıcının cihaz tokenını kaydeder veya günceller. Token null gönderilirse sadece timezone veya Live Activity push-to-start token bilgisi güncellenir. Push notification gönderimi için gereklidir. Token opsiyoneldir - kullanıcı izin vermeyebilir.

Authorization

JWT-auth
AuthorizationBearer <token>

Paste the JWT access token without the Bearer prefix.

In: header

Request Body

application/json

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/device-token" \  -H "Content-Type: application/json" \  -d '{    "token": "sample",    "platform": "ios",    "deviceId": "iphone-14-pro",    "timezone": "Europe/Istanbul",    "liveActivityPushToStartToken": "push_to_start_token_value"  }'
{
  "isSuccess": true,
  "statusCode": 200,
  "data": {
    "success": true
  },
  "errors": [],
  "timestamp": "2026-05-22T16:11:27.083Z"
}
{
  "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"
}