Skip to main content
Glama

Bitrefill Search and Shop

Official
by bitrefill
misc.ts1.01 kB
import { PingResponse, AccountBalanceResponse, CheckPhoneNumberOptions, } from "../schemas/misc.js"; import { authenticatedApiClient } from "../utils/api/authenticated.js"; /** * Service for miscellaneous operations * Uses the AuthenticatedApiClient for API requests */ export class MiscService { /** * Check if the auth-dependent services are available (API key is set) * @returns True if the service is available, false otherwise */ public static isAvailable(): boolean { return authenticatedApiClient.isAvailable(); } /** * Ping the API to check if it's available * @returns Ping response */ public static async ping(): Promise<PingResponse> { return authenticatedApiClient.ping(); } /** * Get account balance * @returns Account balance * @throws Error if the API request fails or if the API key is not set */ public static async getAccountBalance(): Promise<AccountBalanceResponse> { return authenticatedApiClient.getAccountBalance(); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bitrefill/bitrefill-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server