Voiceover Outputs
GET
/v1/audio/voiceover/outputs
This endpoint is for retrieving for the voiceover operation.
Request Example
Below is an example for retrieving the outputs of previously created voiceovers.
curl -X GET 'https://api.stablecog.com/v1/audio/voiceover/outputs' \
-H 'Authorization: Bearer <YOUR_STABLECOG_API_KEY>' \
-H 'Content-Type: application/json'
const API_KEY = process.env.STABLECOG_API_KEY;
const API_HOST = 'https://api.stablecog.com';
const API_ENDPOINT = '/v1/audio/voiceover/outputs';
const API_URL = `${API_HOST}${ENDPOINT}`;
const res = await fetch(API_URL,
headers: {
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
}
);
const resJSON = await res.json();
console.log(resJSON);
import os
import requests
API_KEY = os.getenv('STABLECOG_API_KEY')
API_HOST = 'https://api.stablecog.com'
API_ENDPOINT = '/v1/audio/voiceover/outputs'
API_URL = f'{API_HOST}{API_ENDPOINT}'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json'
}
response = requests.get(API_URL, headers=headers)
res_json = response.json()
print(json.dumps(res_json, indent=2))
Response
{
"total_count": 15,
"outputs": [···]
}
Request Headers
Authorization required
string
Send your API key as the value of this header in the following form:
Authorization: Bearer <YOUR_STABLECOG_API_KEY>
.Response Body
total_count
int
The total number of voiceovers you have.
outputs
array of TVoiceoverOutput
An array of voiceovers and their outputs.
next
string
The cursor for the next page. If there is no next page, this will be omitted.