BMA runs web search and page fetching on the platform: the search providers’ keys, the network access and the safety checks stay on the server. Agents use them as the web_search and web_fetch tools. Your own code can call the same search directly: Both are BMA extensions on the API host (https://api.beeos.ai). The request fields are the inputs of the web_search and web_fetch tools, so what works in a tool call works here.
The results and page content are third-party text. When you pass them to a model, mark them as untrusted content; the agent tools do this for you.

Authentication

Use an organization API key (x-api-key), a personal access token or OAuth access token (Authorization: Bearer), or a dashboard session. Any workspace role may call. The workspace is the credential’s own; a credential that can use several names one with bma-workspace-id. Usage is recorded for that workspace.

Search the web

Request

Domains are names such as example.com (no scheme, path or port). A query mostly in CJK script, or a zh locale, is answered by a provider that serves Chinese first; any other by a global one. Unknown fields are rejected.

Response

Searches are never cached: every search that runs asks a provider.

Fetch a page

Request

What is fetched:
  • Only public addresses: the destination is checked when connecting and on every redirect (at most 5), so private, loopback, link-local and cloud metadata addresses are never reached.
  • robots.txt is respected. No cookies or credentials are sent. Only GET; no JavaScript runs.
  • At most 5 MB and 20 seconds per page. HTML, plain text, markdown, JSON, XML and CSV only (no PDF).
  • The main content is extracted: the page’s main, article or body without scripts, styles, navigation, footers and hidden elements.

Response

Retries and idempotency

Send an Idempotency-Key header (1 to 255 visible ASCII characters) to make a call safe to retry. Within 24 hours, the same key with the same body answers the first answer again and is not charged again. Keys belong to the organization and the operation: the same key may be used once for a search and once for a fetch. The SDKs and the CLI send a key for every call and keep it across their own retries; pass your own (Python idempotency_key=, TypeScript headers, Go bmasdk.WithIdempotencyKey, CLI --idempotency-key) to make a retry after a crash safe.

Pricing and usage

Failed and refused calls are not charged, and an idempotent replay is not charged again. The calls appear in the organization’s usage and cost reports as the models web-search and web-fetch with the workspace that made them. Before a search or fetch from the API runs, the organization’s billing must admit new paid work; otherwise the answer is 403 insufficient_credits.

Limits

  • Each organization may run 120 searches and 120 fetches per minute, counting every caller (API, MCP and agents’ tool calls). Past it the answer is 429 rate_limit_error, rate_limited, with a Retry-After header in seconds.
  • Each call also counts against the organization’s general request budget (Rate limits).
  • Search providers have their own limits; when every provider fails or is throttled, the answer is 529 search_unavailable.

Errors

Errors use the error envelope (error.type, error.code, request_id). None is charged.

Data handling

Queries are sent to third-party search providers, which may be located in the United States or China. BMA does not log query text or page content; it keeps ids, the provider, result counts, sizes and error codes.