Retrieve Mureka API accounts configuration
December 2, 2024
Table of contents
This endpoint retrieves the complete list of configured API accounts for Mureka.
https://api.useapi.net/v1/mureka/accounts
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Responses
-
{ "123456789": { "updated": 1724514995, "account": "123456789", "token": "<token a>", "updatedUTC": "2024-10-24T15:56:35.000Z " }, "987654321": { "updated": 1724514995, "account": "987654321", "token": "<token b>", "updatedUTC": "2024-10-24T15:56:35.000Z " }, }
-
{ "error": "Unauthorized", "code": 401 }
-
Configuration not found. To create configuration use POST /accounts/
account
.
Model
{ // TypeScript, all fields are optional
[account: string]: {
account: string
token: string
updated: number
updatedUTC: 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())