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.

Authentication

FoodSave uses JWT Bearer tokens (API keys issued from the Dashboard) for server-to-server and admin workflows.

Get credentials

  1. Sign in to FoodSave Dashboard as an admin.
  2. Navigate to Integrations → API Keys.
  3. Create a key, scope it (e.g., ads:read, orders:write) and copy the token once — store in secrets.

How to pass credentials

Add an HTTP header:
Authorization: Bearer <API_KEY>

Code examples

Security best practices

  • Store keys in environment secrets, never embed in client-side code.
  • Use least privilege: create keys with minimal scopes.
  • Rotate keys regularly and audit usage logs.