curl --request POST \
--url https://api.olie.ai/api/management/medias/{media}/transcription/retry \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/medias/{media}/transcription/retry"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/medias/{media}/transcription/retry', 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.olie.ai/api/management/medias/{media}/transcription/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.olie.ai/api/management/medias/{media}/transcription/retry"
req, _ := http.NewRequest("POST", 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.post("https://api.olie.ai/api/management/medias/{media}/transcription/retry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/medias/{media}/transcription/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"response": true,
"media": {
"id": "019e1a48-6c21-70aa-8b14-2f7c0e91aa04",
"name": "recado-cliente",
"technical_name": "recado-cliente.019e1a48",
"type": 3,
"extension": "ogg",
"text": null,
"file_url": "https://cdn.olie.ai/frames/projects/recado-cliente.ogg",
"transcription_status": "processing",
"transcription": null,
"log": null,
"user_id": "019c1e87-63f4-71dd-a4e3-6eaea0619c2f",
"frame_id": "019c75de-532c-7047-9563-daf1448ca963",
"project_id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"channel_id": null,
"direction": null,
"origin": "internal",
"external_message_id": null,
"task_id": null,
"delivery_error": null,
"created_at": "2026-08-18T14:11:02.000000Z",
"updated_at": "2026-08-18T14:11:02.000000Z",
"deleted_at": null,
"user": {
"id": "019c1e87-63f4-71dd-a4e3-6eaea0619c2f",
"name": "Usuário",
"avatar_url": null
},
"project": {
"id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"name": "Implantação Acme"
}
}
}Tentar a transcrição de um áudio de novo
Envia de novo para transcrição um áudio cuja transcrição falhou, ou que permanece em processing há mais de 60 segundos. A resposta segue o formato da listagem de conteúdos: traz transcription_status processing e transcription nulo, e não traz transcription_started_at.
A transcrição de áudio precisa estar ativa na conta. Sem ela, a resposta é 403 com message feature_disabled e feature audio_transcription.
Só entra áudio (type 3) com transcription_status failed, ou processing cuja tentativa começou há mais de 60 segundos. completed, no_speech, too_long, status nulo e qualquer conteúdo que não seja áudio respondem 422, com validation.transcription_status igual a This audio cannot be retried. Uma segunda chamada enquanto a nova tentativa ainda não completou 60 segundos também responde 422.
O usuário precisa da permissão de conteúdo do projeto (projects.media.{id}). Um token de aplicação recebe 403 com message access_denied_for_applications. Áudio de outra conta responde 404 com message media_model_not_found.
curl --request POST \
--url https://api.olie.ai/api/management/medias/{media}/transcription/retry \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.olie.ai/api/management/medias/{media}/transcription/retry"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.olie.ai/api/management/medias/{media}/transcription/retry', 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.olie.ai/api/management/medias/{media}/transcription/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.olie.ai/api/management/medias/{media}/transcription/retry"
req, _ := http.NewRequest("POST", 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.post("https://api.olie.ai/api/management/medias/{media}/transcription/retry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.olie.ai/api/management/medias/{media}/transcription/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"response": true,
"media": {
"id": "019e1a48-6c21-70aa-8b14-2f7c0e91aa04",
"name": "recado-cliente",
"technical_name": "recado-cliente.019e1a48",
"type": 3,
"extension": "ogg",
"text": null,
"file_url": "https://cdn.olie.ai/frames/projects/recado-cliente.ogg",
"transcription_status": "processing",
"transcription": null,
"log": null,
"user_id": "019c1e87-63f4-71dd-a4e3-6eaea0619c2f",
"frame_id": "019c75de-532c-7047-9563-daf1448ca963",
"project_id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"channel_id": null,
"direction": null,
"origin": "internal",
"external_message_id": null,
"task_id": null,
"delivery_error": null,
"created_at": "2026-08-18T14:11:02.000000Z",
"updated_at": "2026-08-18T14:11:02.000000Z",
"deleted_at": null,
"user": {
"id": "019c1e87-63f4-71dd-a4e3-6eaea0619c2f",
"name": "Usuário",
"avatar_url": null
},
"project": {
"id": "019e0edb-aa7c-70c4-9d2d-3a2f175b5ddf",
"name": "Implantação Acme"
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID (UUID) do áudio.
Was this page helpful?