REST API v1 Reference
Developer API & Integration Guide
Automate media sanitization with high-throughput REST endpoints and webhook event delivery.
1. Authentication
Authenticate API requests by including your secret API key in the X-API-Key request header:
# Pass your key via header
curl -X POST https://api.traceless.ai/api/v1/media/process \
-H "X-API-Key: tl_live_your_secret_key" \
-F "file=@image.jpg" \
-F "preset=INSTAGRAM"
curl -X POST https://api.traceless.ai/api/v1/media/process \
-H "X-API-Key: tl_live_your_secret_key" \
-F "file=@image.jpg" \
-F "preset=INSTAGRAM"
2. Core REST Endpoints
| Method | Endpoint | Description | Rate Limit |
|---|---|---|---|
| POST | /api/v1/media/process | Upload and sanitize media file with automated C2PA & SynthID purge | 100 req/min |
| GET | /api/v1/media/jobs/{id} | Query job processing stage, SSIM score, and status telemetry | 300 req/min |
| GET | /api/v1/media/jobs/{id}/download | Download sanitized binary asset within 60-minute ephemeral retention | 300 req/min |
| GET | /api/v1/users/me | Inspect remaining account quota and active subscription tier | 60 req/min |
3. Python Integration Example
import requests
response = requests.post(
"https://api.traceless.ai/api/v1/media/process",
headers={"X-API-Key": "tl_live_your_key"},
files={"file": open("sample.png", "rb")},
data={"preset": "INSTAGRAM", "strip_metadata": "true"}
)
result = response.json()
print(f"Job ID: {result['id']}, SSIM Score: {result['ssim_score']}")
response = requests.post(
"https://api.traceless.ai/api/v1/media/process",
headers={"X-API-Key": "tl_live_your_key"},
files={"file": open("sample.png", "rb")},
data={"preset": "INSTAGRAM", "strip_metadata": "true"}
)
result = response.json()
print(f"Job ID: {result['id']}, SSIM Score: {result['ssim_score']}")
