Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.foodsave.kz/llms.txt

Use this file to discover all available pages before exploring further.

Device API

Base path: /api/v1/notifications/devices

Overview

Register mobile and web devices for push notifications.

POST /api/v1/notifications/devices

Register an FCM device.
curl --request POST \
  --url https://api.foodsave.kz/api/v1/notifications/devices \
  -H 'Authorization: Bearer $USER_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"fcmToken":"fcm-abc","platform":"android","locale":"ru-KZ"}'
{ "id":"d-1", "platform":"android", "locale":"ru-KZ" }

Errors

CodeMeaningHow to fix
400INVALID_FCM_TOKENRegenerate the device token
401UNAUTHORIZEDProvide a valid JWT