Transcriptions — Get Upload URL
curl --request POST \
--url https://api.linqalpha.com/v2/transcriptions/uploads \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"file_name": "bam-call.mp3",
"content_type": "audio/mpeg"
}
'import requests
url = "https://api.linqalpha.com/v2/transcriptions/uploads"
payload = {
"file_name": "bam-call.mp3",
"content_type": "audio/mpeg"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_name: 'bam-call.mp3', content_type: 'audio/mpeg'})
};
fetch('https://api.linqalpha.com/v2/transcriptions/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linqalpha.com/v2/transcriptions/uploads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_name' => 'bam-call.mp3',
'content_type' => 'audio/mpeg'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linqalpha.com/v2/transcriptions/uploads"
payload := strings.NewReader("{\n \"file_name\": \"bam-call.mp3\",\n \"content_type\": \"audio/mpeg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linqalpha.com/v2/transcriptions/uploads")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_name\": \"bam-call.mp3\",\n \"content_type\": \"audio/mpeg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linqalpha.com/v2/transcriptions/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_name\": \"bam-call.mp3\",\n \"content_type\": \"audio/mpeg\"\n}"
response = http.request(request)
puts response.read_body{
"error": null,
"payload": {
"upload_id": "8d2e6c1a-4f0b-4d7e-9a3c-2b1f5e6a7c90",
"presigned_url": "https://linq-vertex-documents.s3.amazonaws.com/transcriptions/<org_id>/uploads/<upload_id>/input/audio.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&...",
"expiration_seconds": 3600
}
}Transcriptions
Transcriptions — Get Upload URL
Step 1 of the historical-audio transcription flow. Returns a signed S3 PUT URL for one audio file; PUT the bytes there with exactly the returned headers, then submit the upload_id to POST /v2/transcriptions.
POST
/
v2
/
transcriptions
/
uploads
Transcriptions — Get Upload URL
curl --request POST \
--url https://api.linqalpha.com/v2/transcriptions/uploads \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"file_name": "bam-call.mp3",
"content_type": "audio/mpeg"
}
'import requests
url = "https://api.linqalpha.com/v2/transcriptions/uploads"
payload = {
"file_name": "bam-call.mp3",
"content_type": "audio/mpeg"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_name: 'bam-call.mp3', content_type: 'audio/mpeg'})
};
fetch('https://api.linqalpha.com/v2/transcriptions/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linqalpha.com/v2/transcriptions/uploads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_name' => 'bam-call.mp3',
'content_type' => 'audio/mpeg'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linqalpha.com/v2/transcriptions/uploads"
payload := strings.NewReader("{\n \"file_name\": \"bam-call.mp3\",\n \"content_type\": \"audio/mpeg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linqalpha.com/v2/transcriptions/uploads")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_name\": \"bam-call.mp3\",\n \"content_type\": \"audio/mpeg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linqalpha.com/v2/transcriptions/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_name\": \"bam-call.mp3\",\n \"content_type\": \"audio/mpeg\"\n}"
response = http.request(request)
puts response.read_body{
"error": null,
"payload": {
"upload_id": "8d2e6c1a-4f0b-4d7e-9a3c-2b1f5e6a7c90",
"presigned_url": "https://linq-vertex-documents.s3.amazonaws.com/transcriptions/<org_id>/uploads/<upload_id>/input/audio.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&...",
"expiration_seconds": 3600
}
}Step 1 of the historical-audio transcription flow. Returns a signed S3
Request fields:
PUT URL for one audio file. Nothing is processed until you submit the returned upload_id to POST /v2/transcriptions.
Flow
POST /v2/transcriptions/uploads→{ upload_id, presigned_url, expiration_seconds }PUTthe audio bytes topresigned_urlwith aContent-Typeheader matching the one you declaredPOST /v2/transcriptionswithupload_id(+ optionaltarget_language) →202 { job_id, status: "queued" }GET /v2/transcriptions/{job_id}every 30–60 s untilstatusissucceededorfailed
curl --request POST \
--url 'https://api.linqalpha.com/v2/transcriptions/uploads' \
--header 'X-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{"file_name":"bam-call.mp3","content_type":"audio/mpeg"}'
file_name and content_type, both required, exactly as on the Vault route. The uploaded object’s size (max 2 GB) and type are verified from S3 when you submit the job.
Then upload the file:
curl --request PUT \
--header 'Content-Type: audio/mpeg' \
--upload-file bam-call.mp3 \
'<presigned_url>'
Same
PUT convention as POST /v2/vault/presigned_url: the URL is single-object and expires after expiration_seconds (1 hour), and the PUT request’s Content-Type must match the content_type you declared because it is bound into the signature. Supported types: audio/mpeg (mp3), audio/mp4 and audio/x-m4a (m4a), video/mp4 (mp4). Convert WAV, FLAC, OGG or WebM recordings to one of these before uploading. Maximum size 2 GB.Authorizations
Body
application/json
Example:
"bam-call.mp3"
MIME type of the audio (mp3, m4a or mp4; convert wav/flac/ogg/webm first). Bound into the presigned URL signature; the PUT must send the same Content-Type.
Available options:
audio/mpeg, audio/mp4, audio/x-m4a, video/mp4 Example:
"audio/mpeg"
Was this page helpful?