Game XP & Progression API
Award XP as players earn it, and read their level from a curve you set — one HTTP call each, from any engine or an AI agent. Idempotent awards so a retry never double-counts.
Award XP, get the level back
POST an XP amount and read back the new total, the level, and whether the player just leveled up — fire a level-up toast on the first time only.
A curve you control
Set the base XP and growth exponent per project; the level is computed from your curve, changeable without a client update.
Idempotent awards
Pass a client event id and a retried award is applied at most once — no double-counting from a flaky network.
Free to start
Unlimited XP awards. You pay only for active players.
A leveling system without a backend
Progression is XP plus a curve: award XP as players do things, and turn the total into a level. Backline progression is exactly that — POST /players/<id>/xp to award, GET /players/<id>/level to read the level from a curve (base XP + growth exponent) you set per project. Awards are idempotent with a client event id, so a retry never double-counts. It works the same from Unity C#, Godot GDScript, a web build, or an AI agent.
Frequently asked questions
How do I add XP and levels to my Unity or Godot game?
Create a free project for an API key, then POST /api/backline/v1/players/<id>/xp with an amount as players earn XP, and GET /players/<id>/level to read their level. Set your curve with PUT /progression/config. Plain HTTP from any engine or an AI agent.
How is the level computed?
From a curve you control: cumulative XP to reach level L is base × (L-1)^exponent. Set base and exponent per project; the API returns the level, the XP into the current level, and the XP needed for the next.
Are XP awards idempotent?
Yes. Pass a client event id with an award and it is applied at most once, so a retry after a flaky network never double-counts.
Is it free?
Yes. XP awards are unlimited and free — you pay only for monthly active players (10,000 free, then $0.01 each).
Can an AI agent set this up?
Yes — awarding XP, reading a level, and configuring the curve are all documented REST calls an AI coding agent can drive end-to-end.