Run Mountaya from your backend
Your backend holds the keys, mints the session tokens, and decides which member each write acts as. This page sets that up once, for a server that calls Mountaya on its own and for the pages it serves.
Create all three under Organization → API keys in the Mountaya app, and read them from the environment:
The app shows a secret key once, when you create it. Store it then.
Every write, every Data API call and every management call carries a session token beside the key. A token lasts five minutes, so your server mints a new one before the last one expires. With the TypeScript client, a SessionTokenEngine does it for you:
A write acts as the member its token names, within their role. Mint each person's token with their Mountaya user_id, read from your own sign-in and never from the request.
People become members by invitation: an owner or admin invites their email address, and they accept in the Mountaya app. Each member, and each invitation still waiting, holds one of your agreement's seats. Manage members, invitations and keys shows each call, and how to look up a member's user_id.
Writes no person makes, such as a nightly import from your catalog, act best as a member kept for them. Invite an address you control, such as integrations@example.com, as a contributor. Sign up with it in the Mountaya app, accept the invitation, and store its user_id.
What it writes then names that member, apart from your people. Removing a person never stops your import, and removing it never touches anyone's access.
Your organization holds every key, itinerary, zone, collection and webhook endpoint, and your keys write to it alone. Your own customers are not Mountaya organizations: serve them from yours. Give each person who edits a member of their own, and keep which customer owns what in your own records.