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.

Create Campaign

Base path: /api/v1/admin/ads

Overview

Create, update and manage advertising campaigns for banners and placements.
Campaign creation requires ADMIN scope; posting large budgets without campaign caps may trigger moderation.

POST /api/v1/admin/ads/campaigns

Create a campaign.
curl --request POST \
  --url https://api.foodsave.kz/api/v1/admin/ads/campaigns \
  -H 'Authorization: Bearer $ADMIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"name":"May promotions","placements":["home","checkout"],"budget":10000}'
{
  "id": "789",
  "name": "May promotions",
  "status": "DRAFT"
}
id
string
status
string

Errors

CodeMeaningHow to fix
400BAD_REQUESTValidate body fields
401UNAUTHORIZEDUse admin token
403FORBIDDENMissing admin role