Alliances
Alliances let players band together for shared map visibility, coordinated defense, and collective glory. Each realm season can have multiple alliances. A player can only belong to one alliance at a time, and joins one by applying: an Officer or above of that alliance accepts or rejects the application.
The Embassy
Founding or joining an alliance requires an Embassy in one of your towns:
- Applying to join requires a completed Embassy at any level (level 1 or higher) in one of your towns, checked when you apply.
- Founding requires a completed Embassy at level 2 or higher, and costs gold (10,000 in the shipped
free/fastrealms — the exact amount is realm-configured), charged immediately from the qualifying town. If more than one of your towns has a level-2+ Embassy, the town used is your oldest one with a qualifying Embassy; if that specific town can’t afford the cost, the request fails even if a different town of yours could — send gold to your founding town rather than expecting the game to pick a richer one for you.
The Embassy is a normal building — see Buildings for its full cost/build-time table. It carries two per-level tables, both enforced:
alliance_member_limit_per_level— how many members an alliance may hold, read from its host’s best completed Embassy: 10 per level ([10, 20, …, 100]in the shipped realms). See How big an alliance can grow.embassy_garrisons_per_level— how many reinforcing parties a town can host at once, read from that town’s own Embassy: one per level. See Support.
How big an alliance can grow
An alliance’s member cap is
min(max_alliance_members, max(the host's Embassy limit, a Ritual of Pact)):
- The host’s Embassy is the working cap — Evony’s “for an alliance host, each Embassy level raises the alliance member limit (+10 per level)”. The best completed Embassy across all of the host’s towns counts, so a level-2 Embassy (the founding minimum) seats 20, level 5 seats 50, level 10 seats 100.
max_alliance_membersis the realm’s hard ceiling (100 in the shippedfree/fastrealms — Evony’s “up to 100 players”); a realm may set it lower to keep alliances small.- The cap is checked when an application is accepted — not when it is filed, so a full alliance still takes applications for when a seat frees. Two reviewers accepting at the same moment can never overfill the alliance: the second one finds it full. Nobody is ever removed because the host’s Embassy fell: if the host demolishes or loses it, the roster stays as it is, but the alliance cannot accept a single new member until the host has a completed Embassy again (the accept returns
400saying so). Transferring the Host seat to a member with a smaller Embassy has the same effect on future accepts. - An under-construction Embassy (level 0) counts for nothing.
- The Ritual of Pact item (
alliance_pact) lifts the Embassy gate straight to the realm’s ceiling — Evony’s “instantly raises alliance member limit to 100”. Only the Host can use it, it takes no target, and it applies once: a second one on an alliance that already holds a pact returns409rather than being spent for nothing. It never raises the cap pastmax_alliance_members, and it never lowers an Embassy limit that is already larger. Like everything else, it is earned — it is the rarest row on the fortune wheel at 0.172%. - Read the cap rather than guessing it.
GET /api/v1/alliances/{alliance_id}/returnsmember_limit— the number an accept is actually checked against — andpact_member_limit, the pact’s own contribution (nullif none has been used). The paginated alliance list returnspact_member_limitonly;member_limitisnullthere, because computing it needs the Host’s Embassy levels and that would be one query per row.
Create an Alliance
POST /api/v1/alliances/
The player who creates the alliance becomes its Host (see Roles). Alliance names must be 1–64 characters and unique within the season. An optional tag (up to 5 characters) can be provided; it must also be unique within the season. The maximum number of members is set by the Host’s Embassy level, under the realm’s max_alliance_members ceiling — see How big an alliance can grow.
Requires a completed Embassy at level 2 or higher in one of your towns (see The Embassy above); the founding gold cost is deducted from that town on success.
import httpx
response = httpx.post( "http://localhost:8731/api/v1/alliances/", headers={"Authorization": "Bearer your-token-here"}, json={"name": "The Iron Guard", "tag": "IG"},)print(response.json())curl -X POST http://localhost:8731/api/v1/alliances/ \ -H "Authorization: Bearer your-token-here" \ -H "Content-Type: application/json" \ -d '{"name": "The Iron Guard", "tag": "IG"}'const response = await fetch("http://localhost:8731/api/v1/alliances/", { method: "POST", headers: { "Authorization": "Bearer your-token-here", "Content-Type": "application/json", }, body: JSON.stringify({ name: "The Iron Guard", tag: "IG" }),});const alliance = await response.json();Response 201 Created:
{ "id": "uuid", "name": "The Iron Guard", "tag": "IG", "season_id": "uuid", "created_at": "2026-03-25T00:00:00Z", "member_count": 1, "members": [ {"player_id": "uuid", "username": "bold-phoenix-3421", "role": "host"} ]}The tag field is null when no tag was set at creation time.
Errors:
400— You are already a member of an alliance.409— You have a pending application to an alliance: withdraw it first.400— None of your towns has a completed Embassy at level 2 or higher.400— The qualifying town cannot afford the alliance founding gold cost.409— An alliance with that name already exists in this season.409— An alliance with that tag already exists in this season.
List Alliances
GET /api/v1/alliances/
Returns alliances in the current season with their members, ordered by name. Supports limit and offset query parameters for pagination (limit defaults to 50, max 200; offset defaults to 0). Filter with ?search= for a case-insensitive substring match against the name or tag — a client picking a target alliance (to propose a pact, declare war, or apply to) should search rather than page through the whole season. The response uses the standard pagination envelope { "count", "limit", "offset", "results" }, where count is the total number of matching alliances.
response = httpx.get( "http://localhost:8731/api/v1/alliances/", headers={"Authorization": "Bearer your-token-here"},)curl http://localhost:8731/api/v1/alliances/ \ -H "Authorization: Bearer your-token-here"const response = await fetch("http://localhost:8731/api/v1/alliances/", { headers: { "Authorization": "Bearer your-token-here" },});Get Alliance Details
GET /api/v1/alliances/{alliance_id}/
Returns a single alliance with its full member list.
Errors:
404— Alliance not found in the current season.
Your own membership
GET /api/v1/players/me/
Which alliance you are in is not part of the game state
poll — membership only changes when you found one, are accepted into one,
leave one, or are kicked or disbanded out of one, so it is read from your
own player record instead. GET /api/v1/players/me/ returns the record
behind your realm token, carrying alliance_id, alliance_name and
alliance_tag (all null when you are in no alliance), your
truce window, truce_until and
truce_cooldown_until (both null when you have never truced), and the
re-apply bar: departed_alliance_id,
the alliance you most recently left or were kicked from, and
alliance_reapply_at, when you may apply to it again (both null when you
never left one). It works after the season has ended, and it is cheap by
design — one statement past authentication — so it is safe to read on a
slow loop.
{ "id": "your-player-uuid", "season": "season-uuid", "username": "lord_ash", "avatar_id": null, "honor": 120, "medals": 4, "alliance_id": "alliance-uuid", "alliance_name": "Iron Order", "alliance_tag": "IRON", "truce_until": null, "truce_cooldown_until": null, "departed_alliance_id": null, "alliance_reapply_at": null}Read it on a slow loop (the web client re-reads it once a minute) and
again right after any of the actions below; the only changes that can reach
you from outside are an accepted application, a kick and a disband. (GET /api/v1/players/, the
account-level list, carries the same three fields on every profile — see
List Your Players.)
Join an Alliance by application
Joining is by application. You apply; an Officer or above of the alliance accepts or rejects it; until then you may withdraw it. While it is pending you are not a member of that alliance:
- its members can attack you and you can attack them (who you can attack only counts members);
- you cannot read or post to its chat;
- you are not on its roster, and you do not count toward its member cap;
- its members cannot reinforce you, nor you them.
All of that starts the moment the application is accepted.
Apply
POST /api/v1/alliances/{alliance_id}/applications/
Requires a completed Embassy at any level in one of your towns (see The Embassy above). Applying is free — no gold or prestige cost. You may have one pending application at a time, to any alliance. The alliance’s member cap is not checked now: it is checked when the application is accepted (see How big an alliance can grow), so you can apply to a full alliance and wait for a seat.
response = httpx.post( f"http://localhost:8731/api/v1/alliances/{alliance_id}/applications/", headers={"Authorization": "Bearer your-token-here"},)curl -X POST http://localhost:8731/api/v1/alliances/{alliance_id}/applications/ \ -H "Authorization: Bearer your-token-here"await fetch(`http://localhost:8731/api/v1/alliances/${allianceId}/applications/`, { method: "POST", headers: { "Authorization": "Bearer your-token-here" },});Response 201 Created:
{ "id": "application-uuid", "alliance_id": "alliance-uuid", "alliance_name": "The Iron Guard", "alliance_tag": "IG", "player_id": "your-player-uuid", "username": "bold-phoenix-3421", "created_at": "2026-03-25T00:00:00Z"}Errors:
400— You are already in an alliance, or none of your towns has a completed Embassy.400— You left or were kicked from this alliance too recently; the message says when you can apply again.404— Alliance not found in the current season (or disbanded while you applied).409— You already have a pending application. Withdraw it first.
The old POST /api/v1/alliances/{alliance_id}/join/, which made you a member at once, is gone. For one release it still answers 410 Gone, with a message pointing to POST /api/v1/alliances/{alliance_id}/applications/; a later release removes it.
Your application
GET /api/v1/alliances/applications/mine/ returns your pending application in the shape above, or null when you have none. DELETE /api/v1/alliances/applications/mine/ withdraws it (204 No Content; 404 when there is nothing to withdraw — it may have just been accepted or rejected). Withdrawing bars nothing: you may apply again at once, there or anywhere.
You find out how it went from your event log: alliance_application_accepted (you are now a member; GET /api/v1/players/me/ shows the alliance) or alliance_application_rejected (you may apply again — a rejection bars nothing).
Review applications
Officers and above (see Roles) review their alliance’s applications. A 403 names the missing power for a Member, and a 404 answers anyone outside the alliance.
GET /api/v1/alliances/{alliance_id}/applications/— the pending applications, oldest first, in the standard pagination envelope{ "count", "limit", "offset", "results" }(limitdefaults to 50, max 200).POST /api/v1/alliances/{alliance_id}/applications/{application_id}/accept/— the applicant joins as amember. Returns the alliance with its new roster.POST /api/v1/alliances/{alliance_id}/applications/{application_id}/reject/—204 No Content.
Accept errors:
400— The alliance is full — at its host’s Embassy limit / the realm ceiling (Alliance is full (20 of 20 members; the host's Embassy allows 20, the realm at most 100).) or because its host has no completed Embassy at all (Alliance is full: its host has no completed Embassy, so it can hold no more members until one is built.). The application stays pending.403— Your role may not review applications, or the season has ended.404— The application is no longer pending: the applicant withdrew it, another reviewer accepted or rejected it first, or the applicant deleted their account.409— The applicant has since founded an alliance of their own. Reject the application.
Two reviewers accepting different applications for the last seat at the same moment: one gets the seat, the other gets the 400.
Re-applying after a leave or a kick
When you leave an alliance or are kicked from it, you cannot apply to that alliance again for one day of the realm’s time — 24 hours divided by the realm’s time_scale, the same pacing as the war and truce cooldowns (24 hours at canonical pace; 8 hours on a 3× realm). Any other alliance takes your application at once. Only the alliance you left most recently is remembered: departed_alliance_id and alliance_reapply_at on your player record. A disband bars nobody, and neither does a rejected or withdrawn application.
Roles
Every member holds one role on a five-step ladder, lowest first — Evony Age 1’s alliance hierarchy (evony/docs/world-map.md §7: “1 Host, 2 Vice Hosts, 5 Presbyters, 10 Officers, rest Members. Powers stack upward”):
Role (role) | Seats per alliance | May do |
|---|---|---|
member | unlimited (under the Embassy cap) | Post on the board, send and receive support, leave. |
officer | 10 | Everything a member may, plus review applications — list, accept and reject them (Evony’s Officer “invites/accepts applicants”; Restfall has no invitations). |
presbyter | 5 | Change roles of members ranked below them, to roles below their own — a Presbyter makes and unmakes Officers. |
vice_host | 2 | Everything a Presbyter may, plus kick members ranked below them, manage diplomacy (propose, accept, decline, break, declare war) and broadcast to the whole alliance. Makes Presbyters and Officers. |
host | exactly 1 | Everything. Makes Vice Hosts, hands over the Host seat (transfer) and disbands. Cannot leave while anyone else remains. |
The seat counts are realm configuration (alliance_roles.vice_host_seats / presbyter_seats / officer_seats in the realm YAML; the shipped free/fast/test realms carry the canonical 2 / 5 / 10). The Host seat is always exactly one and never “assigned” — it only moves by transfer.
Two rules apply to every rank-sensitive action (changing a role, kicking):
- You must outrank the target. A Vice Host cannot demote or kick the other Vice Host, and nobody outranks the Host.
- You may only hand out roles below your own. A Presbyter cannot make another Presbyter; the Host is the only one who makes Vice Hosts.
A 403 from any alliance action names the role and the power it lacks, e.g. Your alliance role (Officer) may not manage diplomacy.
Change a member’s role
POST /api/v1/alliances/{alliance_id}/members/{target_player_id}/role/ (operation set_alliance_member_role)
{ "role": "presbyter" }role is one of member, officer, presbyter, vice_host (host is rejected at validation — transfer instead). Returns the alliance with its updated roster.
Role changes, transfers and kicks in one alliance are handled one at a time, even when they are sent at the same moment, and each one is judged on the roles in force when the server reaches it. Two promotions into the last free seat: the second gets the seat 400. If your own role is lowered at the same moment, your request is judged by your new role, and may get the 403. If the target leaves at the same moment and their leave goes first, you get the 404.
Errors:
400— You named yourself; the member already holds that role; or every seat of that role is taken (All 2 Vice Host seats are taken in this alliance.).403— Your role may not change roles (Officers and Members), the target is not ranked below you, or the new role is not below your own.404— You or the target are not members of this alliance.422—roleis not an assignable role.
Existing alliances migrated onto this ladder with their former leader as host and everyone else as member.
Leave an Alliance
POST /api/v1/alliances/{alliance_id}/leave/
Members of any rank below Host can leave freely. The Host cannot leave while other members remain — they must disband the alliance or transfer the Host seat first. If the Host is the last member, leaving automatically disbands the alliance, and ends its diplomacy exactly as a disband does: every pact, proposal and war goes with it, and the other alliance’s Host gets a war_ended event for each war that was in effect.
If an application is accepted into your alliance at the same moment you leave it as its last member, whichever the server handles first goes through. If the accept goes first, you are no longer the last member, so the leave is refused with the 400 below; if your leave goes first, the accept gets a 404. The alliance’s pending applications go with it. If another alliance declares war on yours, or proposes a relation to it, at the same moment you leave it as its last member, the same rule as for a disband applies: if your leave goes first, the other call gets a 404; if the other call goes first, your leave removes the new relation with everything else. If the other alliance disbands, or breaks a war with you, at the same moment, the peace is announced once.
Reinforcements go home. A party you have standing in a fellow member’s town — or one of theirs standing in yours — is admitted only because you share the alliance (or your alliance’s pacts): once you leave, it is sent home, alive, within a few seconds. Parties between your own towns stay.
You cannot re-apply to it for a day. After an ordinary departure you cannot apply to this alliance again for one day of the realm’s time.
Leaving voluntarily costs prestige. Every successful leave — an ordinary departure, or a Host’s last-member auto-disband — costs a percentage of your current prestige (10% in the shipped free/fast realms), deducted from your effective total prestige on the season rankings leaderboard. A disband charges every member the same cost, the Host included. Being kicked costs nothing — only leaving of your own accord, or a disband, is penalized.
Errors:
400— The Host cannot leave with members remaining. (No prestige is charged when this happens — nothing actually left.) This includes a leave sent at the same moment the Host hands you the Host seat, when the server handles the transfer first: you are the Host now. If your leave goes first, the transfer gets a404and the Host keeps the seat.404— You are not a member of this alliance, or (as its last member) it has already been disbanded. This includes a leave sent at the same moment as a disband or a kick that the server handled first: you are already out, the leave charges nothing more, and a disband has already charged you the prestige cost of leaving once.
Disband an Alliance
DELETE /api/v1/alliances/{alliance_id}/
Only the Host can disband. All memberships, messages and pending applications are deleted — and so is every diplomatic relation the alliance held: pacts, declarations still inside their delay, and wars in effect. The counterpart’s Host gets a war_ended event for each war that was in effect; a pending declaration announces nothing, because an alliance that no longer exists owes nobody a notice period.
Every member pays the prestige cost of leaving, you included. A disband charges each member, the Host too, what a voluntary leave would cost them: the same percentage of their current prestige (10% in the shipped free/fast realms), deducted from their effective total prestige on the season rankings leaderboard. A member with no prestige pays nothing. A member who leaves on their own at the same moment pays once, whichever the server handles first: if their leave goes first, they paid it then and the disband does not charge them again; if the disband goes first, their leave gets a 404. A member kicked before the disband pays nothing. A disband bars nobody from applying to another alliance afterwards.
Every reinforcing party standing between members — or between a member and a pact partner — is sent home, alive, within a few seconds.
This is the one way an ALLY/NAP pact ends without a war declaration. It is not a free exit: every member, you included, pays the prestige cost of leaving an alliance, and unallied players can be attacked by anyone.
A disband and a diplomatic call on the same alliance never both half-succeed, even when they are sent at the same moment — by another alliance declaring war on yours or proposing a relation, or by one of your own Vice Hosts declaring war. Whichever the server handles first goes through. If the disband goes first, the other call is refused with a 404, as for any alliance that no longer exists. If the other call goes first, the disband still succeeds and removes the new relation with everything else; a declaration made that way was still pending, so it announces nothing. If the other side breaks an effective war with you at the same moment, the peace is announced once, by whichever the server handles first. If the break goes first, it announces the peace to both Hosts, and the disband finds no war left to announce. If the disband goes first, it announces the peace to the other Host, and the break is refused with a 404, because the war is already gone.
Errors:
403— Only the Host can disband.404— You are not a member of this alliance, or it has already been disbanded.
Transfer Leadership
POST /api/v1/alliances/{alliance_id}/transfer-leadership/
Only the current Host can hand the Host seat to another member. The named player must already belong to the alliance, whatever their current role; they become Host and you step down to member. Use this before leaving an alliance you host.
Request body:
{ "new_leader_player_id": "uuid" }requests.post( f"http://localhost:8731/api/v1/alliances/{alliance_id}/transfer-leadership/", headers={"Authorization": f"Bearer {realm_token}"}, json={"new_leader_player_id": new_leader_id},)curl -X POST http://localhost:8731/api/v1/alliances/{alliance_id}/transfer-leadership/ \ -H "Authorization: Bearer $REALM_TOKEN" \ -H "Content-Type: application/json" \ -d '{"new_leader_player_id": "uuid"}'await fetch(`http://localhost:8731/api/v1/alliances/${allianceId}/transfer-leadership/`, { method: "POST", headers: { Authorization: `Bearer ${realmToken}`, "Content-Type": "application/json", }, body: JSON.stringify({ new_leader_player_id: newLeaderId }),});Returns the updated alliance with its roster (the new Host now has role: "host").
An alliance always has exactly one Host. Of two transfers you send at the same moment, the first goes through and the second gets the 403, because you are no longer the Host. A transfer to a member who leaves at the same moment gets the 404 if their leave goes first; if the transfer goes first, their leave is refused instead (Leave).
Errors:
400— You are already the alliance Host.403— Only the Host can transfer leadership.404— You are not a member, or the new Host is not a member of this alliance.
Kick a Member
POST /api/v1/alliances/{alliance_id}/members/{target_player_id}/kick/
Vice Hosts and the Host can remove another member, and only one ranked below themselves (see Roles). Nobody can kick themselves — leave, transfer the Host seat or disband instead. Returns 204 No Content. Being kicked costs the target no prestige, but the reinforcements between them and the alliance are sent home, as when they leave, and they cannot apply to this alliance again for one day of the realm’s time.
Errors:
400— You cannot kick yourself.403— Your role may not kick members, or the target is not ranked below you.404— You are not a member, or the target is not a member of this alliance. This includes a kick sent at the same moment as the alliance’s disband, or as the target’s own leave, that the server handles second: the target left once, and paid the cost of leaving once (a kick that goes first leaves them nothing to pay).
Alliance Rankings
GET /api/v1/alliances/rankings/
Returns alliances ranked by total prestige (sum of all members’ town prestige), highest first. Supports limit and offset query parameters (limit defaults to 50, max 200; offset defaults to 0). The response uses the standard pagination envelope { "count", "limit", "offset", "results" }; rank reflects global position, so the first entry of ?offset=50 has rank: 51.
{ "count": 12, "limit": 50, "offset": 0, "results": [ {"rank": 1, "id": "uuid", "name": "The Iron Guard", "member_count": 4, "total_prestige": 12500}, {"rank": 2, "id": "uuid", "name": "The Silver Wolves", "member_count": 2, "total_prestige": 3200} ]}Alliance Chat
Alliance chat lets members communicate via REST polling. Messages are newest-first and paginated.
Post a Message
POST /api/v1/alliances/{alliance_id}/messages/
Message content must be 1–500 characters.
response = httpx.post( f"http://localhost:8731/api/v1/alliances/{alliance_id}/messages/", headers={"Authorization": "Bearer your-token-here"}, json={"content": "Attack the northern town at dawn!"},)curl -X POST http://localhost:8731/api/v1/alliances/{alliance_id}/messages/ \ -H "Authorization: Bearer your-token-here" \ -H "Content-Type: application/json" \ -d '{"content": "Attack the northern town at dawn!"}'await fetch(`http://localhost:8731/api/v1/alliances/${allianceId}/messages/`, { method: "POST", headers: { "Authorization": "Bearer your-token-here", "Content-Type": "application/json", }, body: JSON.stringify({ content: "Attack the northern town at dawn!" }),});Errors:
403— You are not a member of this alliance.404— The alliance does not exist, for example because it was disbanded while your message was being posted. Nothing is posted.
List Messages
GET /api/v1/alliances/{alliance_id}/messages/?limit=50&offset=0
Returns messages newest-first. limit defaults to 50, max 200; offset defaults to 0. The response uses the standard pagination envelope { "count", "limit", "offset", "results" }.
Response:
{ "count": 42, "limit": 50, "offset": 0, "results": [ { "id": "uuid", "alliance_id": "uuid", "player_id": "uuid", "player_username": "bold-phoenix-3421", "content": "Attack the northern town at dawn!", "created_at": "2026-03-25T06:00:00Z" } ]}Errors:
403— You are not a member of this alliance.404— Alliance not found.
Shared intelligence
Alliances no longer share map visibility, because there is nothing to share: the map is fully public to every player, so allies never extend your view of it.
What allies are still worth to you is force and coordination — alliance chat, support marches into each other’s towns, and diplomacy with other alliances. Intelligence about a specific target still comes from scouting it yourself.
Safety in numbers
Membership itself is protection: no member of your alliance can attack another (a pending applicant is not a member yet), and neither can a member of any alliance you hold an ALLY or NAP pact with. Breaking that pact takes a timed war declaration — 30 minutes of notice at canonical pace, during which nobody may strike. The full table of who can attack whom is in Alliance Diplomacy.