Generate an inbox address
curl --request POST \
--url https://api.meowmail.in/api/v1/inboxes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "<string>",
"local_part": "<string>"
}
'import requests
url = "https://api.meowmail.in/api/v1/inboxes"
payload = {
"domain": "<string>",
"local_part": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: '<string>', local_part: '<string>'})
};
fetch('https://api.meowmail.in/api/v1/inboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meowmail.in/api/v1/inboxes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => '<string>',
'local_part' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meowmail.in/api/v1/inboxes"
payload := strings.NewReader("{\n \"domain\": \"<string>\",\n \"local_part\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meowmail.in/api/v1/inboxes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"<string>\",\n \"local_part\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meowmail.in/api/v1/inboxes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"<string>\",\n \"local_part\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"address": "<string>",
"local_part": "<string>",
"domain": "<string>",
"email_ttl_seconds": 123
}
}{
"error": {
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"message": "<string>",
"docs": "<string>"
}
}Inboxes
Generate an inbox address
Inboxes are implicit: nothing is stored until mail arrives, and any address at an active domain already works. This endpoint exists so you don’t have to reimplement our address format, and so the address you get back is guaranteed to be empty right now.
Omit local_part for a random address. Omit domain and you get a default — prefer passing it explicitly from GET /api/v1/domains.
POST
/
api
/
v1
/
inboxes
Generate an inbox address
curl --request POST \
--url https://api.meowmail.in/api/v1/inboxes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "<string>",
"local_part": "<string>"
}
'import requests
url = "https://api.meowmail.in/api/v1/inboxes"
payload = {
"domain": "<string>",
"local_part": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: '<string>', local_part: '<string>'})
};
fetch('https://api.meowmail.in/api/v1/inboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meowmail.in/api/v1/inboxes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain' => '<string>',
'local_part' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meowmail.in/api/v1/inboxes"
payload := strings.NewReader("{\n \"domain\": \"<string>\",\n \"local_part\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.meowmail.in/api/v1/inboxes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"<string>\",\n \"local_part\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meowmail.in/api/v1/inboxes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"<string>\",\n \"local_part\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"address": "<string>",
"local_part": "<string>",
"domain": "<string>",
"email_ttl_seconds": 123
}
}{
"error": {
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"message": "<string>",
"docs": "<string>"
}
}Authorizations
bearerAuthapiKeyHeader
Authorization: Bearer mm_.... Omit entirely to use the anonymous tier.
Body
application/json
Response
Inbox address
Show child attributes
Show child attributes
⌘I