domains
POST /v1/domains/{domainId}/email-routing/addresses
Register a destination address.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу domains.dns.manage; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/email-routing/addresses \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "email": <string> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
This sends mail to a third party. The provider emails the address a verification link and will not deliver anything to it until the recipient clicks, so the response carries verified: false rather than pretending the destination is usable. Destination addresses are account-scoped at the provider, not zone-scoped: one address book serves every domain on the account. Requires domains.dns.manage.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
domainId (path) | Uuid | Да | The domain's id. |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
email | string | Да | The provider emails this address a verification link. It is a write that reaches a third party, so it is permissioned and audit-logged accordingly. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
address_id | string | Да | — |
email | string | Да | — |
verified | boolean | Да | A fact about the recipient's action, never ours: the provider emails a verification link and will not deliver until it is clicked. |
created | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 422 · 429 · 503