GET /receiving-domains
List inbound domains
Key carrying mail:send AND job:read. Served only when inbound is open to the account (404 not_found otherwise).
API key (Bearer), on the public API endpoint.
Responses
| Status | Description | Body |
|---|---|---|
200 | Project's inbound domains | object |
401 | Key missing or invalid | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/receiving-domains" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.receivingDomains.list({ limit: 20 });Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.receiving_domains.list({"limit": 20})POST /receiving-domains
Register an inbound domain
Key carrying mail:send AND job:read. Served only when inbound is open to the account (404 not_found otherwise). The domain must be a verified sending identity; the response gives the MX record to publish.
API key (Bearer), on the public API endpoint.
Request body
application/json
| Field | Type | Description |
|---|---|---|
domain | string · required |
Responses
| Status | Description | Body |
|---|---|---|
201 | Domain registered, MX to publish | object |
409 | Already registered | Error |
422 | Domain not verified or invalid | Error |
503 | inbound_region_unconfigured | Error |
401 | Key missing or invalid | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/receiving-domains" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "string"}'Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.receivingDomains.create({"domain": "string"});Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.receiving_domains.create({"domain": "string"})