Mail-in-a-Box · Schema
MailAliasUpsertRequest
Mail alias upsert request.
CompanyEmailSelf-hostedOpen-sourceAutomationPrivacy
Properties
| Name | Type | Description |
|---|---|---|
| update_if_exists | integer | Set to `1` when updating an alias. |
| address | object | |
| forwards_to | string | If adding a regular or catch-all alias, the format needs to be `user@example.com`. Multiple address can be separated by newlines or commas. If adding a domain alias, the format needs to be `@example.c |
| permitted_senders | stringnull | Mail users that can send mail claiming to be from any address on the alias domain. Multiple address can be separated by newlines or commas. Leave empty to allow any mail user listed in `forwards_to` t |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/mail-in-a-box/main/json-schema/mail-in-a-box-mail-alias-upsert-request-schema.json",
"title": "MailAliasUpsertRequest",
"description": "Mail alias upsert request.",
"x-generated": "2026-10-28",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/mailinabox-openapi.yml#/components/schemas/MailAliasUpsertRequest",
"type": "object",
"required": [
"update_if_exists",
"address",
"forwards_to",
"permitted_senders"
],
"properties": {
"update_if_exists": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 1,
"description": "Set to `1` when updating an alias."
},
"address": {
"$ref": "#/$defs/Email"
},
"forwards_to": {
"type": "string",
"description": "If adding a regular or catch-all alias, the format needs to be `user@example.com`.\nMultiple address can be separated by newlines or commas.\n\nIf adding a domain alias, the format needs to be `@example.com`.\n"
},
"permitted_senders": {
"type": [
"string",
"null"
],
"description": "Mail users that can send mail claiming to be from any address on the alias domain.\nMultiple address can be separated by newlines or commas.\n\nLeave empty to allow any mail user listed in `forwards_to` to send mail claiming to be from any address on the alias domain.\n"
}
},
"$defs": {
"Email": {
"type": "string",
"format": "email",
"description": "Email format."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mail-in-a-box-mail-alias-upsert-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.