Retrieve useapi.net account information

December 2023 (April 7, 2025)

Table of contents

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

Use this endpoint to retrieve the list of all configured AI services accounts and current subscription status.

Response fields descriptions:

  • subscriptionIsActive indicates your subscription status.
  • subscriptions is the number of purchased useapi.net subscriptions, you can buy more at Subscription.
  • maxAccountsPerAPI is the maximum allowed number of accounts per each AI service based on your current subscriptions.
    A single useapi.net subscription supports up to three accounts for each AI service. If you need more accounts, you’ll need to purchase additional subscriptions.
  • sub indicates the date when subscription was renewed, in YYMMDD format.
  • accounts provides the number of total, active, and error accounts for each configured AI service.
    If you do not plan on fixing and reusing error accounts, you should delete them, as they count towards the total number of accounts and will consume subscription allocations.
  • error indicates if there are any outstanding issues with an account.

https://api.useapi.net/v2/account

Request Headers
Authorization: Bearer {API token}
Responses
  • 200 OK

    {
        "id": 12345,
        "email": "[email protected]",
        "created": "2023-07-25T03:02:28.676Z",
        "name": "Your Name",
        "subscriptionIsActive": true,
        "subscriptions": 1,
        "maxAccountsPerAPI": 3,
        "accounts": {
            "Midjourney API": {
                "total": 3,
                "active": 2,
                "error": 1
            },
            "MiniMax API": {
                "total": 3,
                "active": 3
            },
            "Runway AP": {
                "total": 1,
                "active": 1
            },
            "Riffusion API": {
                "total": 3,
                "active": 3
            }
        },
        "verified": "2023-07-25T03:02:53.252Z",
        "sub": "250405"
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
    id: number;
    email: string;
    created: Date;
    name?: string;
    subscriptions: number;
    maxAccountsPerAPI: number;
    accounts: Record<string, { total?: number; active?: number; error?: number }>;
    updated?: Date;
    verified?: Date;
    sub?: string;
    replyUrl?: string;
    subscriptionsNeededTotal?: number;
    subscriptionIsActive?: boolean;
    error?: string;
}
Examples
  • curl https://api.useapi.net/v2/account \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v2/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/v2/account"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It