Create inbox
curl --request POST \
--url https://api.moonemail.co/inboxes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.moonemail.co/inboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/inboxes"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"address": "<string>",
"status": "enabled",
"created_at": "<string>",
"aliases": [
"<string>"
]
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Inboxes
Create inbox
Create a random receiving address for this team. Name is a label, not an email local-part. Reuse the idempotency key on retries.
Required permission: inboxes:write.
POST
/
inboxes
Create inbox
curl --request POST \
--url https://api.moonemail.co/inboxes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.moonemail.co/inboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/inboxes"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"address": "<string>",
"status": "enabled",
"created_at": "<string>",
"aliases": [
"<string>"
]
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Authorizations
Moonemail API key; x-required-scope applies.
Headers
Optional in REST; mandatory for the MCP sending tool. Reuse the same key and payload for retries.
Required string length:
1 - 256Body
application/json
Required string length:
1 - 100