check whether the account of a task is offline
curl --request GET \
--url https://api.mountsea.ai/suno/v2/checkAccountOffline \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountsea.ai/suno/v2/checkAccountOffline"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountsea.ai/suno/v2/checkAccountOffline', 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.mountsea.ai/suno/v2/checkAccountOffline",
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.mountsea.ai/suno/v2/checkAccountOffline"
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.mountsea.ai/suno/v2/checkAccountOffline")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/checkAccountOffline")
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{
"offline": false,
"credits": 9936
}Suno
Check Account Offline
Look up whether the account that ran a task is offline
GET
/
suno
/
v2
/
checkAccountOffline
check whether the account of a task is offline
curl --request GET \
--url https://api.mountsea.ai/suno/v2/checkAccountOffline \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountsea.ai/suno/v2/checkAccountOffline"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountsea.ai/suno/v2/checkAccountOffline', 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.mountsea.ai/suno/v2/checkAccountOffline",
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.mountsea.ai/suno/v2/checkAccountOffline"
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.mountsea.ai/suno/v2/checkAccountOffline")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/checkAccountOffline")
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{
"offline": false,
"credits": 9936
}Look up the account that executed
taskId. Synchronous — the same response is the result. No taskId is created. Do not poll /status.
Returns 404 when the task does not exist. Does not return the account id.
credits is a local snapshot, not a live official query.Query
| Field | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | An existing async task id (generate, voices, …) |
Response
| Field | Type | Description |
|---|---|---|
offline | boolean | true when the task has no account yet, the account is missing, or its status is not available (paused, restricted, soft_exhausted, expired, …) |
credits | number | Local credit snapshot of that account. 0 when offline because there is no account |
curl -X GET "https://api.mountsea.ai/suno/v2/checkAccountOffline?taskId=your-task-id" \
-H "Authorization: Bearer your-api-key"
{
"offline": false,
"credits": 9936
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Task ID
Example:
"1212"