Get batch job files
curl --request GET \
--url https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files', 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.batch.slng.ai/v1/batch/jobs/{jobId}/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job_id": "myjob123",
"inputs": [
{
"key": "inputs/myjob123.wav",
"s3_uri": "s3://slng-production-batch-input/inputs/myjob123.wav",
"download_url": "https://slng-production-batch-input.s3.amazonaws.com/inputs/myjob123.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
}
],
"outputs": [
{
"format": "json",
"key": "outputs/myjob123.json",
"s3_uri": "s3://slng-production-batch-output/outputs/myjob123.json",
"download_url": "https://slng-production-batch-output.s3.amazonaws.com/outputs/myjob123.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
},
{
"format": "txt",
"key": "outputs/myjob123.txt",
"s3_uri": "s3://slng-production-batch-output/outputs/myjob123.txt",
"download_url": "https://slng-production-batch-output.s3.amazonaws.com/outputs/myjob123.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
},
{
"format": "srt",
"key": "outputs/myjob123.srt",
"s3_uri": "s3://slng-production-batch-output/outputs/myjob123.srt",
"download_url": "https://slng-production-batch-output.s3.amazonaws.com/outputs/myjob123.srt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
}
]
}{
"error": "job_id must be alphanumeric"
}{
"error": "API key id not found"
}{
"error": "Job not found"
}{
"error": "Internal server error"
}Speechmatics
Get batch job files
Returns signed download URLs for the input audio and the output transcripts of a completed job. Outputs are returned per available format (json, txt, srt); missing formats are omitted.
GET
/
v1
/
batch
/
jobs
/
{jobId}
/
files
Get batch job files
curl --request GET \
--url https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files', 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.batch.slng.ai/v1/batch/jobs/{jobId}/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.batch.slng.ai/v1/batch/jobs/{jobId}/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job_id": "myjob123",
"inputs": [
{
"key": "inputs/myjob123.wav",
"s3_uri": "s3://slng-production-batch-input/inputs/myjob123.wav",
"download_url": "https://slng-production-batch-input.s3.amazonaws.com/inputs/myjob123.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
}
],
"outputs": [
{
"format": "json",
"key": "outputs/myjob123.json",
"s3_uri": "s3://slng-production-batch-output/outputs/myjob123.json",
"download_url": "https://slng-production-batch-output.s3.amazonaws.com/outputs/myjob123.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
},
{
"format": "txt",
"key": "outputs/myjob123.txt",
"s3_uri": "s3://slng-production-batch-output/outputs/myjob123.txt",
"download_url": "https://slng-production-batch-output.s3.amazonaws.com/outputs/myjob123.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
},
{
"format": "srt",
"key": "outputs/myjob123.srt",
"s3_uri": "s3://slng-production-batch-output/outputs/myjob123.srt",
"download_url": "https://slng-production-batch-output.s3.amazonaws.com/outputs/myjob123.srt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&..."
}
]
}{
"error": "job_id must be alphanumeric"
}{
"error": "API key id not found"
}{
"error": "Job not found"
}{
"error": "Internal server error"
}Authorizations
API key from the SLNG dashboard.
Path Parameters
The alphanumeric job identifier.
Pattern:
^[a-zA-Z0-9]+$Was this page helpful?
⌘I