8 Endpunkte der Gruppe «Domains». Die Referenz stammt aus der englischen OpenAPI-Spezifikation und ist nicht übersetzt.
List sending domains
GET/v1/domains
Parameter
| Name | Ort | Typ | Beschreibung |
limit | query | integer | Page size. The default and the maximum depend on the endpoint (emails 50 up to 500, received mail 50 up to 200, audit up to 200, the others 100 up to 500 or 1000). Default: 100 |
cursor | query | string | The next_cursor of the previous page. Opaque; pass it unchanged to the same endpoint with the same filters. |
Beispiel
curl "https://api.sendtide.ch/v1/domains" \
-H "Authorization: Bearer sk_test_…"
Antworten
| Status | Beschreibung |
200 | Domains Felder der Antwort data | array<Domain> | | data[].id | string | | data[].name | string | | data[].status | enum: pending | verified | failed | | data[].dkim_status | string | | data[].mail_from | string | | data[].mail_from_status | string | | data[].inbound | boolean | | data[].tracking_domain | string | Empty when none is set | data[].tracking_status | enum: none | pending | verified | | data[].records | array<object> | | data[].records[].type | string | | data[].records[].name | string | | data[].records[].value | string | | data[].records[].priority | integer | | data[].records[].purpose | string | | data[].records[].optional | boolean | | data[].verified_at | string | null (date-time) | | data[].created_at | string (date-time) | | next_cursor | string | null | |
|
Add a domain
POST/v1/domains
The answer lists the DNS records (three DKIM CNAMEs, MX and SPF for the bounce domain, DMARC). A name that is already added to any account answers 409 domain_exists, also when the domain exists at the mail provider without having been added through Sendtide. Reserved names (sendtide.ch and its subdomains) answer 422 domain_reserved. A domain that is not verified within 7 days is released: it is removed together with its identity at the mail provider, so nobody can block a name by adding it without owning it. Add the DNS records right away; add the domain again after a release.
Request-Body application/json
| Feld | Typ | Beschreibung |
name * | string | Example: example.ch |
Beispiel
curl -X POST "https://api.sendtide.ch/v1/domains" \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{"name":"example.ch"}'
Antworten
| Status | Beschreibung |
201 | Added Domain Felder der Antwort id | string | | name | string | | status | enum: pending | verified | failed | | dkim_status | string | | mail_from | string | | mail_from_status | string | | inbound | boolean | | tracking_domain | string | Empty when none is set | tracking_status | enum: none | pending | verified | | records | array<object> | | records[].type | string | | records[].name | string | | records[].value | string | | records[].priority | integer | | records[].purpose | string | | records[].optional | boolean | | verified_at | string | null (date-time) | | created_at | string (date-time) | |
|
409 | Fehler im üblichen Format, Fehler und Limits |
422 | Fehler im üblichen Format, Fehler und Limits |
Get a domain
GET/v1/domains/{id}
Parameter
| Name | Ort | Typ | Beschreibung |
id * | path | string | Name or dom_ id |
Beispiel
curl "https://api.sendtide.ch/v1/domains/example.ch" \
-H "Authorization: Bearer sk_test_…"
Antworten
| Status | Beschreibung |
200 | The domain Domain Felder der Antwort id | string | | name | string | | status | enum: pending | verified | failed | | dkim_status | string | | mail_from | string | | mail_from_status | string | | inbound | boolean | | tracking_domain | string | Empty when none is set | tracking_status | enum: none | pending | verified | | records | array<object> | | records[].type | string | | records[].name | string | | records[].value | string | | records[].priority | integer | | records[].purpose | string | | records[].optional | boolean | | verified_at | string | null (date-time) | | created_at | string (date-time) | |
|
Turn receiving on or off, set the tracking domain
PATCH/v1/domains/{id}
tracking_domain is a subdomain of the verified domain (like track.example.ch) that open and click links use instead of the default. Point it with a CNAME to the value in records (purpose tracking). An empty string removes it.
Parameter
| Name | Ort | Typ | Beschreibung |
id * | path | string | Name or dom_ id |
Request-Body application/json
| Feld | Typ | Beschreibung |
inbound | boolean | |
tracking_domain | string | Example: track.example.ch |
Beispiel
curl -X PATCH "https://api.sendtide.ch/v1/domains/example.ch" \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{"tracking_domain":"track.example.ch"}'
Antworten
| Status | Beschreibung |
200 | Updated Domain Felder der Antwort id | string | | name | string | | status | enum: pending | verified | failed | | dkim_status | string | | mail_from | string | | mail_from_status | string | | inbound | boolean | | tracking_domain | string | Empty when none is set | tracking_status | enum: none | pending | verified | | records | array<object> | | records[].type | string | | records[].name | string | | records[].value | string | | records[].priority | integer | | records[].purpose | string | | records[].optional | boolean | | verified_at | string | null (date-time) | | created_at | string (date-time) | |
|
Remove a domain
DELETE/v1/domains/{id}
Also removes the identity at the mail provider, if Sendtide created it for this domain.
Parameter
| Name | Ort | Typ | Beschreibung |
id * | path | string | Name or dom_ id |
Beispiel
curl -X DELETE "https://api.sendtide.ch/v1/domains/example.ch" \
-H "Authorization: Bearer sk_test_…"
Antworten
| Status | Beschreibung |
204 | Removed |
Check the DNS records now
POST/v1/domains/{id}/verify
Parameter
| Name | Ort | Typ | Beschreibung |
id * | path | string | |
Beispiel
curl -X POST "https://api.sendtide.ch/v1/domains/example.ch/verify" \
-H "Authorization: Bearer sk_test_…"
Antworten
| Status | Beschreibung |
200 | Checked Domain Felder der Antwort id | string | | name | string | | status | enum: pending | verified | failed | | dkim_status | string | | mail_from | string | | mail_from_status | string | | inbound | boolean | | tracking_domain | string | Empty when none is set | tracking_status | enum: none | pending | verified | | records | array<object> | | records[].type | string | | records[].name | string | | records[].value | string | | records[].priority | integer | | records[].purpose | string | | records[].optional | boolean | | verified_at | string | null (date-time) | | created_at | string (date-time) | |
|
DMARC reports of a domain
GET/v1/domains/{id}/dmarc
Aggregate reports that receivers send to the rua address dmarc+<token>@<DMARC_REPORT_DOMAIN> (listed in the domain's DNS records). Pass rate per day (DKIM or SPF passed aligned), the sources that send as the domain and fail, and the DMARC record to publish, merged with the current one in DNS.
Parameter
| Name | Ort | Typ | Beschreibung |
id * | path | string | |
days | query | integer | Default: 30 |
Beispiel
curl "https://api.sendtide.ch/v1/domains/example.ch/dmarc" \
-H "Authorization: Bearer sk_test_…"
Antworten
| Status | Beschreibung |
200 | The report view |
404 | Fehler im üblichen Format, Fehler und Limits |
Is BIMI possible for the domain?
GET/v1/domains/{id}/bimi
Looks up the DMARC policy now. BIMI needs p=quarantine or p=reject at 100 percent, an SVG Tiny PS logo and, at Gmail and Apple, a VMC certificate.
Parameter
| Name | Ort | Typ | Beschreibung |
id * | path | string | |
Beispiel
curl "https://api.sendtide.ch/v1/domains/example.ch/bimi" \
-H "Authorization: Bearer sk_test_…"
Antworten