team-telnyx/ai/telnyx-email-domains-curl
Claude Code and agent skill by team-telnyx/ai
- community
Checking that the SKILL.md file is still in the repository.
Manage email sending domains, verify DNS records (SPF, DKIM, DMARC, MX), check domain health, and configure domain-level webhooks for delivery events.
Install
npx vskill@latest install team-telnyx/ai/telnyx-email-domains-curlSKILL.md
The same SKILL.md was published earlier as team-telnyx/ai/telnyx-email-domains-curl.
Telnyx Email Domains — curl
Installation
Setup
Every request requires:
Mutation requests with JSON also require:
Use --fail-with-body --silent --show-error in automation so non-2xx responses fail the command without hiding the Telnyx error body.
Error Handling
Error responses use an errors array:
Common cases:
| HTTP | Meaning | Action | |
|---|---|---|---|
400 | Invalid list query or malformed input | Fix the query; do not retry unchanged. | |
401 | Missing or invalid API key | Fix authentication. | |
403 | Shared domain is read-only (10008) or access is insufficient | Use an owned custom domain or correct permissions. | |
404 | Domain or webhook not found (10001) | Re-list resources and verify both IDs. | |
422 | Request validation or state transition failed (10015 and related codes) | Inspect every error and source.pointer; correct the request or state. | |
429 | Rate limit | Honor Retry-After when present and back off. | |
500 | Unexpected service error | Retry only safe reads or carefully reconciled mutations. |
Do not retry a create blindly after a transport timeout; first list domains and check whether the resource was created. verify and GET operations are safe to repeat. Before retrying DELETE or PATCH, retrieve the current state. Use bounded exponential backoff with jitter for transient 429 and 5xx failures.
Important Notes
- All 13 reachable operations use the Telnyx v2 REST API and Bearer
authentication.
- A custom domain is not ready merely because
POST /v2/email_domainssucceeds.
Create it, retrieve its generated DNS records, publish those records, trigger verification, and check health until usable_for_sending is true.
- Call
GET /v2/email_domains/{domain_id}/dns_recordsto retrieve the exact DNS
records you need to publish. The response includes the record type, host, value, and priority for each record.
- The OpenAPI DNS-purpose enum includes
ownership,spf,dkim,dmarc, and
mx. SPF, DKIM, and DMARC are authentication-related purposes; MX supports inbound routing when required. Publish the exact API-returned values rather than constructing DNS records from examples.
- Webhooks are configured at the domain level through
POST /v2/email_domains/{domain_id}/webhooks, not per message.
- Domain IDs and webhook IDs are UUIDs returned by the API, not domain names.
Operational Caveats
- Shared versus custom domains: Telnyx-managed shared domains are
pre-provisioned and readable/usable by accounts. Custom domains require customer DNS setup and verification. Non-owners cannot update, verify, or delete a shared domain; those attempts return 403 with code 10008.
- DNS is API-generated: The API does not expose customer-facing
create/update/delete operations for individual generated DNS records. Publish records at the authoritative DNS provider, then call the verify operation.
- Tracking defaults live on the domain:
open_tracking,click_tracking,
and unsubscribe_tracking default to false, false, and true, respectively. A send may override these defaults without changing the domain.
- Health is the readiness signal: Do not infer deliverability from one DNS
record. Check the aggregate health response and the relevant usability boolean.
- Verification reflects DNS propagation: A successful verify request means
the check ran, not that every record passed. Wait and use bounded backoff before checking again; never tight-loop verification.
- Verified deletion requires intent: Pass
force=trueto delete a verified
custom domain. Delete returns 200 with the deleted domain, not 204.
- Pagination differs by resource: Domain lists support offset or cursor
pagination. Webhook lists support offset pagination only. Treat cursors as opaque and inspect the returned .meta shape.
Reference Use Rules
Do not invent request fields, DNS values, event names, response fields, or status enums.
- Read references/api-details.md for complete
request/response schemas and every enum.
- Before constructing list filters or pagination, read
- Before branching on DNS or health, read
DNS and verification semantics and Response schemas.
- Before subscribing to events, read
Webhook event allowlist. The allowlist is explicit and has no default-to-all behavior.
- Before retrying failures, read
Core Tasks
Provision and verify a custom domain
1. Create a domain
POST /v2/email_domains
| Parameter | Type | Required | Description | ||
|---|---|---|---|---|---|
domain | string | Yes | Custom domain name, for example example.com. | ||
inbound_enabled | boolean | No | Enable inbound routing; defaults to false. | ||
dmarc_policy | object \ | null | No | Advisory DMARC policy (p, pct, rua, sp). | |
tracking | object | No | Domain defaults for open, click, and unsubscribe tracking. |
Expected status: 201. Save .data.id as EMAIL_DOMAIN_ID. Do not send until .data.usable_for_sending is true.
2. Retrieve the required DNS records
GET /v2/email_domains/{domain_id}/dns_records
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
domain_id | UUID path parameter | Yes | Domain ID returned by the API. |
Each item in .data[] includes purpose, record_type, host, value, priority, required, status, and possibly actual_value. Publish every required record exactly as returned. Use the response to decide which records are required for this domain's sending and inbound configuration.
3. Trigger DNS verification
POST /v2/email_domains/{domain_id}/verify
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
domain_id | UUID path parameter | Yes | Domain whose current DNS records should be checked. | |
| Request body | — | No | This operation has no request body. |
Expected status: 200. Inspect .data.verification and each .data.dns_records[].status. A 200 means the check ran; it does not guarantee that every record verified.
4. Check domain health
GET /v2/email_domains/{id}/health
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
id | UUID path parameter | Yes | Domain whose aggregate readiness should be checked. |
Read .data.status, .data.usable_for_sending, .data.usable_for_inbound, .data.verification, and .data.checked_at. DMARC may be missing_optional without blocking sending; use each record's required flag and the health booleans rather than treating every non-verified value as fatal.
List domains
GET /v2/email_domains
| Query parameter | Type | Required | Description | |
|---|---|---|---|---|
page[number] | integer | No | Offset page number. | |
page[size] | integer | No | Page size from 1 to 100. | |
sort | enum | No | created_at, -created_at, domain, or -domain. | |
filter[type] | enum | No | custom, shared, or shared_inbound. | |
filter[usable_for_sending] | boolean | No | Limit results by sending readiness. | |
| ... | See all list query parameters. |
Supported filters also include status, partial case-insensitive domain, profile_id, and usable_for_inbound. Domain lists support offset pagination and cursor pagination; inspect the returned .meta shape.
Retrieve a domain
GET /v2/email_domains/{id}
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
id | UUID path parameter | Yes | Domain to retrieve. |
Expected status: 200. The response includes DNS, DKIM, inbound, DMARC, tracking, usability, timestamps, and optional reputation information.
Update a domain
PATCH /v2/email_domains/{id}
| Parameter | Type | Required | Description | ||
|---|---|---|---|---|---|
id | UUID path parameter | Yes | Domain to update. | ||
inbound_enabled | boolean | No | Enable or disable inbound routing. | ||
dmarc_policy | object \ | null | No | Change the advisory DMARC policy. | |
tracking | object | No | Change domain tracking defaults. |
The domain name and type are not mutable. Include at least one field to change. Updating the DMARC policy rebuilds the recommended DMARC record and resets its verification to pending, so retrieve the new DNS records, publish the returned value, and verify again.
Expected status: 200. A non-owner cannot mutate a shared domain (403, code 10008).
Delete a domain
DELETE /v2/email_domains/{id}
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
id | UUID path parameter | Yes | Domain to delete. | |
force | boolean query parameter | For verified domains | Must be true to delete a verified domain. |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/telnyx-email-domains-curl/SKILL.md
Popularity
- Repository stars
- 219
- Repository forks
- 21
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/team-telnyx/ai/telnyx-email-domains-curl)