Skip to content

Kody is live

Watch the launch video — what Kody is, and why it exists.

← Public packages

@kody/blandPublic

src/request.ts

34 lines · 828 B · TypeScript
/**
 * Low-level Bland.ai request helper.
 * Use for any path under api.bland.ai when a dedicated export is not enough.
 *
 * @param input - method, path, optional body/query, confirm for mutations
 * @returns Live response or dry-run preview
 *
 * @example
 * import { blandRequest } from 'kody:@kody/bland/request'
 * await blandRequest({ method: 'GET', path: '/v1/me' })
 */
export {
	API_BASE_URL,
	API_HOST,
	DASHBOARD_SETTINGS_URL,
	DOCS_URL,
	AGENT_QUICKSTART_URL,
	MCP_URL,
	DEFAULT_API_KEY_SECRET,
	DEFAULT_ENCRYPTED_KEY_SECRET,
	BlandApiError,
	blandRequest,
	setupUrls,
	apiKeySetupUrl,
	encryptedKeySetupUrl,
	resolveApiKeySecretName,
	type BlandAuthInput,
	type BlandObject,
	type BlandRequestInput,
	type BlandRequestResult,
} from './core.ts'

import { blandRequest } from './core.ts'
export default blandRequest