List music generations (paginated)
curl --request GET \
--url https://mvp.tryunsora.com/api/v1/music-generations/all \
--header 'Authorization: Bearer <token>'import requests
url = "https://mvp.tryunsora.com/api/v1/music-generations/all"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mvp.tryunsora.com/api/v1/music-generations/all', 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://mvp.tryunsora.com/api/v1/music-generations/all",
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://mvp.tryunsora.com/api/v1/music-generations/all"
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://mvp.tryunsora.com/api/v1/music-generations/all")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mvp.tryunsora.com/api/v1/music-generations/all")
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{
"success": true,
"generations": [
{
"id": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"lyrics": "<string>",
"prompt": "<string>",
"model": "<string>",
"outputFormat": "<string>",
"error": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"outputAsset": {}
}
],
"pagination": {
"currentPage": 123,
"totalPages": 123,
"totalCount": 123,
"limit": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}Music generator
List generations
Paginated list of music generations for the authenticated user.
GET
/
music-generations
/
all
List music generations (paginated)
curl --request GET \
--url https://mvp.tryunsora.com/api/v1/music-generations/all \
--header 'Authorization: Bearer <token>'import requests
url = "https://mvp.tryunsora.com/api/v1/music-generations/all"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://mvp.tryunsora.com/api/v1/music-generations/all', 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://mvp.tryunsora.com/api/v1/music-generations/all",
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://mvp.tryunsora.com/api/v1/music-generations/all"
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://mvp.tryunsora.com/api/v1/music-generations/all")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mvp.tryunsora.com/api/v1/music-generations/all")
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{
"success": true,
"generations": [
{
"id": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"lyrics": "<string>",
"prompt": "<string>",
"model": "<string>",
"outputFormat": "<string>",
"error": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"outputAsset": {}
}
],
"pagination": {
"currentPage": 123,
"totalPages": 123,
"totalCount": 123,
"limit": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}Returns music generations for the authenticated user, newest first.
Poll completion with Poll music status. Fetch one record with Get music generation.
GET /music-generations/all
Query parameters
Page number (1-based).
Items per page. Min
1, max 100.Response
{
"success": true,
"generations": [
{
"id": "cm123abc",
"status": "COMPLETED",
"lyrics": "[Verse]\nNeon rain falls...",
"prompt": "r&b, slow, passionate, male vocal",
"model": "mureka-v9",
"outputFormat": "mp3",
"error": null,
"createdAt": "2026-06-10T12:00:00.000Z",
"updatedAt": "2026-06-10T12:02:30.000Z",
"outputAsset": { "url": "https://files.tryunsora.com/....mp3" }
}
],
"pagination": {
"currentPage": 1,
"totalPages": 1,
"totalCount": 3,
"limit": 12,
"hasNextPage": false,
"hasPreviousPage": false
}
}
Example
curl "https://mvp.tryunsora.com/api/v1/music-generations/all?page=1&limit=12" \
-H "Authorization: Bearer uns_live_YOUR_API_KEY"
Authorizations
Clerk session JWT or Unsora API key (uns_live_*)
⌘I

