API Reference
Start Conversion
Submit an FTR file for conversion to M4A format.
Endpoint
POST
/convert/v1/processcurl -X POST https://api.case.dev/convert/v1/process \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"input_url": "https://your-bucket.s3.amazonaws.com/hearing-2024-11-04.ftr",
"callback_url": "https://your-app.com/ftr-conversion-complete"
}'Example Request
Example Response
Request Parameters
Required:
input_url(string): HTTPS URL to your FTR file- Must be publicly accessible (S3 presigned URL recommended)
- Max file size: 5GB
Optional:
callback_url(string): Webhook URL to receive completion notification- No polling needed for long conversions
Preparing Your FTR File
Recommended approach using S3:
Check Conversion Status
Get the current status and progress of a conversion job.
Endpoint
GET
/convert/v1/jobs/conv_1f4a195e026b41ffb367c61089f5f367curl -X GET https://api.case.dev/convert/v1/jobs/conv_1f4a195e026b41ffb367c61089f5f367 \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json"Example Request
Example Response (Completed)
Status Values
queued: Job accepted, waiting to startprocessing: Currently converting the FTR filecompleted: Finished, ready to downloadfailed: Conversion failedexpired: File was deleted (7 day limit)
Download Converted File
Download the converted M4A audio file.
Endpoint
GET
/convert/v1/download/conv_1f4a195e026b41ffb367c61089f5f367curl -X GET https://api.case.dev/convert/v1/download/conv_1f4a195e026b41ffb367c61089f5f367 \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json"Example Request
Notes
- Files stored for 7 days after completion
- Download unlimited times within 7 days
- M4A works in all audio players
- Ready for transcription services
Delete Conversion Job
Delete a conversion job and its M4A file.
Endpoint
DELETE
/convert/v1/jobs/conv_1f4a195e026b41ffb367c61089f5f367curl -X DELETE https://api.case.dev/convert/v1/jobs/conv_1f4a195e026b41ffb367c61089f5f367 \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{}'Example Request
Processing Times
| FTR Duration | Typical Processing Time |
|---|---|
| 30 minutes | 30-45 seconds |
| 1 hour | 1-2 minutes |
| 3 hours | 3-5 minutes |
| 8 hours | 8-12 minutes |
Pro tip: Use webhooks for files over 1 hour!