Retrieve PixVerse accounts information

Table of contents

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

For your convenience, you can specify your PixVerse configuration values under your PixVerse account. If you specify multiple PixVerse accounts, the API will automatically perform load balancing by randomly selecting an account with available capacity before making calls to Discord / PixVerse.

This endpoint retrieves the complete list of configured accounts for PixVerse.

https://api.useapi.net/v1/pixverse/account

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Responses
  • 200 OK

    {
        "Discord channel A": {
            "server": "Discord server A",
            "channel": "Discord channel A",
            "discord": "Discord token A",
            "maxJobs": 1-10
        },
        "Discord channel B": {
            "server": "Discord server B",
            "channel": "Discord channel B",
            "discord": "Discord token B",
            "maxJobs": 1-10
        },
        "Discord channel N": {
            "server": "Discord server N",
            "channel": "Discord channel N",
            "discord": "Discord token N",
            "maxJobs": 1-10
        }    
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    Configuration not found. To create configuration use pixverse/account/channel.

Model
{ // TypeScript, all fields are optional
  [channel: string]: {
    discord: string, 
    server: string,
    channel: string,
    maxJobs: number
  }
}
Examples
  • curl https://api.useapi.net/v1/pixverse/account \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v1/pixverse/account"; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    apiUrl = "https://api.useapi.net/v1/pixverse/account"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It