Skip to main content
GET
/
api
/
voices
/
{voiceId}
Get voice
curl --request GET \
  --url https://api.upon-ai.com/api/voices/{voiceId} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.upon-ai.com/api/voices/{voiceId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.upon-ai.com/api/voices/{voiceId}', 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.upon-ai.com/api/voices/{voiceId}",
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.upon-ai.com/api/voices/{voiceId}"

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.upon-ai.com/api/voices/{voiceId}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.upon-ai.com/api/voices/{voiceId}")

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
{
  "voiceId": "<string>",
  "name": "<string>",
  "gender": "<string>",
  "language": "<string>",
  "accent": "<string>",
  "description": "<string>",
  "provider": "<string>",
  "previewUrl": "<string>",
  "playbackOverrideUrl": "<string>",
  "tags": [
    "<string>"
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Generate tokens from your profile settings at app.uponai.com.

Headers

X-Actor-Type
enum<string>

Optional actor type for privileged white-label context selection.

Available options:
platform_admin,
provider_admin,
tenant_admin,
end_user
X-Provider-Id
integer

Optional provider scope identifier for privileged multi-tenant access.

X-Tenant-Id
integer

Optional tenant/workspace context override.

X-Impersonation-Reason
string

Required for privileged tenant-scoped requests when actor type is platform or provider admin.

Path Parameters

voiceId
string
required

Voice identifier.

Query Parameters

workspaceId
integer
required

Workspace identifier. Call GET /api/workspaces to list workspaces accessible to your token.

Response

200 - application/json

Voice metadata.

voiceId
string
required
name
string
required
gender
string
language
string
accent
string
description
string
provider
string
previewUrl
string<uri>
playbackOverrideUrl
string<uri> | null
tags
string[]
createdAt
string<date-time> | null
updatedAt
string<date-time> | null