Add a receiving address
Adds an address like support@ on one of the team's receiving domains.
On this page
https://app.usenotix.dev/api/v1/receiving/addressesNeeds a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.
Adds an address like support@ on one of the team's receiving domains. Its mail goes to inboxId, or to the team's first inbox when you leave it out. showInInbox: false keeps its mail out of the shared inbox (default true). Letters, numbers, dots, hyphens or underscores, at most 64; postmaster@ and abuse@ are kept for mail providers. An address that already exists is 409 and the message says where it goes.
Who can call it
A full access key made by a team admin, as on the dashboard. Changes count against one budget of 30 a minute for the team, shared with the dashboard. Every refusal is 403:
| Code | Why |
|---|---|
SCOPE_DENIED | The key is not a full access key (send-only, read only or live AI). |
FORBIDDEN | The key was made by a team member without admin rights, or before Notix recorded who made each key. |
DOMAIN_PINNED | The key is limited to one domain. Addresses are the team's. |
Body parameters
The receiving domain's id, from domains in the list.
At most 64 characters.
The name before the @: letters, numbers, dots, hyphens or underscores. postmaster and abuse are kept for mail providers.
At most 64 characters.
The inbox its mail goes to. Left out, it goes to the team's first inbox, where every other address goes.
At most 64 characters.
false keeps its mail out of the shared inbox: still stored, announced and forwarded. Default true.
Headers
Bearer followed by your API key.
Errors
A name that is not allowed, a domain whose receiving is being turned off, or a body not sent as JSON.
`SCOPE_DENIED`: not a full access key. `DOMAIN_PINNED`: the key is limited to one domain. `FORBIDDEN`: the key was made by a team member without admin rights, or before Notix recorded who made each key.
No receiving domain or inbox with this id for the calling team.
The address already exists; the message says where it goes.
The team changed receiving addresses 30 times in the last minute (dashboard and API together).
Notix cannot count the team's calls just now; try again shortly.
Every error has the same shape. See all error codes.
curl -X POST "https://app.usenotix.dev/api/v1/receiving/addresses" \
-H "Authorization: Bearer $NOTIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domainId": "clx9f2k3l0001qz8a7b6c5d4e",
"localPart": "support"
}'
{
"id": "cm1x8f3k20001qz7v5b9d2e4a",
"address": "string"
}