{"id":"email.domain.verify","module":"comm-email","namespace":"email","action":"domain.verify","method":"POST","path":"/v1/email/domain/verify","idempotent":true,"available":true,"vendors":["resend"],"vendors_ready":["resend"],"vendors_pending":[],"key_status":"live","default_vendor":"resend","self_hosted":false,"minimum_tier":"pro","supported_message_classes":null,"regions":["western"],"dynamic_params":{"vendor":["resend"]},"models_tracked":false,"sdk_hint":"Regular parameters + types are stable — read them from the typed SDK signature / API reference for this capability. discovery only carries the runtime-dynamic values above (available, vendors, dynamic_params).","params":{"title":"DomainVerifyRequest","description":"Request shape for email.domain.verify — trigger the vendor's DNS/domain verification for a sending domain. Returns domain + status + dns_records.","type":"object","required":["domain"],"additionalProperties":false,"properties":{"domain":{"type":"string","description":"Sending domain to verify (e.g. mail.example.com)."},"idempotency_key":{"type":["string","null"],"description":"Client-provided idempotency key; prevents duplicate execution on retry"}}},"response":{"title":"DomainVerification","description":"Result of infra.email.verify_domain / get_domain. See docs/Infrai_SDK_Comm.md §3.1.","type":"object","required":["domain","domain_id","status","dns_records","created_at"],"additionalProperties":false,"properties":{"domain":{"type":"string","description":"Apex domain, e.g. 'yourdomain.com'."},"domain_id":{"type":"string","pattern":"^dom_[A-Za-z0-9]{20,}$","description":"Unique identifier for this domain"},"status":{"enum":["pending_dns","verifying","verified","failed","expired"],"description":"Current status of this resource"},"dns_records":{"type":"array","items":{"title":"DnsRecord","description":"One DNS record the user must publish at their DNS provider to verify a domain. See docs/Infrai_SDK_Comm.md §3.1.","type":"object","required":["type","name","value","purpose"],"additionalProperties":false,"properties":{"type":{"enum":["TXT","CNAME","MX","A","AAAA"],"description":"Type discriminator for this resource"},"name":{"type":"string","description":"Fully qualified DNS name."},"value":{"type":"string","description":"Value of the DNS record or configuration"},"purpose":{"enum":["spf","dkim","tracking","dmarc","return_path","verification"],"description":"Purpose of the DNS record"},"ttl_recommended":{"type":"integer","minimum":60,"default":3600,"description":"Recommended TTL in seconds"}}},"description":"DNS records required for domain verification"},"checks":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Per-record check status ('ok'/'pending'/'mismatch'/...)."},"warm_up_state":{"type":["string","null"],"enum":["not_started","in_progress","complete",null],"description":"Current warm-up state for the domain"},"daily_limit_current":{"type":["integer","null"],"minimum":0,"description":"Current daily sending limit"},"daily_limit_target":{"type":["integer","null"],"minimum":0,"description":"Target daily sending limit after warm-up"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when this resource was created"},"verified_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601 timestamp when verification was completed"},"expires_at":{"type":["string","null"],"format":"date-time","description":"DKIM rotation due (1y recommended)."},"rotated":{"type":"boolean","description":"Present only on the response of email.domain.rotate_dkim: true once the DKIM key rotation has been issued (status drops back to pending_dns until the new record is observed in DNS)."}}},"errors":["ACCOUNT_AUTORECHARGE_LIMIT","ACCOUNT_FROZEN","AUTH_RATE_LIMIT","AUTH_REFRESH_TOO_FREQUENT","DOMAIN_NOT_VERIFIED","EMAIL_ALREADY_HAS_ACCOUNT","EMAIL_BATCH_TOO_LARGE","EMAIL_CONFIRMATION_REQUIRED","EMAIL_EXPIRED","EMAIL_INVALID_RETENTION","EMAIL_INVALID_STATE","EMAIL_NOT_CONFIGURED","EMAIL_NOT_FOUND","EMAIL_PRO_REQUIRED","EMAIL_REPUTATION_SUSPENDED","EMAIL_SEND_FAILED","IDEMPOTENCY_KEY_CONFLICT","INSUFFICIENT_CREDIT","INTERNAL_ERROR","INVALID_ARGUMENT","INVALID_RECIPIENT","KEY_REVOKED","MAINTENANCE","NETWORK_ERROR","RATE_LIMIT_ACCOUNT","RATE_LIMIT_USER","RATE_LIMIT_VENDOR","SCOPE_INSUFFICIENT","SUPPRESSED_RECIPIENT","TEMPLATE_VAR_MISSING","TOO_MANY_RECIPIENTS","UNAUTHORIZED","VENDOR_AUTH_ERROR","VENDOR_DOWN","VENDOR_TIMEOUT","WALLET_EXPIRED"],"examples":{"curl":"curl -X POST https://api.infrai.cc/v1/email/domain/verify \\\n  -H \"Authorization: Bearer $INFRAI_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"domain\": \"sample\"}'","python":"# Zero-install REST call — no SDK required (short-term the API is REST-only).\nimport os, requests\n\nresp = requests.post(\n    \"https://api.infrai.cc/v1/email/domain/verify\",\n    headers={\n        \"Authorization\": f\"Bearer {os.environ['INFRAI_API_KEY']}\",\n    },\n    json={'domain': 'sample'},\n)\nresp.raise_for_status()\nprint(resp.json())","javascript":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nconst resp = await fetch(\n  \"https://api.infrai.cc/v1/email/domain/verify\",\n  {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": `Bearer ${process.env.INFRAI_API_KEY}`,\n      \"Content-Type\": \"application/json\",\n    },\n    body: JSON.stringify({\"domain\": \"sample\"}),\n  },\n);\nconsole.log(await resp.json());","typescript":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nconst resp = await fetch(\n  \"https://api.infrai.cc/v1/email/domain/verify\",\n  {\n    method: \"POST\",\n    headers: {\n      \"Authorization\": `Bearer ${process.env.INFRAI_API_KEY}`,\n      \"Content-Type\": \"application/json\",\n    },\n    body: JSON.stringify({\"domain\": \"sample\"}),\n  },\n);\nif (!resp.ok) throw new Error(`infrai ${resp.status}`);\nconst data: unknown = await resp.json();\nconsole.log(data);","go":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\npackage main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\tbody := []byte(`{\"domain\": \"sample\"}`)\n\treq, _ := http.NewRequest(\"POST\", \"https://api.infrai.cc/v1/email/domain/verify\", bytes.NewReader(body))\n\treq.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"INFRAI_API_KEY\"))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n\tfmt.Println(resp.Status)\n}","java":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nimport java.net.URI;\nimport java.net.http.*;\n\nHttpRequest req = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.infrai.cc/v1/email/domain/verify\"))\n    .header(\"Authorization\", \"Bearer \" + System.getenv(\"INFRAI_API_KEY\"))\n    .header(\"Content-Type\", \"application/json\")\n    .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"{\\\"domain\\\": \\\"sample\\\"}\"))\n    .build();\nHttpResponse<String> resp = HttpClient.newHttpClient()\n    .send(req, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(resp.body());","csharp":"// Zero-install REST call — no SDK required (short-term the API is REST-only).\nusing System;\nusing System.Net.Http;\n\nvar client = new HttpClient();\nvar req = new HttpRequestMessage(new HttpMethod(\"POST\"), \"https://api.infrai.cc/v1/email/domain/verify\");\nvar key = Environment.GetEnvironmentVariable(\"INFRAI_API_KEY\");\nreq.Headers.Add(\"Authorization\", \"Bearer \" + key);\nreq.Content = new StringContent(\"{\\\"domain\\\": \\\"sample\\\"}\", System.Text.Encoding.UTF8, \"application/json\");\nvar resp = await client.SendAsync(req);\nConsole.WriteLine(await resp.Content.ReadAsStringAsync());","php":"<?php\n// Zero-install REST call — no SDK required (short-term the API is REST-only).\n$ch = curl_init(\"https://api.infrai.cc/v1/email/domain/verify\");\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer \" . getenv(\"INFRAI_API_KEY\"),\n    \"Content-Type: application/json\",\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, \"{\\\"domain\\\": \\\"sample\\\"}\");\n$response = curl_exec($ch);\ncurl_close($ch);\necho $response;","ruby":"# Zero-install REST call — no SDK required (short-term the API is REST-only).\nrequire \"net/http\"\nrequire \"uri\"\n\nuri = URI(\"https://api.infrai.cc/v1/email/domain/verify\")\nhttp = Net::HTTP.new(uri.host, uri.port)\nhttp.use_ssl = true\nreq = Net::HTTP::Post.new(uri)\nreq[\"Authorization\"] = \"Bearer #{ENV['INFRAI_API_KEY']}\"\nreq[\"Content-Type\"] = \"application/json\"\nreq.body = '{\"domain\": \"sample\"}'\nres = http.request(req)\nputs res.body","rust":"// Zero-install REST call — no SDK required (short-term the API is REST-only). (uses the reqwest + tokio crates)\nuse std::env;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let resp = reqwest::Client::new()\n        .post(\"https://api.infrai.cc/v1/email/domain/verify\")\n        .header(\"Authorization\", format!(\"Bearer {}\", env::var(\"INFRAI_API_KEY\")?))\n        .header(\"Content-Type\", \"application/json\")\n        .body(r#\"{\"domain\": \"sample\"}\"#)\n        .send()\n        .await?;\n    println!(\"{}\", resp.text().await?);\n    Ok(())\n}","request":{"domain":"sample"}},"billing":{"is_billable":false,"free":true,"billing_class":"service_markup","unit":"per_call","note":"free (rate-limited); does NOT consume the new-account trial"}}