Save your API key! Copy the api_key from the response - you'll need it for all future requests.
2
Make Your First Conversion
Let's convert some Markdown text to HTML using your new API key.
curl -X POST https://t3xtr.org/api/markdown-to-html \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: text/plain" \
-d "# Welcome to T3XTR\nThis is **bold** text.\n\n## Features\n- Fast conversions"
Better method (preserves formatting):
printf "# Welcome to T3XTR\nThis is **bold** text.\n\n## Features\n- Fast conversions" | curl -X POST https://t3xtr.org/api/markdown-to-html -H "X-API-Key: your_api_key_here" -H "Content-Type: text/plain" --data-binary @-
Response
{
"success": true,
"result": "<h1>Welcome to T3XTR</h1>\n<p>This is <strong>bold</strong> text and this is <em>italic</em>.</p>\n<h2>Features</h2>\n<ul>\n<li>Fast conversions</li>\n<li>Multiple formats</li>\n<li>Simple API</li>\n</ul>",
"processing_time": 25
}
3
Check Your Usage
Monitor your API usage and remaining requests with the usage endpoint.
curl -X POST https://t3xtr.org/api/csv-to-json \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: text/plain" \
-d "name,email,role
John Doe,john@example.com,developer
Jane Smith,jane@example.com,designer"
Generate PDF from HTML
curl -X POST https://t3xtr.org/api/html-to-pdf \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: text/plain" \
-d "<html>
<head><title>My Report</title></head>
<body>
<h1>Monthly Report</h1>
<p>This is a sample report generated from HTML.</p>
</body>
</html>" \
--output report.pdf
Response Headers
All API responses include helpful headers to track your usage:
X-Monthly-Usage: 25 # Requests used this month
X-Monthly-Limit: 100 # Your monthly limit
X-Credits-Remaining: 50 # Pay-per-use credits available
X-RateLimit-Remaining: 275 # Requests left in rate limit window
Troubleshooting
Curl Command Issues
"URL rejected: Malformed input": This usually means the backslashes in multi-line curl commands aren't working in your terminal. Use the single-line versions provided instead.
"Validation failed: Email is required": Make sure you're using proper JSON formatting with double quotes: {"email":"your@email.com"}
Common API Errors
The API returns standard HTTP status codes. Here are the most common ones:
401 Unauthorized: Check that your API key is correct and included in the X-API-Key header.
402 Payment Required: You've exceeded your monthly limit and don't have enough credits. Add credits to continue.
429 Too Many Requests: You're hitting the rate limit. Wait a moment before making more requests.
Adding Credits
When you exceed your free monthly limit, requests cost $0.002 each. Add credits to your account: