Retrieve Mureka API accounts configuration

December 2, 2024 (December 30, 2024)

Table of contents

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

This endpoint retrieves the complete list of configured API accounts for Mureka.

Setup Mureka

https://api.useapi.net/v1/mureka/accounts

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

    {
      "123456789": {
        "account": "123456789",
        "token": "abc…secured…xyz",
        "updated": 1724514995,
        "updatedUTC": "2024-10-24T15:56:35.000Z",
        "tokenIssuedDaysAgo": 29,
        "hasAutoRefresh": true,
        "sessionCookie": {
          "name": "__Secure-3PSID",
          "value": "g.a000abc…secured…12345",
          "domain": ".google.com",
          "path": "/",
          "expires": "2026-02-15T12:00:00.000Z",
          "httpOnly": true,
          "secure": true,
          "sameSite": "None",
          "added": "2026-01-15T10:30:00.000Z"
        }
      },
      "987654321": {
        "account": "987654321",
        "token": "def…secured…uvw",
        "updated": 1724514995,
        "updatedUTC": "2024-10-24T15:56:35.000Z",
        "tokenIssuedDaysAgo": 1,
        "hasAutoRefresh": false,
        "error": "Session refresh failed 2026-01-19T14:31:15.000Z, manual update required"
      }
    }
    
  • 401 Unauthorized

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

    Configuration not found. To create configuration use POST /accounts.

Model
{ // TypeScript, all fields are optional
    [account: string]: {
        account: string
        token: string
        updated: number
        updatedUTC: string
        tokenIssuedDaysAgo: number
        hasAutoRefresh: boolean
        sessionCookie?: {
            name: string
            value: string
            domain: string
            path: string
            expires: string
            httpOnly: boolean
            secure: boolean
            sameSite: string
            added?: string
        }
        error?: string
    }
}
Examples
  • curl https://api.useapi.net/v1/mureka/accounts \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = "https://api.useapi.net/v1/mureka/accounts"; 
    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/mureka/accounts"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It