Tip: If the backslashes don't work in your terminal, use this single-line version instead:
curl -X POST https://t3xtr.org/api/register -H "Content-Type: application/json" -d '{"email":"your@email.com"}'
Response
{
"message": "Registration successful. Please check your email to verify your account.",
"user_id": "user_xyz789...",
"status": "pending_verification",
"email_sent": true,
"note": "You must verify your email before using the API"
}
⚠️ Email Verification Required: You must verify your email address before you can use the API. Check your inbox for a verification email from T3XTR.
2
Verify Your Email Address
Check your email inbox for a verification message from T3XTR and click the verification link.
What to expect: You'll receive a beautifully formatted email with a verification link. Click the link to activate your account.
After clicking the verification link, you'll see:
{
"message": "Email verified successfully! Your account is now active.",
"user_id": "user_xyz789...",
"email": "your@email.com",
"status": "active",
"verified_at": "2025-06-21T18:30:00.000Z"
}
3
Get Your API Key
After verifying your email, register again with the same email to get your API key.
{
"message": "User already exists and email is verified",
"api_key": "tk_abc123def456...",
"user_id": "user_xyz789...",
"plan": "free",
"created_at": "2025-06-21T18:30:00.000Z",
"status": "active"
}
Save your API key! Copy the api_key from the response - you'll need it for all future requests.
4
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: