feat: recommend an Idempotency-Key when retrying PATCH /emails/:id/track because it takes the domain from the query, and describe DELETE /api-keys/self as revoking the calling API key with 400 bad_request for a session

This commit is contained in:
Claude
2026-11-22 02:47:46 +00:00
parent 0f07adea0f
commit dab1b4599c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ The `/unibox/drafts` endpoints hold autosaved compose drafts, scoped to the call
`GET /emails/:id/auth-check` runs a live SPF/DKIM/DMARC lookup on the mailbox's sending domain and reports it without changing anything. `POST /emails/:id/auth-check` runs the same lookup and records the verdict against every active mailbox on that domain, which is what clears the send gate after a DNS fix, so it needs `WRITE_EMAILS` rather than `READ_EMAILS`. The write needs no `Idempotency-Key`: it is derived entirely from public DNS with no request body, so repeating it recomputes the verdict. A key sent with it replays the first answer for 24 hours, so leave it off to see a fresh verdict after a DNS change. See [domain authentication](/guides/deliverability/#domain-authentication).
`GET /emails/:id/track` reports the mailbox's stored tracking domain plus the `CNAME` value this deployment expects (`cname_target`, taken from its `TRACKING_DOMAIN`), and does no DNS work. It also carries the ownership `TXT` record (`txt_name`, `txt_value`) a host the workspace has not verified before needs beside the `CNAME`; until it is published the status is `proof_missing`. `PATCH /emails/:id/track` sets the domain and resolves it once; `POST /emails/:id/track/verify` re-resolves the saved one and records the verdict, which is what makes a record that has finished propagating start being used. Both writes are derived from public DNS with no request body, so they need no `Idempotency-Key`; a key sent with one replays its first answer for 24 hours, so leave it off to see a fresh verdict. Only a verified domain is used at send time; until then opens and clicks go through the shared tracking host. See [custom tracking domain](/guides/mailboxes/#custom-tracking-domain).
`GET /emails/:id/track` reports the mailbox's stored tracking domain plus the `CNAME` value this deployment expects (`cname_target`, taken from its `TRACKING_DOMAIN`), and does no DNS work. It also carries the ownership `TXT` record (`txt_name`, `txt_value`) a host the workspace has not verified before needs beside the `CNAME`; until it is published the status is `proof_missing`. `PATCH /emails/:id/track` sets the domain and resolves it once; `POST /emails/:id/track/verify` re-resolves the saved one and records the verdict, which is what makes a record that has finished propagating start being used. The `PATCH` takes the domain from its `domain` query parameter, so send an `Idempotency-Key` when retrying it: a retry without one sets that domain again even if a later call changed it. The verify call has no input beyond the saved domain, so call it without a key for a fresh verdict; a key replays its first answer for 24 hours. Only a verified domain is used at send time; until then opens and clicks go through the shared tracking host. See [custom tracking domain](/guides/mailboxes/#custom-tracking-domain).
`POST /emails/:id/hold` keeps a mailbox out of campaign sending until `POST /emails/:id/release` puts it back; warmup is unaffected and the automatic rest logic never releases a hold. `release` is also the manual exit for a mailbox that is `resting` automatically. Both are bodyless and idempotent, so they take no `Idempotency-Key`. See [holding a mailbox yourself](/guides/mailboxes/#holding-a-mailbox-yourself).
+1 -1
View File
@@ -32659,7 +32659,7 @@
"delete": {
"operationId": "api_keys_revoke_own_a_p_i_key",
"summary": "Revoke own API key",
"description": "Revoke own API key. Requires a signed-in user or a key with access to the workspace.",
"description": "Revoke own API key. Revokes the API key the request is made with; it takes an API key with access to the workspace, and a request from a signed-in session answers 400 bad_request.",
"tags": [
"api-keys"
],