Policies
Access and permissions
Access to the API is granted deliberately, kept as narrow as the job needs, and removed as soon as it is no longer needed.
Who can get a token#
The hotel's own developers, and partners the hotel works with, for an integration the hotel has agreed to. Ask at team@madagascarhotelags.com with:
- what the integration does and which messages it will send;
- the sender address it needs, and the expected volume per day;
- who is responsible for the integration and how to reach them.
Who can issue tokens#
Only named hotel staff, signed in to the hotel's admin dashboard with single sign-on, with at least an administrator's role, and only with the permissions they were granted. There are five:
| Permission | Allows |
|---|---|
| View | Open the Email API page: tokens, limits, usage, delivery status and the history, with recipient addresses masked. |
| Respond | Block, narrow or rename a token, pause the API, and send a failed message again. |
| Read mail | See the full recipient addresses, subjects and content of messages. |
| Manage tokens | Create, rotate, renew, unblock and delete tokens; raise their limits; add senders or permissions; switch the API back on. |
| API settings | Change the default limits for new tokens, the recipients per message and the shared daily allowance; approve a sender for the API; switch the API back on. |
Anything that widens a token needs Manage tokens; narrowing, blocking and renaming do not. By default administrators hold View and Respond, so they can stop misuse without waiting, and only the owner holds Read mail, Manage tokens and API settings, which the owner can grant to a named person. A sender address can also require a minimum role before anyone may give it to a token.
What a token can be allowed#
- Permissions:
send(create messages) andread(check messages sent with the same token). - Senders: one or more of the addresses the hotel has approved for the API.
- Limits: messages per minute and per day.
- Expiry: an optional date after which it stops working.
We issue the narrowest token that does the job: one per integration and environment, only the permissions and senders it uses, and limits that match its real volume.
Controls that apply to everyone#
At any moment, and with effect on the next request, the hotel can:
- switch the whole API off;
- change the shared daily allowance of recipients;
- withdraw a sender from the API;
- add an address to the suppression list.
Reviews and removal#
- Tokens that have not been used for a long time, or whose integration has ended, are blocked or deleted.
- When someone who knew a token leaves a project, the token is rotated.
- A token that may have been exposed is rotated or blocked at once.
- Every change is recorded with who made it and when (see Logging and monitoring).
To give up a token, or to report one that should no longer exist, write to team@madagascarhotelags.com.
Last reviewed 2026-10-01.