Web Rabbit MediaDocs
Transactions

Me (preflight)

Verify the current key mode and business approval status before charging.

Pre-flight endpoint. Returns the mode of the current key, its access scopes, and the approval status of the business it belongs to — without moving any money. Use it on deploy to detect misconfigured keys (test-in-prod, live-in-staging) and to confirm the business is cleared for live charges.

iRequires read access
Any valid key (read or read + write) can call this endpoint.

Endpoint

GET/v1/me

Request

shell
curl https://api.webrabbitmedia.com/v1/me \
  -H "Authorization: Bearer wr_test_..."

Response

Response · 200
{
  "mode": "live",
  "business_id": "b1c8e9…",
  "business_name": "Acme Ghana Ltd",
  "business_status": "approved",
  "live_ready": true,
  "api_key_id": "9f2c…",
  "scopes": ["read", "write"],
  "commission_bps": 1000
}
iSafe pre-flight check
live_ready: false means live charges will fail with 403. Ship this call in your health check so you can alert before your first customer hits a dead endpoint.