team-telnyx/ai/telnyx-email-inbound-curl
Claude Code and agent skill by team-telnyx/ai
- community
Checking that the SKILL.md file is still in the repository.
Manage email inboxes, list and search inbound messages, threads, sender filters, and reply to or forward messages. Use for building email agents that read and respond to incoming email.
Install
npx vskill@latest install team-telnyx/ai/telnyx-email-inbound-curlSKILL.md
The same SKILL.md was published earlier as team-telnyx/ai/telnyx-email-inbound-curl.
Telnyx Email Inbound - curl
Installation
Setup
All examples below use $TELNYX_API_KEY for authentication. Resource IDs are UUIDs; store the IDs returned by create and list calls rather than parsing them from email addresses.
Error Handling
All API calls can fail with network errors, authentication errors (401), validation errors (422), temporary service errors (503), or rate limits (429). Capture the HTTP status separately from the JSON response in production:
Common status codes:
| Status | Meaning | Action | |
|---|---|---|---|
400 | Malformed request or send-time prerequisite failure | Fix the request; do not retry unchanged. | |
401 | Invalid or missing API key | Replace the key and retry. | |
403 | The account or inbox domain cannot send | Correct permissions or sending-domain configuration. | |
404 | Resource is missing, deleted, foreign, or the sending domain could not be resolved | Re-list account-scoped resources; do not use the response to infer foreign resource existence. | |
422 | Validation failed or every action recipient was suppressed | Read .errors[] and fix the referenced field. | |
429 | Rate limited or inbox-domain reputation suspended sending | Honor retry guidance for rate limits; reputation suspension requires remediation. | |
503 | Inbound storage, actions, or a dependency is unavailable | Retry with bounded exponential backoff and jitter. |
Important Notes
- Base path: The OpenAPI path names are relative to
https://api.telnyx.com/v2. - Authentication: Send
Authorization: Bearer $TELNYX_API_KEYon every request. - Identifiers:
inbox_id,message_id, andthread_idpath parameters are Telnyx UUIDs. A message's RFCMessage-IDappears separately as themessage_idresponse field. - Pagination: Inbox listing uses
page_sizeandpage_cursor. Message and thread listing usespage[size]andpage[after]. Continue with.meta.page_cursoruntil it is absent. - Safe query encoding: Use
curl --get --data-urlencodefor bracketed filters such asfilter[search]; this avoids shell globbing and preserves spaces. - Delete semantics: Deleting an inbox soft-deletes it, reserves its address, and returns
204with no response body.
Operational Caveats
- Thread identity is composite. Treat every thread as
(inbox_id, thread_id), not asthread_idalone. Inbox-scoped routes encode both values in the path. Account-wideGET /email_threads/{thread_id}requiresinbox_idas a query parameter. - Labels are not tags. Labels are mutable mailbox state such as
spam,promos, oraccount_alerts; tags are immutable billing and reporting attribution set when outbound mail is sent. Label mutation routes are not yet available through the gateway. - Sender filters are case-insensitive. Entries are normalized to lowercase. Exact addresses and
@domain.comdomain wildcards are accepted. Blocklist matches beat allowlist matches. Empty or absent lists accept all senders. - Reply and forward use the inbox domain. The action sends from the inbox address through the standard email send pipeline. The inbox must resolve to a valid configured sending domain.
- Search is PostgreSQL full-text search.
filter[search]searches subject, plain-text body, and HTML body; it is not a literal substring filter. Usefilter[from]orfilter[subject]for case-insensitive literal substrings.
Reference Use Rules
Do not invent Telnyx parameters, enums, recipient shapes, response fields, or webhook fields.
- If a parameter or response field is not shown inline, read references/api-details.md before writing code.
- Before composing filters or cursor loops, read request and query parameters.
- Before relying on a message, thread, or action response field, read response schemas.
- Before implementing an inbound handler, read webhook guidance and the Telnyx webhook documentation.
Core Tasks
Create an inbox
Create an inbox on an account-owned inbound-enabled domain. Both body fields are optional: omit domain_id to use the shared inbound subdomain and omit username to generate a unique local part.
POST /email_inboxes
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
username | string | No | Local part, normalized to lowercase; 1-64 characters using letters, digits, dots, hyphens, and underscores. | |
domain_id | UUID | No | Account-owned inbound-enabled domain. Omit for the shared inbound subdomain. |
Primary response fields: .data.id, .data.address, .data.status, .data.domain_id, .data.domain, .data.created_at.
List inboxes
Lists non-deleted inboxes newest first with stable cursor pagination.
GET /email_inboxes
page_size defaults to 20 and accepts 1-250. An absent .meta.page_cursor means there is no next page.
Get an inbox
GET /email_inboxes/{id}
Missing, deleted, and foreign inboxes return an opaque 404.
Delete an inbox
Soft-delete an inbox. Its address remains reserved, and list/get no longer return it.
DELETE /email_inboxes/{id}
Success is 204 No Content. Do not attempt to parse a success response body.
List and search inbound messages
Lists inbound messages newest first. Filters compose with stable cursor pagination.
GET /email_inboxes/{inbox_id}/messages
| Query parameter | Behavior | |
|---|---|---|
filter[from] | Case-insensitive literal substring of sender address. | |
filter[subject] | Case-insensitive literal substring of subject. | |
filter[received_after] | Inclusive ISO 8601 lower timestamp bound. | |
filter[received_before] | Inclusive ISO 8601 upper timestamp bound. | |
filter[read] | Filter by presence of a read timestamp. | |
filter[unread] | Set true for messages with no read timestamp. | |
filter[label] | Exact, case-sensitive label filter; label mutation is not yet gateway-routed. | |
filter[search] | PostgreSQL full-text query over subject and bodies, maximum 500 characters. | |
page[size] | 1-100; defaults to 25. | |
page[after] | Opaque cursor from .meta.page_cursor. |
Each result includes the Telnyx message UUID in .data[].id, the RFC header value in .data[].message_id, its .data[].thread_id, envelope addresses, body URLs, file metadata, labels, and read/received timestamps.
Mark a message read or unread
PATCH /email_inboxes/{inbox_id}/messages/{message_id}
Set read_at to true for server time, an ISO 8601 timestamp for explicit time, or null to mark unread. Repeating the same update is idempotent.
The response returns the updated inbound message in .data.
Reply to a message
Recipients are derived from the original Reply-To, falling back to From. Original Cc recipients are not included. Telnyx adds the Re: subject prefix and threading headers.
POST /email_inboxes/{inbox_id}/messages/{message_id}/actions/reply
At least one of text or html must contain non-whitespace content. Caller-supplied to, cc, and bcc are ignored. Success is 202; .data.id is the queued outbound message ID. Inspect optional .suppressed[] and the X-Telnyx-Reputation-Warning response header.
Reply all to a message
The To list starts with original Reply-To or From and includes original To recipients; Cc includes original Cc. The inbox address is excluded and recipients are de-duplicated case-insensitively. Bcc is empty.
POST /email_inboxes/{inbox_id}/messages/{message_id}/actions/reply_all
The body rules, 202 response, suppression behavior, domain requirement, and threading behavior are the same as reply.
Forward a message
Supply at least one To recipient. Recipients may be email strings or objects with email and optional name. Telnyx prepends optional text/html notes to a generated forwarded-message block and applies the Fwd: subject prefix.
POST /email_inboxes/{inbox_id}/messages/{message_id}/actions/forward
Success is 202. Partial suppression appears in .suppressed[]; if every recipient is suppressed, the request returns 422 and no message is sent.
List threads in one inbox
GET /email_inboxes/{inbox_id}/threads
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-inbound-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-inbound-curl)