Openapi
List all API tokens for the authenticated user
Invalid request
Permission denied
Server error
GET /openapi/auth/token/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Accept: */*
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"tokens": [
{
"access_token": "text",
"token_type": "text",
"expires_in": 1
}
]
}
}
Issue a new API token
Invalid request
Permission denied
Server error
POST /openapi/auth/token/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"grant_type": "client_credentials",
"scope": "text",
"client_id": "123e4567-e89b-12d3-a456-426614174000",
"client_secret": "text"
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"access_token": "text",
"token_type": "text",
"expires_in": 1
}
}
Delete API tokens
Invalid request
Permission denied
Server error
POST /openapi/auth/token/delete/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"api_tokens": [
"text"
]
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"requested_count": 1,
"deleted_count": 1
}
}
Audio source seperation
File ID
Invalid request
Permission denied
Server error
POST /openapi/v1/audio-separation/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 18
{
"file_id": "text"
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"task_id": "text"
}
}
API user gets credit
Invalid request
Permission denied
Server error
GET /openapi/v1/credit/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Accept: */*
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"credit": 1
}
}
View task
Task ID
Invalid request
Permission denied
Server error
POST /openapi/v1/task/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 18
{
"task_id": "text"
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"source_assets": [
{
"id": "text",
"name": "text",
"mime_type": "text",
"extension": "text",
"link": "text"
}
],
"output_assets": [
{
"id": "text",
"name": "text",
"mime_type": "text",
"extension": "text",
"link": "text"
}
],
"status": "text",
"created_at": "text",
"updated_at": "text",
"started_at": "text",
"error_message": "text"
}
}
Transcription
File ID
Detect speakers
true
Number of speakers (0~9, 0 for auto-detect)
Enable speaker name
Denoise audio
false
Invalid request
Permission denied
Server error
POST /openapi/v1/transcription/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 96
{
"file_id": "text",
"detect_speakers": true,
"speakers": 1,
"speaker_name": true,
"denoise_audio": false
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"task_id": "text"
}
}
Translation
File ID of SRT file
Enable speaker name
Source language (en, ko, ja, zh, ca, cs, da, de, el, hu, hi, id, it, lv, mk, ms, nl, pl, pt, ro, ru, sr, sl, es, sv, th, fr, hr, yue)
Target language (en, ko, ja, es, zh, de, fr, pt, vi, id, ru, hi, ta, hr, el, sv, cs, ro, hu, da, fi, ms, sk)
Invalid request
Permission denied
Server error
POST /openapi/v1/translation/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 88
{
"file_id": "text",
"speaker_name": true,
"source_language": "text",
"target_language": "text"
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"task_id": "text"
}
}
API user uploads a single file
Upload a file (e.g. @/path/to/file.wav;type=audio/wav)
Invalid request
Permission denied
Server error
POST /openapi/v1/upload/file/ HTTP/1.1
Host: app.timbr.studio
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}
{
"status": 1,
"result_code": "text",
"message": "text",
"data": {
"files": [
{
"file_id": "text",
"expires_at": "text",
"content_type": "text",
"file_size": 1,
"uploaded_size": 1
}
]
}
}