FarmOps Public API

Alliance imports/exports and read-only server statistics.

Quick start

# 1. Create an alliance key in alliance settings, or a read-only
#    server key from the server's "API Access" page.
#    Keys are bound to exactly one alliance or server.
# 2. Export power history as CSV:
curl -H "Authorization: Bearer fops_live_<your-key>" \
     "https://www.lastwar.farm/api/v1/alliance/members/power?format=csv"

# 3. Import power values:
curl -X POST -H "Authorization: Bearer fops_live_<your-key>" \
     -H "Content-Type: application/json" \
     -d '{"entries":[{"name":"PlayerOne","power":12500000}]}' \
     https://www.lastwar.farm/api/v1/alliance/members/power

# 4. List server players with a server-scoped key:
curl -H "Authorization: Bearer fops_live_<server-key>" \
     "https://www.lastwar.farm/api/v1/server/players?page=1&pageSize=100"

To use the Postman collection: download it and import via File → Import in the Postman desktop or web app. Calls return AUTO_SYNC_REQUIRED when alliance Auto Sync is inactive, or TRIAL_EXPIRED when the key's tenant lacks active Pro access.