Alliance Diplomacy
Alliances can form official diplomatic relations with each other. A relation has one of four statuses: WAR, ALLY, NAP (Non-Aggression Pact), or NEUTRAL. Only the alliance’s diplomats — its Host and Vice Hosts (see Roles) — can propose, accept, decline, break — or declare.
Relation lifecycle
- A diplomat (Host or Vice Host) proposes a relation to another alliance.
- A diplomat of the other alliance accepts (or declines) the proposal.
- Ending a relation is deliberately narrow — see Ending a relation.
A relation is pending until accepted (accepted_at is null). Both pending and accepted relations appear in the list.
War is the exception: it is declared, never proposed. Nobody consents to being invaded, so a declaration is unilateral and takes effect on a timer — see War declarations. Proposing WAR returns 400.
Ending a relation
A pact cannot simply be broken. The only way out of an accepted ALLY or NAP pact is to declare war, which replaces it — and the pact keeps protecting both sides until that declaration takes effect. Calling break on a live pact returns 400.
A declared war cannot be called off before it takes effect. During the declaration delay the war is pending and break returns 400. Otherwise a diplomat could declare and immediately cancel, which would reduce the notice period to nothing.
Break ends an effective war — that is how peace is made. The relation is removed, the two alliances go back to holding no relation at all (neutral), and both Hosts get a war_ended event. Neutrals may attack each other freely, so peace is a diplomatic state, not a shield: sign a NAP if you want one.
A NEUTRAL row may also be broken (it protects nobody), and a pending proposal is removed with decline, not break.
Who you can attack
This is the whole rule, and it is enforced in one place: when you dispatch an attack.
| Target | Attack allowed? |
|---|---|
| A barbarian settlement | Always. Barbarians are permanently at war with everyone. |
| A player in no alliance, or in an alliance you hold no relation with | Yes. Neutral players can be attacked at any time — no declaration needed. |
A player in an alliance you hold a NEUTRAL relation with, or one whose pact with you has lapsed | Yes. NEUTRAL is a recorded relation, not a protection, and an expired pact protects nobody. |
| A member of your own alliance | Never. |
A member of an alliance you hold an accepted ALLY or NAP pact with | No — declare war first (the pact protects them until the declaration takes effect). An expired pact (expires_at in the past) protects nobody, and a pending proposal protects nobody either. |
| A member of an alliance whose pact with you a war declaration has just replaced, before that declaration takes effect | No, for either side — the pact’s notice period is still running. |
| A member of an alliance you have declared war on that you held no pact with, before the declaration takes effect | Yes. You could already attack them, and the declaration changes nothing until it takes effect. |
| A member of an alliance you are effectively at war with | Yes. |
| A player under a truce | Never, while it lasts. |
| Anyone at all, while you are under a truce | Never — a truced lord may only attack barbarians. |
Two more rules that have not changed: a town under beginner or post-attack protection cannot be attacked, and launching an attack forfeits your own protection.
Scouting and trade are unaffected. A pact, a pending war, and a truce all restrict attacks only — you can still scout a truced or allied player and trade with them. Reinforcements are the other way round: a live ALLY or NAP pact is what lets your members reinforce each other across the two alliances, and when it ends — a war declared, the pact expired or a lapsed one broken, either alliance disbanded — every party standing across the pair is sent home, alive, within a few seconds. A truce changes nothing about support.
The state at dispatch is what counts. Attacks already in the air still land: signing a pact or applying a truce prevents new attacks, it does not turn back marches that are already flying.
War declarations
A declaration is one call by a diplomat (Host or Vice Host), and it does three things:
- Replaces whatever relation you had with that alliance with a
WARrow. This is how a pact is broken by force;replaced_statuson the relation records the pact it replaced. - Sets
effective_at— the war becomes effective after the realm’s war declaration delay. If the declaration replaced a pact, neither side may attack the other until then: that window is the notice the partner is owed, and it cannot be called off (break returns400while it runs). If you held no pact with them, nothing is gated — you could already attack them and still can; the declaration is a formality until it takes effect. - Starts your alliance’s war declaration cooldown, during which your alliance may not declare on anybody — the cooldown is global, not per target.
It also ends every reinforcement between the two alliances at once, not when the war takes effect: parties either side has standing in the other’s towns or valleys are sent home within a few seconds.
Once effective, members of the two alliances can attack each other freely. Ending a war is the break call — see Ending a relation.
The numbers
| Rule | Value | Scope |
|---|---|---|
| War declaration delay | 30 minutes | Per declaration (effective_at) |
| War declaration cooldown | 5 minutes | Per declaring alliance, all targets |
| Truce window | 12 hours | Per player |
| Truce cooldown | 12 hours, counted from the end of the truce | Per player |
Every one of these is realm configuration and is divided by the realm’s time scale, so a realm running at 3× declares war in 10 minutes and truces for 4 hours.
Truces
A truce is your lord’s own status, not a town’s: it covers every town you own. While it lasts, nobody can attack you and you can attack nobody — barbarian settlements excepted.
You enter one by using a Truce Agreement item (kind: truce); there is no way to buy one. It lasts the realm’s truce window, and afterwards you cannot start another until the truce cooldown ends.
You cannot start a truce while you have troops marching — marches cannot be recalled, so wait until every one of them is home. You can start one while attacks are incoming: those attacks still land, but no new ones can be launched at you.
This holds even when a truce and an attack on a player are sent at the same moment, from any of your towns: they never both succeed. Whichever the server handles first goes through, and the other is refused with a 400 — the truce because you have troops marching, or the attack because you are under a truce.
Your truce state is on your own player record, GET /api/v1/players/me/:
| Field | Meaning |
|---|---|
truce_until | When your truce ends. null = you are not under a truce. |
truce_cooldown_until | When you may start the next truce. null = right now. |
A truced player’s towns read diplomatic_status: "Truce" on the public map info, exactly as a protected town does.
Events
| Event | Who gets it |
|---|---|
war_declared | Both alliance Hosts, when the declaration is issued |
war_effective | Both alliance Hosts, when it takes effect |
war_ended | Both alliance Hosts, when an effective war is broken (peace) |
truce_started | You, when your truce begins |
truce_ended | You, when it expires |
Endpoints
List relations
GET /api/v1/alliances/{alliance_id}/diplomacy/Returns all diplomatic relations (pending and accepted) where the alliance is either party, ordered newest-first. Any player of the alliance’s season may call this endpoint. An alliance of another realm or season is answered exactly like an id that names no alliance at all: 200 with an empty array.
Response — array of relation objects:
| Field | Type | Description |
|---|---|---|
id | UUID | Relation ID |
alliance_a_id | UUID | Lexicographically smaller alliance UUID |
alliance_b_id | UUID | Lexicographically larger alliance UUID |
status | string | WAR, ALLY, NAP, or NEUTRAL |
proposed_by_alliance_id | UUID | Which alliance initiated |
accepted_at | datetime | null | Set when accepted; null while pending. A war declaration sets it itself. |
expires_at | datetime | null | Optional expiry (e.g. timed NAP) |
effective_at | datetime | null | WAR only: when attacks open. In the future = the war is pending. null on every other status (and on wars declared before this rule existed, which are already effective). |
replaced_status | string | null | WAR only: the relation this declaration replaced (ALLY/NAP), or null when it replaced no pact. A pending war only blocks attacks when this names a pact. |
created_at | datetime | Proposal timestamp |
Propose a relation
POST /api/v1/alliances/{alliance_id}/diplomacy/propose/Auth: Host or Vice Host of the alliance.
Body:
{ "target_alliance_id": "<uuid>", "status": "ALLY", "expires_at": null}status: one ofALLY,NAP,NEUTRAL— notWAR(see below)expires_at: optional ISO-8601 datetime for timed relations
Returns 201 with the new pending relation. Returns 409 if a relation already exists between the pair; 400 if proposing to your own alliance, or if status is WAR (use declare war); 404 if the target alliance is not in your season.
If the other alliance proposes a relation to you at the same moment you propose, whichever the server handles first goes through, and the other is refused with the 409: there is only ever one relation between two alliances. If it declares war on you at the same moment instead, the outcome depends on which the server handles first. If the declaration goes first, your proposal is refused with the 409. If your proposal goes first, the declaration still succeeds: it replaces your pending proposal with its war, exactly as a declaration made a second later would. A proposal made at the same moment the other alliance disbands gets the 404, or is removed with that alliance if it was handled first.
Declare war
POST /api/v1/alliances/{alliance_id}/diplomacy/declare-war/Auth: Host or Vice Host of the alliance.
Body:
{ "target_alliance_id": "<uuid>" }Unilateral — the other side does not accept. Returns 200 with the WAR relation, whose effective_at says when attacks open. Any existing relation with that alliance is replaced.
Returns 400 if the target is your own alliance, if you have already declared war on it or it has already declared war on you (the message says which), or if your alliance’s war_declaration_cooldown_until has not passed; 403/404 if you do not lead the alliance; 404 if the target alliance is not in your season, or if either alliance has been disbanded.
Two alliances that declare war on each other at the same moment get one war, not two: whichever declaration the server handles first goes through, and the other is refused with the 400 saying that alliance has already declared war on yours. Only the declaration that went through starts its alliance’s cooldown. A declaration sent at the same moment as a disband of either alliance follows the same rule: whichever the server handles first goes through, and the other side either gets the 404 or sees the new war removed with the disbanded alliance (see Disband an Alliance).
The cooldown is reported on the alliance itself, as war_declaration_cooldown_until on GET /api/v1/alliances/.
Accept a proposal
POST /api/v1/alliances/{alliance_id}/diplomacy/{relation_id}/accept/Auth: Host or Vice Host of the receiving (non-proposing) alliance only.
Returns 200 with the updated relation (accepted_at is set). Returns 400 if already accepted or if your alliance proposed it. Returns 404 if the proposal no longer exists.
If the other alliance cancels the proposal at the same moment you accept it, whichever the server handles first goes through, and the other is refused: if the cancel went first, your accept gets the 404; if your accept went first, the pact stands and their cancel gets a 400 (see below).
Decline or cancel a proposal
POST /api/v1/alliances/{alliance_id}/diplomacy/{relation_id}/decline/Auth: Host or Vice Host of either party.
Removes a pending proposal. Returns 204 on success; 400 if the relation is already accepted (use break instead). The check uses the relation as it stands when your request is handled.
If the other alliance accepts the proposal, or declares war on you, at the same moment you decline it, whichever the server handles first goes through, and the other is refused: if their accept or declaration went first, you get the 400 and the pact or war stays; if your decline went first, the proposal is gone, their accept gets a 404, and their declaration lands on a pair with no relation.
Break an accepted relation
POST /api/v1/alliances/{alliance_id}/diplomacy/{relation_id}/break/Auth: Host or Vice Host of either party.
Ends an effective war (making peace, and logging war_ended for both Hosts) or removes a NEUTRAL row. Returns 204 on success.
Returns 400 for everything else — see Ending a relation:
- the relation is still pending (use decline),
- it is a live
ALLY/NAPpact (declare war instead), - it is a war that has not taken effect yet.
The check uses the relation as it stands when your request is handled. If the other alliance declares war at the same moment you break a NEUTRAL row or an expired pact, whichever the server handles first goes through, and the other is refused or finds the relation changed: if the declaration went first, you get the 400 for a pending war and the declaration stands; if your break went first, the row is removed and their declaration lands on a pair with no relation (it replaced no pact, so it gates nothing while pending). If two of your diplomats break the same relation at once, one gets 204, the other gets 404, and war_ended is logged once.