Publish or hide a character

October 16, 2026

Table of contents

  1. Request Headers
  2. Request Body
  3. Responses
  4. Examples
  5. Try It

https://api.useapi.net/v1/mureka/music/characters-publish

Make a character private, so only you can see it, or publish it on mureka.ai again. A private character works the same in POST /music/create-advanced.

New characters from POST /music/characters are public unless created with private: true.

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
Request Body
{
    "account": "12345678901234",
    "character_id": 166751507709953,
    "private": true
}
  • account is optional when only one account is configured. However, if you have multiple accounts configured, this parameter becomes required.

  • character_id is required, the id from GET /music/characters.

  • private is optional (default: false).
    true makes the character private. false publishes it on mureka.ai.

Responses
  • 200 OK

    {
        "character_id": 166751507709953,
        "private": true
    }
    
  • 400 Bad Request

    {
      "error": "Parameter character_id is required",
      "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Wrong username/password combination.",
      "code": 401
    }
    
  • 596 Account Error

    Returned when the account has an error state preventing API calls.

    {
        "error": "Session refresh failed 2026-01-19T14:31:15.000Z, manual update required",
        "code": "REFRESH_FAILED"
    }
    

    Possible error codes:

    • ACCOUNT_ERROR - Account has a blocking error
    • REFRESH_FAILED - Automatic token refresh failed
    • REFRESH_IN_PROGRESS - Token refresh already in progress, retry shortly
    • SESSION_EXPIRED - Session expired and no auto-refresh available
    • COOKIE_EXPIRED - Google cookie has expired

    To resolve, update your account configuration via POST /accounts.

Examples
  • curl -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -H "Authorization: Bearer …" \
         -X POST https://api.useapi.net/v1/mureka/music/characters-publish \
         -d '{"account": "…", "character_id": …, "private": true}'
    
  • const account = "12345678901234";
    const character_id = 166751507709953;
    const apiUrl = `https://api.useapi.net/v1/mureka/music/characters-publish`; 
    const api_token = "API token";
    const data = { 
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${api_token}`,
        'Content-Type': 'application/json' }
    };
    data.body = JSON.stringify({ account, character_id, private: true });
    const response = await fetch(apiUrl, data);
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    apiUrl = f"https://api.useapi.net/v1/mureka/music/characters-publish" 
    api_token = "API token"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {api_token}"
    }
    body = {
        "account": "12345678901234",
        "character_id": 166751507709953,
        "private": True
    }
    response = requests.post(apiUrl, headers=headers, json=body)
    print(response, response.json())
    
Try It