# sondahub — full reference (v0.22.3) Free public mock APIs for testing. 78,076 records in 37 collections across 7 APIs; REST, GraphQL, gRPC-Web and Connect, WebSocket, SSE, MQTT over WebSocket, Kafka, AMQP 0-9-1 and 1.0, Redis and FIX (through the bridge), STOMP, NATS with JetStream, HL7 v2, MCP, SCIM 2.0, SAML 2.0, OAuth 2.0 / OIDC. No key, no signup, CORS open to every origin. Docs: https://sondahub.com/ ## Writes and sessions POST, PUT, PATCH and DELETE are validated, run through the real rules and answered as a real server would. No database exists: the answer carries X-Sondahub-Session, a signed, compressed token with every change the client has made (created and changed rows, deleted ids, next ids, idempotency keys). Send the newest token back — header X-Sondahub-Session, or ?_session= — and the request starts from that state: the record comes back on GET, in lists, nested routes and totals, over REST, GraphQL, gRPC, SCIM and MCP alike. Without it every request sees the seed (X-Sondahub-Write: simulated); with it, X-Sondahub-Write: session and "_note": "Kept in your session, not on the server: this write lives in the X-Sondahub-Session token this answer carries. Keep sending the newest token and every request sees it.". Created ids continue after the seed. The token stops growing at 24,000 characters (X-Sondahub-Session-Note says so). Nobody else sees a client's writes. Docs: https://sondahub.com/mock-api-with-persistence/ ## Controls on any request - X-Sondahub-Chaos: latency=800,jitter=200,fail=0.2,status=503,truncate=0.1 (or ?_chaos=, ?_delay=ms, ?_fail=rate, ?_status=code) — delay, failures at a rate (nothing runs; 429/503 carry Retry-After), bodies cut short; X-Sondahub-Chaos-Applied reports - X-Sondahub-RateLimit: 10/60 (or ?_ratelimit=) — clock-based quota: RateLimit-Policy, RateLimit, X-RateLimit-* headers; 429 + Retry-After in the last 20% of each window - Idempotency-Key on writes — inside a session the first answer is replayed (Idempotent-Replayed: true) and another request with the same key → 422 idempotency_key_reused; without a session the same key yields the same new id - ?format=csv|xml|yaml|ndjson|msgpack or the matching Accept — other shapes of any JSON GET answer - Accept: application/problem+json (or ?_errors=problem) — RFC 9457 errors, type = https://api.sondahub.com/v1/problems/{code} - Cursor paging on every list: ?paging=cursor → meta.has_more, next_cursor, prev_cursor; ?cursor=; ?starting_after={id}, ?ending_before={id} - X-Sondahub-Webhook: https://… (or ?_webhook=) on a write — the record the write itself creates, updates or deletes is POSTed there as {id, type: "{api}.{record}.{created|updated|deleted}", created_at, api, data: {object, previous?}}, signed per X-Sondahub-Webhook-Style: standard (webhook-id, webhook-timestamp, webhook-signature v1,base64 HMAC-SHA256 of id.timestamp.body keyed with the base64 after whsec_), stripe (Stripe-Signature t=,v1=hex HMAC of t.body), github (X-Hub-Signature-256 sha256=hex HMAC of body). Secret whsec_c29uZGFodWItcGxheWdyb3VuZC13ZWJob29rLWtleSE= or X-Sondahub-Webhook-Secret. Async with retries after 1/3/8 s (4 s per attempt), or X-Sondahub-Webhook-Mode: sync (outcomes in _webhooks). Public addresses only. POST https://api.sondahub.com/v1/utils/webhooks/send {url, style, secret} sends one sample event; /verify checks a signature. ## Sandboxes: Stripe, Twilio, SendGrid, Authorize.net, OpenAI, Anthropic and six secrets managers (independent imitations; not affiliated with the vendors) Stripe: the paths of api.stripe.com at https://api.sondahub.com (also https://api.sondahub.com/sandbox/stripe/v1). Auth: Bearer (or Basic user) any sk_test_ key; pk_test_ only for POST /v1/payment_methods; live keys refused. Form-encoded params with brackets (JSON also taken), expand[], Idempotency-Key, Stripe-Version echoed, Request-Id. Models customers (CRUD, list by email), payment_methods (type=card from Stripe's test cards or test ids like pm_card_visa; attach, detach), payment_intents (create, confirm, capture incl. partial, cancel, update; statuses requires_payment_method → requires_confirmation → requires_action (3D Secure: next_action.redirect_to_url opens a sandbox page that returns to return_url with redirect_status; the page can't write to the session, so the PI stays requires_action: confirm again to finish, or cancel / confirm with another card on redirect_status=failed) → requires_capture / succeeded; canceled), charges, refunds (whole/partial; charge_already_refunded), products (default_price_data), prices (lookup_key), checkout/sessions (mode=payment; url opens a sondahub test page whose payment sends charge.succeeded, payment_intent.succeeded and checkout.session.completed to registered endpoints and redirects to success_url; that payment is not written to the session, so the session still reads open and those pi_/ch_ ids are not retrievable — fulfil from the event payload), events (last 30 per session), webhook_endpoints (secret whsec_…; deliveries signed Stripe-Signature t=,v1= HMAC-SHA256 of t.body; enabled_events exact types or *, no partial wildcards; retries after 1/3/8 s on a network error, 408, 429 or 5xx), balance (pending always 0). Paths not modelled (subscriptions, invoices, setup_intents, …/search, and any unknown /v1 path sent with a Stripe key) answer a Stripe-shaped 404. Declines answer 402 card_error with code/decline_code and the payment_intent; invalid params 400 invalid_request_error (parameter_unknown, parameter_missing, amount_too_small, payment_intent_unexpected_state); unknown ids 404 resource_missing. Lists: {object: "list", data, has_more, url}, limit/starting_after/ending_before/created (/line_items: no created). SDKs: stripe-node new Stripe(key, {host: "api.sondahub.com"}), stripe-python StripeClient(key, base_addresses={"api": "https://api.sondahub.com"}) or stripe.api_base. OpenAPI 3: https://api.sondahub.com/sandbox/stripe/openapi.json (import it into an API client: every operation, form bodies, seed ids). Docs: https://sondahub.com/sandboxes/stripe/ Twilio: api.twilio.com → https://api.sondahub.com, verify.twilio.com → https://api.sondahub.com/verify, lookups.twilio.com → https://api.sondahub.com/lookups (also under https://api.sondahub.com/sandbox/twilio). Auth: Basic with any Account SID (AC + 32 hex) and any auth token (callbacks are signed with that token). Models Messages (To, From or MessagingServiceSid, Body/MediaUrl, StatusCallback; status follows the clock: queued, sending, sent ≈1.5 s, delivered at 3 s; segments counted GSM-7/UCS-2), Calls (Url or Twiml; queued, ringing 1 s, in-progress 3 s, completed 13 s, duration 10; the Url is fetched at answer; StatusCallbackEvent initiated/ringing/answered/completed), IncomingPhoneNumbers (the account owns +15005550006 and four 555-01xx numbers; buy by PhoneNumber or AreaCode), the Account, Verify v2 (Services, Verifications, VerificationCheck — the approving code is the first CodeLength digits of 1234567890, 123456 by default; 5 sends, 5 checks, 10 minutes), Lookups v2 (valid, country, national_format, Fields=line_type_intelligence). Twilio's test-credential magic numbers answer their documented errors (SMS To +15005550001 21211, …0002 21612, …0003 21408, …0004 21610, …0009 21614; From …0001 21212, …0007 21606, …0008 21611; calls To …0001 21217, …0002 21214, …0003 21215, …0004 21216; From …0001 21212, unowned 21210). Sandbox numbers: +15550100003 (SMS undelivered 30003, call no-answer), +15550100005 (30005, failed), +15550100006 (30006, busy). Callbacks carry X-Twilio-Signature (base64 HMAC-SHA1 of URL + sorted params, key = auth token). POST https://api.sondahub.com/sandbox/twilio/simulate/sms {url, from, to, body, auth_token} sends your webhook an incoming-SMS request and shows the TwiML answer. Sub-resources (…/Messages/{Sid}/Media, …/Calls/{Sid}/Recordings) and other products under /sandbox/twilio/ answer a Twilio-shaped 404 20404. SDK: twilio-python client.api.base_url = "https://api.sondahub.com" (and client.verify / client.lookups). OpenAPI 3: https://api.sondahub.com/sandbox/twilio/openapi.json (all three hosts on one server). Docs: https://sondahub.com/sandboxes/twilio/ SendGrid: api.sendgrid.com → https://api.sondahub.com (also https://api.sondahub.com/sandbox/sendgrid/v3). Auth: Bearer with any key starting SG. (401 "authorization required" without one). JSON bodies; errors {"errors":[{"field","message"}]} (Mail Send adds a help link). POST /v3/mail/send validates as SendGrid does — every problem in one 400 with SendGrid's messages and fields (personalizations.0.to.0.email…), text/plain before text/html, categories ≤10, send_at ≤72 h, reserved headers, asm group ids — then 403 unless from is on an authenticated domain (the seed has example.com, validated) or a verified single sender (support@example.org, billing@example.net; a new one verifies itself 5 s after it is made); 202 with X-Message-Id (22 characters, unique per send) and X-Sondahub-Preview, a link to a page showing the rendered email for the first five personalizations; a personalization's send_at overrides the message's; mail_settings.sandbox_mode → 200, nothing sent. Dynamic templates (d- + 32 hex) render Handlebars: if/else if/else, unless, each, with, equals, notEquals, greaterThan, lessThan, and, or, length, formatDate, insert. Each recipient: processed at 0.3 s, delivered at 1.5 s; +bounce (bounce 5.1.1, added to the bounce list), +blocked (type blocked, blocks list), +deferred (two deferrals, delivered at 8 s), +open (open at 4 s; opens need an HTML part), +click (open, then click on the first HTML link at 6 s, or a text link with click_tracking.enable_text), +spamreport, +unsubscribe (group_unsubscribe when asm.group_id is set) in the address pick the fate; addresses on the bounce, spam report, unsubscribe or invalid lists are dropped (Bounced Address, Spam Reporting Address, Unsubscribed Address, Invalid) unless a bypass_* mail setting says otherwise; blocked addresses are listed but still sent to. Event Webhooks (/v3/user/webhooks/event/settings, up to 5, legacy single paths too, /test) get JSON arrays of events with SendGrid's fields and custom_args at the top level; with signing on (PATCH …/settings/signed/{id}) each post carries X-Twilio-Email-Event-Webhook-Signature (base64 DER ECDSA P-256/SHA-256 over the timestamp header + raw body) and -Timestamp, verifiable with EventWebhook.verify_signature; scheduled sends (send_at in the future) send no webhooks; their events show in Email Activity on time, and a paused or cancelled batch holds or drops them. GET /v3/messages?query= (to_email, from_email, subject, status, msg_id, template_id, asm_group_id, last_event_time; =, !=, LIKE, IN, BETWEEN TIMESTAMP, Contains(categories,…), AND/OR/NOT) and /v3/messages/{msg_id}; GET /v3/stats?start_date=&aggregated_by=. Suppressions: /v3/suppression/{bounces,blocks,spam_reports,invalid_emails,unsubscribes}, /v3/asm/suppressions/global, /v3/asm/groups (16401, 16402) and their suppressions. Templates and versions (/v3/templates…). /v3/verified_senders, /v3/whitelabel/domains (+ /validate, which marks the domain valid). Marketing: PUT /v3/marketing/contacts (202 job_id; contacts appear 2 s later, /imports/{id}; deletes take effect at once), search (SGQL: =, !=, <, >, LIKE, IS NULL, CONTAINS(list_ids,'…'), AND/OR/NOT), search/emails, batch, count, lists, field_definitions (custom ids e1_T, e2_N). Inbound Parse: /v3/user/webhooks/parse/settings; POST https://api.sondahub.com/sandbox/sendgrid/simulate/inbound {url, to, from, subject, text, html} posts the multipart form SendGrid's Inbound Parse posts. /v3/mail/batch, /v3/user/scheduled_sends (pause, cancel). OpenAPI 3: https://api.sondahub.com/sandbox/sendgrid/openapi.json. SDKs: sendgrid-python SendGridAPIClient(key, host="https://api.sondahub.com"); @sendgrid/client: setApiKey, then setDefaultRequest('baseUrl', "https://api.sondahub.com/"), then sgMail.setClient(client) — and no sgMail.setApiKey, which would point it back at api.sendgrid.com. Docs: https://sondahub.com/sandboxes/sendgrid/ Authorize.net: apitest.authorize.net → https://api.sondahub.com, test.authorize.net/payment/payment → https://api.sondahub.com/sandbox/authorizenet/payment/payment (the API also under https://api.sondahub.com/sandbox/authorizenet). POST /xml/v1/request.api with XML (namespace AnetApi/xml/v1/schema/AnetApiSchema.xsd) or JSON ({"createTransactionRequest": {...}}); the answer comes in the same format, HTTP 200, starting with a UTF-8 byte order mark (strip it before JSON.parse; Python requests: content.decode('utf-8-sig')). JSON answers have no root wrapper, put a type's own elements before inherited ones (transactionResponse, refId, messages), type Int/Decimal as numbers and Boolean as true/false, and turn list-only types into bare arrays (transactionResponse.messages: [{code, description}], errors: [{errorCode, errorText}]). Auth: merchantAuthentication {name: any ≤25 characters, transactionKey: any 16} in the body (E00006, E00005, E00007 otherwise); securePaymentContainer takes clientKey. Requests are checked against the schema like the real API, JSON too: element order, unknown elements, required ones, lengths, patterns, enumerations, decimals — E00003 with .NET's message naming the expected elements, in an ErrorResponse. createTransaction: authCaptureTransaction, authOnlyTransaction, priorAuthCaptureTransaction (keeps the original transId; > authorized → 47; again → 311), captureOnlyTransaction (authCode, else 12), voidTransaction (unsettled only, else 16; again → 310), refundTransaction (settled only, else 54; > captured → 55; card last 4 + XXXX); payment creditCard (Luhn → 6, date → 7, expired → 8), bankAccount (ABA → 9; > $100 declines), opaqueData (from securePaymentContainer, once, 15 min: E00114/E00115) or profile {customerProfileId, paymentProfile.paymentProfileId, shippingProfileId}; profile.createProfile adds profileResponse. Triggers: billTo.zip 46282 declines (responseCode 2, E00027); AVS ZIPs 46201 A, 46203 E, 46204 G, 46205 N, 46207 R, 46208 S, 46209 U, 46211 W, 46214 X, 46217 Z (N and E decline, reason 27); cardCode 900 M, 901 N (declines, reason 65), 902 S, 903 U, 904 P; > $5000 authorized and held (responseCode 4, reason 252, FDSAuthorizedPendingReview; updateHeldTransaction approve/decline); card 4222222222222 with amount = a reason code answers it; duplicate within 120 s (duplicateWindow setting) → 11; testRequest → transId 0. transHashSha2 = uppercase hex HMAC-SHA512(key = hex-decoded Signature Key, "^login^transId^amount^"). Settlement: a batch closes every minute; a capture settles in the first batch ≥30 s after it (capturedPendingSettlement → settledSuccessfully); batches per payment method; seed history settles daily at 02:00 UTC. Reporting: getTransactionDetails, getUnsettledTransactionList (status pendingApproval), getSettledBatchList (default last 24 h, ≤31 days, includeStatistics), getTransactionList (batchId), getBatchStatistics, getTransactionListForCustomer, getMerchantDetails (publicClientKey, America/Denver), sendCustomerTransactionReceipt (no email sent), authenticateTest. CIM: customer profiles (one of merchantCustomerId/description/email, duplicates E00039 naming the id), payment profiles (≤10, masked XXXX1111, validationMode testMode/liveMode with the 68-field direct response), shipping addresses, createCustomerProfileFromTransaction; in use by an active subscription → E00105/E00106/E00107. ARB: ARBCreateSubscription (start not in the past E00017, interval 7–365 days or 1–12 months, trial rules E00024/E00026/E00028, duplicate E00012; card/bank payment makes a profile "Profile created by Subscription: id"), ARBGetSubscription, ARBGetSubscriptionStatus, ARBUpdateSubscription (interval fixed E00034), ARBCancelSubscription (again → I00002), ARBGetSubscriptionList; payments are not run. Accept: securePaymentContainer → opaqueData COMMON.ACCEPT.INAPP.PAYMENT; getHostedPaymentPage → token (15 min) for https://api.sondahub.com/sandbox/authorizenet/payment/payment (form field token), which pays with the same checks and sends the webhooks. Webhooks: REST /rest/v1 (Basic login:key) eventtypes, webhooks CRUD, pings, notifications (+ /{id}); notifications {notificationId, eventType, eventDate, webhookId, payload} signed X-ANET-Signature: sha512=HMAC-SHA512(Signature Key as text, raw body) hex; sent once while answering (≤3 s), history Delivered/Failed in the session; subscription suspended/terminated/expiring/expired/failed are never sent (payments are not run). Signature Key: B1224AC959AB2E41CF56404EBDC5677F804E9CDD88DA26E9D8DEB2B91E8466F116F66A580DC0120ABB662C672C4C76D51E360B893327D077FD6EFA95F5EA439C. Not modelled: PayPal, Visa SRC, Apple/Google Pay data, split tender, track/EMV, hosted profile page, mobile and invoice calls (E00004). OpenAPI 3 (a path per call under /xml/v1/request.api/…, sondahub's labels): https://api.sondahub.com/sandbox/authorizenet/openapi.json. SDKs: Python authorizenet — patch requests.post to swap https://apitest.authorize.net for https://api.sondahub.com and carry the session header (each controller's constructor resets setenvironment); Node authorizenet — axios interceptors on the SDK's own axios (require.resolve('axios', {paths: [require.resolve('authorizenet')]})) to swap baseURL and carry the header. Docs: https://sondahub.com/sandboxes/authorizenet/ OpenAI and Anthropic — the scripted model: no model runs; the same request always gets the same answer. "Say X" → "X."; an arithmetic question → its answer; a message naming a tool (a word of its name: "weather" for get_weather) → a call with arguments generated from the JSON schema and the message (the place after "in", numbers in order); a turn of tool results → a reply reporting them; a JSON schema (response_format / text.format / output_config.format) → an object that fits it; else a short note naming the model and the phrases. Phrases in the last user message: [[tokens:N]] (exactly N tokens, ≤32,000), [[echo]], [[tool]] / [[tool:name]] / [[tools:all]], [[refuse]] ([[refuse:cyber]] etc. sets Claude's stop_details.category), [[error:CODE]] (400–599, quota, context; vendor-shaped), [[flaky:CODE]] (fails while x-stainless-retry-count is 0 or absent, so the SDK's retry succeeds), [[break]] (a stream fails halfway; a plain request gets 500/529), [[slow]] (≈1.2 s to the first token, 140 ms per delta), [[flag]] / [[flag:category]] (OpenAI moderations). Tokens: an approximate tokenizer (word with its leading space, ≤7 letters a piece, numbers in threes, punctuation one each) used for usage, stream deltas and counting alike. Streams are computed first, then paced. OpenAI: api.openai.com/v1 → https://api.sondahub.com/v1 (also https://api.sondahub.com/sandbox/openai/v1); OPENAI_BASE_URL=https://api.sondahub.com/v1 OPENAI_API_KEY=sk-sondahub is enough for stateless use. Auth: Bearer any key starting sk- (not sk-ant-); 401 invalid_api_key otherwise. Errors {"error":{message,type,param,code}} in the API's words: Unrecognized request argument supplied, invalid_type, decimal_above_max_value, missing_required_parameter, tool_call_ids did not have response messages, messages with role 'tool' must be a response to a preceeding message with 'tool_calls', strict schemas need additionalProperties false and every property required, json_object needs "json" in the messages, stop ≤4, stream_options only with stream. Models (GET /v1/models; aliases answer as dated snapshots; retired names → deprecation 404; Responses-only models → 404 on chat): gpt-6-astra, gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.5-pro, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.3-chat-latest, gpt-5.2, gpt-5.2-pro, gpt-5.2-chat-latest, gpt-5.1, gpt-5.1-mini, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-chat-latest, gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-chat-latest, gpt-5-pro, gpt-5-codex, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o4-mini, o3, o3-pro, o3-mini, o1, o1-pro, codex-mini-latest, gpt-4o, chatgpt-4o-latest, gpt-4o-mini, gpt-4o-search-preview, gpt-4o-mini-search-preview, gpt-4-turbo, gpt-4, gpt-4-0613, gpt-3.5-turbo, gpt-3.5-turbo-0125; embeddings text-embedding-3-small (1536), text-embedding-3-large (3072), text-embedding-ada-002 (1536); moderations omni-moderation-latest, text-moderation-latest. Reasoning models (o-series, gpt-5, gpt-5.1 and later): max_tokens refused (use max_completion_tokens), temperature/top_p ≠ 1 refused (gpt-5.1+ only while reasoning_effort ≠ none), reasoning_tokens by effort (minimal 24, low ≈96, medium ≈256, high ≈768, xhigh ≈1536, max ≈2048) counted inside the limit — too low a limit gives empty content and finish_reason length. POST /v1/chat/completions: stream (chat.completion.chunk, role chunk, deltas with obfuscation, finish chunk, usage chunk with stream_options.include_usage, data: [DONE]), n ≤128, tools (function, custom) and legacy functions, tool_choice (none/auto/required/named/allowed_tools), parallel_tool_calls, response_format (json_schema/json_object/text), logprobs + top_logprobs ≤20, stop, max_completion_tokens, reasoning_effort, prompt_cache_key/prompt_cache_retention. POST /v1/responses: input (string or items: message, function_call, function_call_output, custom_tool_call(_output), reasoning, item_reference), instructions (not carried over), tools flat ({type:function,name,parameters,strict}; built-in tools refused), tool_choice, text.format (json_schema flat: name, schema, strict), reasoning {effort, summary} (a reasoning item, summary_text when asked; encrypted_content with include), max_output_tokens ≥16 (incomplete, max_output_tokens), store (default true: kept in the session, latest 8), previous_response_id (its function calls must be answered: "No tool output found for function call …"; unknown: "Previous response with id … not found."), background (queued → in_progress → completed in ≈2.5 s; POST /cancel), stream (response.created, in_progress, output_item.added/done, content_part.added/done, output_text.delta/done, function_call_arguments.delta/done, reasoning_summary_*, refusal.*, completed/incomplete; sequence_number). GET/DELETE /v1/responses/{id} (?stream=true replays), GET /v1/responses/{id}/input_items (limit, order, after), POST /v1/responses/input_tokens. POST /v1/embeddings (string/strings/token arrays ≤2048, empty string → '$.input' is invalid, dimensions on v3, encoding_format float|base64 little-endian float32; vectors by feature hashing, L2-normalised, similar texts close). POST /v1/moderations (13 categories, scores, category_applied_input_types). Prompt caching with the session: prompts ≥1024 tokens cached in 128-token steps per model and prompt_cache_key for 10 min (24 h with prompt_cache_retention "24h") → usage.prompt_tokens_details.cached_tokens / input_tokens_details.cached_tokens. Headers: x-request-id, openai-processing-ms, openai-version, x-ratelimit-*; on errors on purpose retry-after and retry-after-ms. Not modelled (404 saying so): files, batches, uploads, images, audio, fine_tuning, assistants, threads, vector_stores, realtime, conversations, evals, videos. OpenAPI 3: https://api.sondahub.com/sandbox/openai/openapi.json. SDK session hook: Python OpenAI(base_url=…, api_key=…, http_client=DefaultHttpxClient(event_hooks={request: [add header], response: [keep header]})); Node new OpenAI({baseURL, apiKey, fetch: wrapper}). Docs: https://sondahub.com/sandboxes/openai/ Anthropic: api.anthropic.com → https://api.sondahub.com (also https://api.sondahub.com/sandbox/anthropic); ANTHROPIC_BASE_URL=https://api.sondahub.com ANTHROPIC_API_KEY=sk-ant-sondahub is enough for stateless use. Auth: x-api-key (or Bearer) any key starting sk-ant- ("x-api-key header is required", "invalid x-api-key"); anthropic-version 2023-06-01 required ("anthropic-version: header is required"). /v1/models and other shared paths go to Anthropic when an anthropic-version or sk-ant- key comes with them. Errors {"type":"error","error":{type,message},"request_id"} with pydantic-style messages ("max_tokens: Field required", "foo: Extra inputs are not permitted", "messages.0.role: Input should be 'user', 'assistant' or 'system'"), statuses 400 invalid_request_error, 401 authentication_error, 402 billing_error, 403 permission_error, 404 not_found_error, 413 request_too_large, 429 rate_limit_error, 500 api_error, 529 overloaded_error. Models (newest first, after_id/before_id/limit; display_name, created_at, max_input_tokens, max_tokens, capabilities): claude-sonnet-5-5 (1M/128K), claude-fable-5-1 (1M/128K), claude-opus-5-5 (1M/128K), claude-mythos-5-1 (1M/128K), claude-opus-5 (1M/128K), claude-sonnet-5 (1M/128K), claude-fable-5 (1M/128K), claude-mythos-5 (1M/128K), claude-opus-4-8 (1M/128K), claude-opus-4-7 (1M/128K), claude-sonnet-4-6 (1M/64K), claude-opus-4-6 (1M/128K), claude-opus-4-5-20251101 (200K/64K), claude-haiku-4-5-20251001 (200K/64K), claude-sonnet-4-5-20250929 (200K/64K); aliases claude-opus-4-5 → claude-opus-4-5-20251101, claude-haiku-4-5 → claude-haiku-4-5-20251001, claude-sonnet-4-5 → claude-sonnet-4-5-20250929; retired models (claude-3-*, claude-*-4-0, claude-mythos-preview) → 404. POST /v1/messages (also ?beta=true): max_tokens ≤ the model's limit, messages (user/assistant/system roles; content string or blocks text, image, document, search_result, tool_result / text, tool_use, thinking, redacted_thinking; a final assistant message is a prefill that the reply continues), system (string or text blocks), tools (custom: name ^[a-zA-Z0-9_-]{1,128}$, input_schema type object; server/client tool types refused), tool_choice auto/any/tool/none (+ disable_parallel_tool_use; with tool_choice auto a short text block precedes tool_use), every tool_use answered by tool_result in the next message ("tool_use ids were found without tool_result blocks immediately after", "unexpected tool_use_id found in tool_result blocks"), stop_sequences (stop_reason stop_sequence + stop_sequence), thinking enabled {budget_tokens ≥1024 and < max_tokens} / adaptive {display} / disabled — a thinking block first with a signature (HMAC over its text; a changed block → "Invalid signature in thinking block"; display omitted → empty thinking, same signature scheme), a tool loop's last assistant message must start with its thinking block when thinking is enabled, forced tool_choice with thinking refused, temperature must be 1 with thinking; output_config {effort low…max, format {type json_schema, schema}}; stop reasons end_turn, max_tokens, stop_sequence, tool_use, refusal (stop_details {type refusal, category, explanation}). Usage: input_tokens, cache_creation_input_tokens, cache_read_input_tokens, cache_creation {ephemeral_5m_input_tokens, ephemeral_1h_input_tokens}, output_tokens (thinking included), output_tokens_details.thinking_tokens, service_tier. Stream: message_start, content_block_start, ping, content_block_delta (text_delta, input_json_delta, thinking_delta, signature_delta), content_block_stop, message_delta (stop_reason, usage), message_stop; error event on [[break]]. Prompt caching with the session: cache_control {type ephemeral, ttl 5m|1h} on tools, system blocks and message blocks (≤4; 1h before 5m; top-level cache_control marks the last block); a breakpoint's prefix is written when ≥1024 tokens (4096 for Opus and Haiku models) and read back by later requests that start the same way. POST /v1/messages/count_tokens → {input_tokens}. Message Batches: POST /v1/messages/batches {requests: [{custom_id ^[a-zA-Z0-9_-]{1,64}$, params}]} ≤50 requests and 16 KB (kept in the session, latest 5), in_progress ≈3 s + 0.3 s per request (20 s with [[slow]]), then ended with request_counts and results_url; GET …/results is JSONL {custom_id, result: succeeded {message} | errored {error} | canceled}; GET list (limit, after_id, before_id), GET one, POST …/cancel (canceling, then ended with canceled), DELETE once ended. Headers: request-id, anthropic-ratelimit-*; on errors on purpose retry-after. Not modelled (saying so): server/client tools, MCP servers, Files, Skills, Agents, /v1/complete. OpenAPI 3: https://api.sondahub.com/sandbox/anthropic/openapi.json. SDK session hook: Python Anthropic(base_url=…, api_key=…, http_client=DefaultHttpxClient(event_hooks=…)); TypeScript new Anthropic({baseURL, apiKey, fetch: wrapper}). Docs: https://sondahub.com/sandboxes/anthropic/ Secrets managers (independent imitations; not affiliated with Amazon Web Services, Microsoft, Google, 1Password, Doppler or Infisical). Every value in their seeds is fake; never send them a real secret. AWS Secrets Manager: secretsmanager..amazonaws.com → https://api.sondahub.com/sandbox/aws-secrets-manager as the SDK's endpoint URL. POST with X-Amz-Target: secretsmanager. (or the action as a last path segment), Content-Type application/x-amz-json-1.1, SigV4 for service secretsmanager in any commercial region: access key AKIASONDAHUB000001 / probe-secret has its signature checked (InvalidSignatureException), any other key is taken on trust; X-Amz-Date within 15 minutes. All 23 actions. The seed account 123456789012 has 8 secrets in every region (one replicated us-east-1 → eu-west-1, one scheduled for deletion, one rotating); a secret you create lives in the region you signed for. ClientRequestToken is the VersionId; AWSCURRENT/AWSPREVIOUS move on each new value; RotateSecret plays the rotation function (a Lambda name containing "fail" leaves AWSPENDING). Errors {"__type","Message"}. Azure Key Vault: .vault.azure.net → https://api.sondahub.com (the vault is the API host: /secrets, /deletedsecrets, ?api-version=7.0…7.6 or 2025-07-01). No token → 401 with WWW-Authenticate: Bearer authorization="https://login.microsoftonline.com/", resource="https://sondahub.com"; any bearer then works. Entra ID client credentials at https://api.sondahub.com/sandbox/azure-key-vault/login/{tenant}/oauth2/v2.0/token (authority https://api.sondahub.com/sandbox/azure-key-vault/login, instance discovery off). Soft delete for 90 days, recover, purge, backup/restore, maxresults ≤ 25 with nextLink. Google Secret Manager: secretmanager.googleapis.com → https://api.sondahub.com (v1 REST at /v1/projects/{project}/secrets…, also https://api.sondahub.com/sandbox/google-secret-manager/v1). Any bearer token; the service account key file at https://api.sondahub.com/sandbox/google-secret-manager/service-account.json signs in at https://api.sondahub.com/sandbox/google-secret-manager/token. Names come back with the project number. Versions ENABLED/DISABLED/DESTROYED, latest and aliases, dataCrc32c checked, versionDestroyTtl, expireTime/ttl, rotation (needs topics), labels, annotations, etags, filters, IAM. Errors google.rpc.Status. Use the REST transport (no native gRPC). 1Password Connect: a Connect server → https://api.sondahub.com/sandbox/1password-connect (any bearer token). /v1/vaults, /v1/vaults/{v}/items (filter title eq "…"), items with fields/sections/urls/tags, generate with recipe, OTP fields answer the current code in totp, files and /content, PATCH (JSON Patch), /v1/activity, /heartbeat, /health. Errors {"status","message"}. Doppler: api.doppler.com → https://api.sondahub.com/sandbox/doppler (and https://api.sondahub.com/v3 when the token starts dp.). Tokens: dp.pt.… sees everything; dp.st..… reads its config without project/config. Projects backend and web, configs dev/stg/prd (+ dev_personal branch). Secrets have raw and computed (${NAME}, ${config.NAME}, ${project.config.NAME}); download formats json, env, env-no-quotes, yaml, docker, dotnet-json. Errors {"messages":[…],"success":false}. Infisical: app.infisical.com → https://api.sondahub.com (/api/…; also https://api.sondahub.com/sandbox/infisical/api). POST /api/v1/auth/universal-auth/login {clientId, clientSecret} → accessToken; then Bearer. /api/v3/secrets/raw (workspaceId, environment, secretPath, expandSecretReferences, include_imports) and /api/v4/secrets (projectId), /api/v2/folders, /api/v1/secret-imports, /api/v1/workspace. Errors {"reqId","statusCode","message","error"}. In each, writes live in the X-Sondahub-Session token each answer carries (the SDK must send it back — the docs show the hook per SDK); without it every request sees the seed account. ## OpenAPI mock (bring your own spec) GET https://api.sondahub.com/v1/mock?spec={url of an OpenAPI 3.x or Swagger 2.0 file, JSON or YAML, ≤5 MB} describes it and gives a stable base URL https://api.sondahub.com/v1/mock/~{base64url of the spec URL}; requests under it are routed by the spec, validated (parameters, body, presence of declared credentials; 422 / 401 / 405) and answered from the example or generated from the schema, deterministically. Prefer: code=404 | example=name | dynamic=true picks the answer. Writes are not kept. Docs: https://sondahub.com/openapi-mock-server/ ## gRPC-Web and Connect Each API is the protobuf service sondahub.{api}.v1.{Api}Service (sondahub.store.v1.StoreService, sondahub.fleet.v1.FleetService, sondahub.bank.v1.BankService, sondahub.social.v1.SocialService, sondahub.helpdesk.v1.HelpdeskService, sondahub.flights.v1.FlightsService, sondahub.identity.v1.IdentityService), .proto at https://api.sondahub.com/v1/{api}/{api}.proto. Methods per collection: List{Plural}(page, limit, sort, q, filter map) → {data, page, limit, total, pages}; Get{T}(id); Create{T}({T}); Update{T}(id, {singular}); Delete{T}(id). Watch(topics, max_events) is a server stream of live events. Call https://api.sondahub.com/grpc/{service}/{Method} with gRPC-Web (application/grpc-web+proto or grpc-web-text) or Connect (application/json or application/proto; application/connect+json / +proto for streams; GET ?encoding=json&message=… for reads). Native gRPC (application/grpc) answers UNIMPLEMENTED: the platform cannot send HTTP/2 trailers. ## SOAP Every API is a SOAP service at https://api.sondahub.com/soap/{api} — WSDL 1.1 at ?wsdl (document/literal wrapped, one binding each for SOAP 1.1 and 1.2, namespace https://sondahub.com/soap/{api}, elementFormDefault qualified). Operations per collection: List{Things} (page, limit, sort, q, filter* {field, value} — the REST operator suffixes: price_lt), Get{Thing} (id), Create{Thing} ({thing}: the fields), Update{Thing} (id, {thing}: the fields to change), Delete{Thing} (id); fields carry their XSD types (xs:long ids, xs:double, xs:dateTime, an enumeration per enum), string lists as elements, structured JSON fields as JSON text, null as xsi:nil. SOAP 1.1: Content-Type text/xml, SOAPAction "https://sondahub.com/soap/{api}/{Operation}" (a SOAPAction naming another operation is a fault; empty is fine); SOAP 1.2: application/soap+xml; action="…". Faults: 1.1 soap:Client / soap:Server, HTTP 500; 1.2 env:Sender (HTTP 400) / env:Receiver (500) with subcodes InvalidParams, NotFound, Conflict, Precondition, UnknownOperation, ActionMismatch, BadRequest; detail ServiceFault {code, message, error* {field, message}}. Header blocks with mustUnderstand that aren't understood → MustUnderstand (1.2 with NotUnderstood); unknown envelope namespace → VersionMismatch with Upgrade; other media types → 415. WS-Addressing answered with wsa:Action and wsa:RelatesTo. The session token is in the X-Sondahub-Session HTTP header and a Session SOAP header (element in the WSDL's schema); either is taken back. https://api.sondahub.com/soap/secure/{api}: WS-Security UsernameToken (PasswordText or PasswordDigest = Base64(SHA-1(nonce + Created + password)), Created ≤5 min old, Timestamp Expires checked) or HTTP Basic, sonda / probe; faults wsse:FailedAuthentication, wsse:InvalidSecurity, wsse:MessageExpired, wsse:UnsupportedSecurityToken. GET https://api.sondahub.com/soap lists the services. Docs: https://sondahub.com/soap-test-server/ ## JSON-RPC 2.0 and XML-RPC POST https://api.sondahub.com/jsonrpc (JSON-RPC 2.0) and https://api.sondahub.com/xmlrpc (XML-RPC). Methods {api}.{verb}{Thing}, five per collection: store.listProducts, store.getProduct, store.createProduct, store.updateProduct, store.deleteProduct (bank.createTransfer, helpdesk.updateTicket…). JSON-RPC params by position ([id], [id, {fields}], list [page, limit, sort, q, filter] or one options object) or by name ({"id"}, {"id", "product": {fields}}, {"page", "limit", "sort", "q", "filter": {"price_lt": 20}}); batches (≤100, run in order, notifications left out; all notifications → 204), notifications → 204. Errors: -32700 parse, -32600 invalid request, -32601 method not found, -32602 invalid params (data.details per field), -32603 internal, -32001 not found, -32002 conflict, -32003 refused by the rules, -32029 rate limited, -32000 other. GET https://api.sondahub.com/jsonrpc and rpc.discover: the OpenRPC document. XML-RPC: positional, types int/i4, boolean, string, double, dateTime.iso8601, base64, struct, array, plus nil and i8; faults {faultCode, faultString} with the same codes; system.listMethods, system.methodHelp, system.methodSignature, system.getCapabilities, system.multicall (≤100). Both: system.echo, system.time, system.sleep (ms ≤10000), system.fail (code, message[, data]). Writes keep to the X-Sondahub-Session header. Docs: https://sondahub.com/json-rpc-test-server/ ## OData 4.0 Service root https://api.sondahub.com/odata/{api}/ for store, fleet, bank, social, helpdesk, flights, identity; CSDL XML at $metadata (namespace sondahub.{api}, entity type per collection — Product for products — entity sets named like the REST collections, navigation properties from the relations with referential constraints and bindings, Core.Computed and Core.Description annotations). Property names as in REST. Types: Edm.Int64 ids and ints, Edm.Double, Edm.Boolean, Edm.Date, Edm.DateTimeOffset, Edm.String (enums too), Collection(Edm.String) for string lists; other JSON fields as JSON text (Edm.String). JSON only: odata.metadata=minimal (default), full or none; IEEE754Compatible=true sends Int64 as strings; $format=json. Query: $filter (eq ne gt ge lt le and or not in add sub mul div mod, paths through to-one navigation and into JSON fields, any/all over string lists and to-many navigation, nav/$count, functions contains, startswith, endswith, length, indexof, substring, tolower, toupper, trim, concat, year, month, day, hour, minute, second, date, now, round, floor, ceiling; types checked → 400), $select, $expand (nested options $select $filter $orderby $top $skip $count $expand, * for all, 3 levels), $orderby, $top, $skip, $count, $search (AND OR NOT, phrases), paging 500 a page with @odata.nextLink (Prefer odata.maxpagesize up to 1000; expanded collections 100 with nav@odata.nextLink). Keys: products(1), products(id=1), products/1; …/prop, …/prop/$value, …/nav, …/$ref, …/$count. Writes: POST (201, Location, ETag; through a to-many navigation; nav@odata.bind for to-one), PATCH/PUT (204, or 200 with Prefer return=representation), DELETE 204; If-Match against @odata.etag → 412; If-None-Match → 304; computed properties ignored. Errors {"error": {code, message, target, details}}. $batch: multipart/mixed with change sets and $Content-ID references, or JSON {"requests": [...]} with atomicityGroup, dependsOn, $id; stops at the first failure unless Prefer odata.continue-on-error; 100 requests. Not supported: $apply, $compute, $levels, deep insert, $ref writes and delta (501); $it, $root, isof, cast, has, durations, INF/NaN in $filter (400/501); no functions or actions (404); Atom and CSDL JSON (406). OData-MaxVersion below 4.0 → 400. Docs: https://sondahub.com/odata-test-server/ ## FHIR R4 A FHIR R4 (4.0.1) server at https://api.sondahub.com/fhir over a synthetic clinic (no real patients; every resource tagged meta.tag HTEST; NPIs start with 9, phones 555-01xx, example.com emails): Patient 130, Practitioner 20, PractitionerRole 20, Organization 6, Location 6, Encounter 876, Observation 6884, Condition 360, MedicationRequest 285, AllergyIntolerance 50, Immunization 377, Procedure 612, DiagnosticReport 365, Appointment 645. Codes: LOINC (vitals to the R4 vital-signs profiles, labs with referenceRange and interpretation, panels in DiagnosticReport.result), SNOMED CT + ICD-10-CM (Condition), RxNorm (MedicationRequest.medicationCodeableConcept), CVX (Immunization), UCUM. MRN identifiers in system https://sondahub.com/fhir/sid/mrn. Ids are numeric strings, stable across builds. JSON only: application/fhir+json (406 for XML/Turtle, _format=json ok, _pretty=false for compact; Accept fhirVersion other than 4.0 → 406). CapabilityStatement at /fhir/metadata. Interactions: read (ETag W/"n", Last-Modified; If-None-Match / If-Modified-Since → 304), vread /{type}/{id}/_history/{n}, history at instance/type/system level (_since, _count; newest 3 versions per resource kept), search GET /{type}?… and POST /{type}/_search (form), system search /fhir?_type=…, Patient compartment /Patient/{id}/{type}, create POST (201, Location …/_history/1; If-None-Exist conditional create), update PUT (id must match; If-Match → 412 when stale; unchanged content makes no version; PUT to a new id with a letter or dash creates it, all-digit ids → 405), JSON Patch PATCH (application/json-patch+json; FHIRPath Patch → 415), delete (200 OperationOutcome, 204 with Prefer return=minimal; then 410; 409 while referenced, _cascade=delete or X-Cascade: delete), conditional update/patch/delete (/{type}?criteria; >1 match → 412), transaction and batch Bundles at POST /fhir (R4 order, urn:uuid fullUrls rewritten, ifNoneExist, conditional references Type?query, all-or-nothing; batch per-entry status; ≤200 entries; PATCH entries as Binary), Patient/$everything and Patient/{id}/$everything (start, end, _since, _type, _count), $validate on a type or instance (Parameters or resource; mode create/update/delete; always 200 with an OperationOutcome). Validation on write: unknown elements, cardinality, primitive formats, required bindings, R4 invariants (pat-1, org-1/2/3, obs-3/6/7, con-3/4/5, ait-1/2, app-1/2/3/4, per-1, qty-3, sqty-1, rng-2, …) and references (must resolve to a resource here) → 422 with every issue and its FHIRPath expression. Search: every R4 search parameter of each type plus _id _lastUpdated _tag _profile _security _source _content _text; string (prefix, case/accent-insensitive; :exact :contains), token (code, system|code, |code, system|; :not :text :of-type; bare codes carry their binding's system), date/number/quantity prefixes eq ne gt lt ge le sa eb ap (ranges at their precision; dates without a zone are UTC), reference (id, Type/id, absolute URL; :Type, :identifier; chains three deep; _has), composite with $, Location near=lat|lon|dist|km, :missing on all; comma = OR, repeat = AND. Results: _count (20 default, 500 max) with self/first/previous/next/last (_offset), _sort (- for desc), _include/_revinclude with :iterate and *, _summary (true/text/data/count), _elements (SUBSETTED tag), _total=none. Unknown parameters are ignored with an OperationOutcome entry (search.mode outcome) and left out of self; Prefer handling=strict → 400. Errors are OperationOutcome with issue.code and details from the operation-outcome code system (MSG_NO_EXIST, MSG_PARAM_UNKNOWN, MSG_SORT_UNKNOWN …). Not supported: :in :not-in :above :below (400), _filter _list _query _contained, _at, other compartments, subscriptions, $export. Writes travel in the X-Sondahub-Session token. Docs: https://sondahub.com/fhir-test-server/ ## Socket.IO Socket.IO 5 over Engine.IO 4 (socket.io-client 3.x/4.x, python-socketio 5) at https://api.sondahub.com, path /socket.io/. WebSocket transport only: connect with transports: ['websocket'] — a long-polling request answers 400 {"code":0,"message":"Transport unknown"}, EIO=3 is refused. Namespaces: / (test events), /admin (auth: { token: 'sonda-probe-key' } or a hub JWT, else connect_error "not authorized" with data.reason), /{api} for store, fleet, bank, social, helpdesk, flights, identity (unknown → connect_error "Invalid namespace"). Every request answers one object, { ok: true, data } or { ok: false, error: { code, message, details? } }, to the ack (emitWithAck resolves with it) or, with no ack, as an event of the same name; echo answers its arguments as sent. Test events: echo(…anything), time, sleep(ms), fail({ code, message, data }), ask(text), clock({ count, interval }), binary(size), kick, drop, help; /admin adds whoami. API namespaces: list{Things}, get{Thing}, create{Thing}, update{Thing}, delete{Thing} for every collection (one object = named arguments, else positional), subscribe/unsubscribe/topics; on join a "welcome" event; live topics pushed as events named for the topic about once a second (narrow with auth: { topics: [...] }). Writes keep for the connection; after each a "session" event { token } — reconnect with auth: { session: token } or ?_session=. Ping every 25 s, 20 s for the pong, 1 MB per message, 20 events/s in bursts of 100. Every connection is its own world: no rooms or broadcasts between clients. Docs: https://sondahub.com/socket-io-test-server/ ## Kafka A Kafka cluster — one broker, node 1 — reached through the bridge: https://sondahub.com/industrial/bridge.mjs, node bridge.mjs kafka [port], listens on localhost:9192 (not 9092, so a real broker keeps it; the next free port up to 9201 for a second cluster, or exactly the port given) and carries every TCP connection a client opens over one WebSocket to wss://api.sondahub.com/kafka. bootstrap.servers=localhost:9192. The broker advertises the address and port the client dialed. Each run of the bridge is its own cluster: its topics, groups and offsets end with it. APIs and versions (ApiVersions): Produce 0 v3-11, Fetch 1 v4-12, ListOffsets 2 v1-7, Metadata 3 v0-12, OffsetCommit 8 v2-9, OffsetFetch 9 v1-9, FindCoordinator 10 v0-5, JoinGroup 11 v0-9, Heartbeat 12 v0-4, LeaveGroup 13 v0-5, SyncGroup 14 v0-5, DescribeGroups 15 v0-5, ListGroups 16 v0-5, SaslHandshake 17 v1-1, ApiVersions 18 v0-4, CreateTopics 19 v2-7, DeleteTopics 20 v1-5, InitProducerId 22 v0-5, OffsetForLeaderEpoch 23 v2-4, DescribeConfigs 32 v1-4, SaslAuthenticate 36 v0-2, CreatePartitions 37 v0-3, DeleteGroups 42 v0-2, DescribeCluster 60 v0-1 (Produce listed from v0, answered from v3). Record batches v2 with CRC-32C checked; idempotent producers (InitProducerId, sequence checks, duplicates answered with their first offset); no transactions (a transactional id is refused); gzip, snappy and lz4 batches opened, zstd kept as sent. Fetch long-polls up to maxWaitMs and wakes when data lands; no fetch sessions. Consumer groups: the classic protocol (no KIP-848), MEMBER_ID_REQUIRED, 500 ms initial rebalance delay, static membership, session timeouts 6000-1800000 ms, committed offsets for the life of the cluster. SASL optional on the same port: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512; users sonda/sondahub (everything), viewer/viewer (read only); without SASL, everything; others refused (SASL_AUTHENTICATION_FAILED). Up to 200 topics, 64 partitions a topic, replication factor 1; topics auto-created on Metadata; retention.ms 1 hour by default, 24 MB a cluster. JSON as text without the bridge: {"topics":true}, {"subscribe":"fleet.telemetry"} (or a list, or "*"; "from":"earliest" for what the topics hold first), {"produce":"store.orders","key":"k","value":{...}}, {"unsubscribe":"*"}. Docs: https://sondahub.com/public-kafka-broker/ Topics, with 5 minutes of history when a cluster starts; values JSON, headers content-type: application/json and source: sondahub, keys partitioned with murmur2 like the Java client: - store.orders (3 partitions, key order id): Orders moving through their life — paid, shipped with a tracking number, delivered — one record per change. Produce your own order here and watch it move. - store.inventory (3 partitions, key SKU): Stock moving in the warehouses: picks and restocks. - fleet.telemetry (6 partitions, key device serial): Readings from the IoT fleet, about one a second, with metrics that walk instead of jumping. - fleet.devices (3 partitions, key device serial): Devices going degraded or offline and coming back. - fleet.alerts (3 partitions, key device serial): Alerts opened and cleared: thresholds, low battery, weak signal, offline. - bank.fx (3 partitions, key currency pair): Exchange rates with bid and ask, three a second. - bank.transactions (3 partitions, key account number): Card transactions on checking accounts, posted or pending. - social.posts (3 partitions, key username): New posts, with their hashtags. - social.likes (3 partitions, key post id): Likes landing on posts, with the running count. - social.comments (3 partitions, key post id): Comments on posts. - helpdesk.tickets (3 partitions, key ticket number): Tickets changing status and being assigned. - helpdesk.messages (3 partitions, key ticket number): Messages on tickets, from agents and customers. - flights.board (3 partitions, key flight number): The departures board: boarding, departed, in the air, landed — and delayed or cancelled. - flights.bookings (3 partitions, key flight number): Bookings and check-ins, with the seat and the seats left. - identity.logins (3 partitions, key user name): Sign-ins: the method, and why the ones that failed did. - identity.directory (3 partitions, key user name): People joining and leaving groups, deactivated, reactivated, retitled. - store.orders.dlq (1 partition): Records produced to store.orders that are not an order the hub can take, as they came, with the reason in an error header and where they were in original.topic, original.partition and original.offset. Orders: produce a JSON object with customer_id and total > 0 (and optionally id) to store.orders and the hub emits paid at 2 s, shipped (tracking_number) at 5 s, delivered at 9 s, keyed by the order id; over 10000 it is cancelled (payment declined); anything else goes to store.orders.dlq with an error header and original.topic/partition/offset. ## AMQP 0-9-1 and STOMP An AMQP 0-9-1 broker that follows RabbitMQ's conventions (not RabbitMQ), with STOMP 1.0, 1.1 and 1.2 on the same broker. TCP goes through the bridge: https://sondahub.com/industrial/bridge.mjs, node bridge.mjs amqp, listens on localhost:5772 for AMQP and localhost:61713 for STOMP (the usual 5672 and 61613 plus 100; the next free ports for a second broker) and carries every connection over one WebSocket to wss://api.sondahub.com/amqp — one bridge, one broker shared by its clients. STOMP also comes straight over WebSocket at wss://api.sondahub.com/stomp (subprotocols v12.stomp, v11.stomp, v10.stomp), one broker per connection; a WebSocket message holding one whole frame may leave off the NUL. Login: PLAIN or AMQPLAIN, vhost /: guest/guest (admin), sonda/sondahub (admin), viewer/viewer (viewer) — a viewer reads everything and may only declare server-named amq.gen-* queues (403 ACCESS_REFUSED otherwise). STOMP without login is guest. Tune: frame_max 131072, channel_max 2047, heartbeat 60 s. Exchanges: the default exchange, amq.direct, amq.fanout, amq.topic, amq.headers, amq.match, plus any you declare (direct, fanout, topic, headers; durable, auto-delete, internal); exchange-to-exchange bindings. Queue arguments: x-message-ttl (and the expiration property per message), x-max-length, x-max-length-bytes, x-overflow (drop-head, reject-publish, reject-publish-dlx), x-dead-letter-exchange, x-dead-letter-routing-key, x-single-active-consumer, x-queue-type classic or quorum (stream is refused); dead letters carry x-death, x-first-death-*, x-last-death-*. Publisher confirms, transactions (tx.select/commit/rollback), mandatory with basic.return, basic.qos per consumer or global, basic.get, ack/nack/reject with requeue, basic.recover, consumer cancel notification, direct reply-to (amq.rabbitmq.reply-to). Errors with RabbitMQ's codes and wording (404 NOT_FOUND, 405 RESOURCE_LOCKED, 406 PRECONDITION_FAILED, 403 ACCESS_REFUSED, 530 NOT_ALLOWED…). Queues the hub keeps (redeclare with any arguments; delete is refused 403): - store (amq.topic store.#): The store API’s live activity (store.orders, store.inventory): the last 500 messages, ten minutes at most, the last minute there from the start. - fleet (amq.topic fleet.#): The fleet API’s live activity (fleet.telemetry, fleet.devices, fleet.alerts): the last 500 messages, ten minutes at most, the last minute there from the start. - bank (amq.topic bank.#): The bank API’s live activity (bank.fx, bank.transactions): the last 500 messages, ten minutes at most, the last minute there from the start. - social (amq.topic social.#): The social API’s live activity (social.posts, social.likes, social.comments): the last 500 messages, ten minutes at most, the last minute there from the start. - helpdesk (amq.topic helpdesk.#): The helpdesk API’s live activity (helpdesk.tickets, helpdesk.messages): the last 500 messages, ten minutes at most, the last minute there from the start. - flights (amq.topic flights.#): The flights API’s live activity (flights.board, flights.bookings): the last 500 messages, ten minutes at most, the last minute there from the start. - identity (amq.topic identity.#): The identity API’s live activity (identity.logins, identity.directory): the last 500 messages, ten minutes at most, the last minute there from the start. - orders (the default exchange): Publish an order (JSON with customer_id and a total above 0) and the hub takes it through paid, shipped and delivered on store.orders. Anything else it rejects, and it is dead-lettered to orders.dead. - orders.dead (orders.dlx (fanout)): What orders rejected, with x-death saying when and why, and x-sondahub-error saying what was wrong. - rpc (the default exchange): Requests with reply_to and correlation_id: {"method":"store.getProduct","params":{"id":1}} — answered with {"result":…} or {"error":…}, the calls JSON-RPC makes. Messages from the feeds: JSON, content_type application/json, message_id, timestamp, type = routing key (api.feed), app_id sondahub, headers source and key; the last minute is in each API queue when the broker starts. Orders over 10000 are cancelled (payment declined) at 2 s. STOMP destinations: /queue/name (declared if missing), /amq/queue/name (must exist), /topic/key (amq.topic), /exchange/name/key, /temp-queue/name (answered at /reply-queue/…); ack auto, client, client-individual; prefetch-count; NACK with requeue:false dead-letters; receipts; BEGIN/COMMIT/ABORT; heart-beats 10000,10000. ## AMQP 1.0 AMQP 1.0 on the same broker and port as AMQP 0-9-1 (the protocol header decides, as on RabbitMQ 4): localhost:5772 through the bridge, or wss://api.sondahub.com/amqp over WebSocket with the subprotocol amqp (a broker per connection). SASL PLAIN (the AMQP users) or ANONYMOUS (guest); a plain AMQP header without SASL is taken as guest. Open: container-id sondahub, max-frame-size 131072, idle-time-out 60 s, offered capability ANONYMOUS-RELAY. Addresses (RabbitMQ v2): /exchanges/:exchange/:routing-key, /exchanges/:exchange (routing key = subject), /queues/:queue (target or source), a null target (each message's to), dynamic sources (a temporary queue, its /queues address in the attach); the v1 forms /topic/:key, /exchange/:x/:key, /queue/:q (declared), /amq/queue/:q. Missing exchange or queue: attach with a null terminus, then detach amqp:not-found. Outcomes in: accepted, released (unroutable), rejected (reject-publish, bad to, decode error). Outcomes out: accepted, released (requeued, delivery-count 1), modified (requeue, or dead-letter with undeliverable-here), rejected (dead-letter). Credit 100 per sender link, topped up; drain; settled or unsettled per snd-settle-mode; multi-frame transfers both ways; messages up to 4 MB. Delivered messages carry x-exchange and x-routing-key annotations; AMQP 1.0 messages keep their bare message as sent; 0-9-1 properties and headers map to properties and application-properties, the body to a data section; an amqp-value string reaches 0-9-1 as UTF-8 text/plain. Not offered: transactions (coordinator: amqp:not-implemented), the /management node, source filters, link recovery, TLS. ## FIX A FIX acceptor, SONDAHUB, for FIX.4.2, FIX.4.4, FIXT.1.1 (FIXT.1.1 with DefaultApplVerID 9, FIX 5.0 SP2). TCP through the bridge: node bridge.mjs fix [port], localhost:9976; or FIX over WebSocket at wss://api.sondahub.com/fix (SOH, or fields separated by | with BodyLength and CheckSum optional; answers in kind). TargetCompID(56) SONDAHUB; any SenderCompID; sequence numbers kept per counterparty for the life of the bridge's connection (ResetSeqNumFlag=Y resets). Sign-in optional: sonda/sondahub (trader), viewer/viewer (viewer). Session: first message must be Logon; gaps → ResendRequest (later messages kept and processed in order); too low without PossDupFlag → Logout "MsgSeqNum too low, expecting X but received Y"; garbled (BodyLength/CheckSum) ignored; SendingTime more than 2 minutes off → Reject 10 and Logout; heartbeats, TestRequest after 1.2 × HeartBtInt of silence, Logout after another HeartBtInt; ResendRequest answered with application messages (PossDupFlag, OrigSendingTime) and SequenceReset-GapFill. Reject reasons: 1 Required tag missing, 4 Tag specified without a value, 5 Value is incorrect (out of range) for this tag, 9 CompID problem, 10 SendingTime accuracy problem, 11 Invalid MsgType, 13 Tag appears more than once. - Heartbeat (0) [session]: Sent every HeartBtInt seconds when nothing else is; with TestReqID(112) when it answers a TestRequest. - TestRequest (1) [session]: Answered with a Heartbeat carrying its TestReqID(112). - ResendRequest (2) [session]: Answered by resending the application messages from BeginSeqNo(7) to EndSeqNo(16) (0 for all) with PossDupFlag(43)=Y, and a SequenceReset-GapFill over the session messages. - Reject (3) [session]: A session-level reject: taken and logged. - SequenceReset (4) [session]: GapFillFlag(123)=Y moves the expected number to NewSeqNo(36); without it, a reset that ignores MsgSeqNum. - Logout (5) [session]: Answered with a Logout, then the connection closes. - Logon (A) [session]: Starts the session: EncryptMethod(98)=0, HeartBtInt(108), ResetSeqNumFlag(141)=Y to start the numbers at 1; Username(553) and Password(554) when you sign in. FIXT.1.1 needs DefaultApplVerID(1137)=9. - NewOrderSingle (D): A market (40=1) or limit (40=2, with Price 44) order on a currency pair, TimeInForce(59) day, GTC, IOC or FOK: acknowledged New, then filled against the live quotes. - OrderCancelRequest (F): Cancels a resting order: an ExecutionReport Canceled, or an OrderCancelReject(9) when it is unknown or done. - OrderCancelReplaceRequest (G): Changes a resting order’s quantity or price: an ExecutionReport Replaced, or an OrderCancelReject. - OrderStatusRequest (H): An ExecutionReport with the order’s status (ExecType I from 4.4 on). - MarketDataRequest (V): Snapshot (263=0) or subscribe (263=1) to bids and offers (269=0, 1) on pairs: MarketDataSnapshotFullRefresh(W), or MarketDataIncrementalRefresh(X) with MDUpdateType(265)=1; 263=2 unsubscribes. - SecurityListRequest (x): The pairs that trade, as a SecurityList(y). From FIX 4.4. The exchange: the bank API currency pairs (EUR/USD, USD/JPY…), bid and offer from its live rates; market orders fill at the quote (over 1,000,000 in two fills), limits when the quote reaches them, IOC/FOK now or canceled; OrdRejReason 1 unknown symbol, 3 over the limit, 6 duplicate ClOrdID, 13 bad quantity; OrderCancelReject CxlRejReason 0 too late, 1 unknown order. Unsupported message types: BusinessMessageReject 380=3; a viewer trading: 380=6. ## NATS and JetStream A NATS server speaking the client protocol (1) and JetStream's API as nats-server 2.10.22 does (the version it reports). NATS clients that speak WebSocket connect to wss://api.sondahub.com/nats (binary frames, as nats-server; text lines typed by hand are answered in text, CRLF optional), each connection its own server. TCP clients go through the bridge: node bridge.mjs nats [port], nats://localhost:4322 (4222 plus 100; the next free port for a second server), one server shared by the bridge's clients. Sign-in: none; or sonda/sondahub, viewer/viewer (publishes only replies, acks and read-only JetStream calls); or auth_token sondahub. Wrong credentials: -ERR 'Authorization Violation'. Core: subjects with * and > wildcards, queue groups, headers (HPUB/HMSG), request/reply, no responders (a 503 status when headers and no_responders are on), echo, verbose, UNSUB max, PING every 2 minutes and Stale Connection after 2 unanswered. The hub publishes the feeds on store., fleet., bank., social., helpdesk., flights., identity. (store.orders, fleet.telemetry…), JSON with headers Content-Type and Sondahub-Key; streams STORE, FLEET, BANK, SOCIAL, HELPDESK, FLIGHTS, IDENTITY hold store.>, fleet.>, bank.>, social.>, helpdesk.>, flights.>, identity.> (10 minutes, the last minute at start); key-value buckets: fleet (The latest reading of each device, keyed by serial: a key-value bucket the fleet writes to as telemetry comes in. Watch it.) fx (The latest rate of each currency pair, keyed by pair (EUR/USD), written three times a second.) Services: orders.create (request with a JSON order: customer_id, total > 0; answered {"accepted":true,…}, then store.orders paid/shipped/delivered), rpc.. (params as the payload; {"result"} or {"error"} with Nats-Service-Error headers), and NATS micro discovery for service sondahub on $SRV.PING/INFO/STATS. JetStream ($JS.API.*): INFO; STREAM.CREATE/UPDATE/INFO/DELETE/PURGE/NAMES/LIST/MSG.GET/MSG.DELETE; DIRECT.GET (payload or subject form); CONSUMER.CREATE (all forms, action create/update), DURABLE.CREATE, INFO, DELETE, NAMES, LIST, MSG.NEXT. Retention limits/interest/workqueue, discard old/new, max msgs/bytes/age/msg size/msgs per subject, Nats-Msg-Id dedupe, Nats-Expected-* headers, Nats-Rollup. Consumers push and pull, durable and ephemeral (inactive threshold 5 s), deliver all/last/new/by_start_sequence/by_start_time/last_per_subject, filter subjects, ack none/all/explicit, ack wait, max deliver, max ack pending, headers only, idle heartbeats; acks +ACK -NAK (delay) +WPI +TERM +NXT; pull batch/max_bytes/expires/no_wait/idle_heartbeat ending in 408/404/409. Key-value buckets as clients make them (KV_, $KV..>). Limits: 25 streams, 100 consumers per stream, 32 MB, in memory. Not offered: clustering, leaf nodes, accounts, TLS, mirrors, sources, object store, snapshots. ## Redis A server answering Redis 7.2.4's commands (the version it reports) over RESP2 and RESP3 (HELLO 3). TCP through the bridge: node bridge.mjs redis [port], redis://localhost:6479 (6379 plus 100; the next free port for a second server), one server shared by the bridge's clients; or RESP — and inline commands typed as text — over WebSocket at wss://api.sondahub.com/redis, one server per connection. Users: default (no password), sonda/sondahub, viewer/viewer (read-only: NOPERM on writes). 16 databases, maxmemory 32 MB noeviction (OOM beyond). Commands: DEL UNLINK EXISTS TOUCH TYPE EXPIRE PEXPIRE EXPIREAT PEXPIREAT TTL PTTL EXPIRETIME PEXPIRETIME PERSIST KEYS SCAN RANDOMKEY RENAME RENAMENX COPY MOVE OBJECT DBSIZE FLUSHDB FLUSHALL GET SET SETNX SETEX PSETEX GETSET GETDEL GETEX MGET MSET MSETNX APPEND STRLEN GETRANGE SUBSTR SETRANGE INCR DECR INCRBY DECRBY INCRBYFLOAT HSET HMSET HSETNX HGET HMGET HGETALL HDEL HEXISTS HLEN HSTRLEN HKEYS HVALS HINCRBY HINCRBYFLOAT HRANDFIELD HSCAN LPUSH RPUSH LPUSHX RPUSHX LPOP RPOP LLEN LRANGE LINDEX LSET LREM LTRIM LINSERT LPOS LMOVE RPOPLPUSH BLPOP BRPOP BLMOVE BRPOPLPUSH SADD SREM SMEMBERS SISMEMBER SMISMEMBER SCARD SPOP SRANDMEMBER SINTER SUNION SDIFF SINTERSTORE SUNIONSTORE SDIFFSTORE SINTERCARD SMOVE SSCAN ZADD ZREM ZSCORE ZMSCORE ZINCRBY ZCARD ZCOUNT ZLEXCOUNT ZRANGE ZREVRANGE ZRANGEBYSCORE ZREVRANGEBYSCORE ZRANGEBYLEX ZREVRANGEBYLEX ZRANK ZREVRANK ZPOPMIN ZPOPMAX BZPOPMIN BZPOPMAX ZREMRANGEBYSCORE ZREMRANGEBYRANK ZREMRANGEBYLEX ZRANDMEMBER ZSCAN XADD XLEN XRANGE XREVRANGE XDEL XTRIM XREAD XREADGROUP XGROUP XACK XPENDING XCLAIM XAUTOCLAIM XINFO, plus HELLO AUTH PING ECHO SELECT CLIENT RESET QUIT COMMAND INFO CONFIG TIME MEMORY WAIT LASTSAVE SLOWLOG, SUBSCRIBE UNSUBSCRIBE PSUBSCRIBE PUNSUBSCRIBE PUBLISH PUBSUB, MULTI EXEC DISCARD WATCH UNWATCH. Not offered: Lua scripts and functions, modules, cluster, replication, persistence, CLIENT TRACKING, keyspace notifications, MONITOR, geo, HyperLogLog, bitmaps, SORT, ZUNION/ZINTER/ZDIFF, LMPOP/ZMPOP, sharded pub/sub. Database 0 from the start: - : (stream): Each feed as a stream — store:orders, fleet:telemetry, bank:fx… — the last minute there from the start, capped near 1,000 entries; each entry the event’s fields. - fleet:device: (hash): The latest reading of each device: type, site, quality and every metric, rewritten as telemetry comes in. - bank:fx: (hash): The latest rate, bid, ask and change of each currency pair (bank:fx:EUR/USD). - store:product: (hash): Products from the store’s catalog. - store:products:by_price (zset): Those products by price: ZRANGE store:products:by_price 0 50 BYSCORE WITHSCORES. - social:trending (zset): Hashtags by how often they are posted, counting up as posts come in. - flights:board (hash): Flight number to status on the departures board. - store:order: (hash): The orders you add to orders:incoming, with their status as it changes. - orders:incoming (stream): Add an order — XADD orders:incoming * customer_id 7 total 42.5 — and the hub’s consumer group sondahub reads it and acknowledges it: paid in 2 s, shipped in 5, delivered in 9, on store:orders. - orders:dead (stream): What orders:incoming could not take, with the fields as they came and an error field saying why. Orders: XADD orders:incoming * customer_id 7 total 42.5 (or a field order with JSON); the hub's consumer group sondahub reads and acknowledges it, store:order: follows its status, and each change goes to the store:orders stream and channel; rejects go to orders:dead with an error field. ## HL7 v2 A receiving application (SONDAHUB/SONDAHUB) for HL7 v2 2.2, 2.3, 2.3.1, 2.4, 2.5, 2.5.1, 2.6, 2.7, 2.7.1, 2.8, 2.8.1, 2.8.2. POST an ER7 message (segments ending in CR; Content-Type x-application/hl7-v2+er7 or text/plain) to https://api.sondahub.com/hl7 and the answer is the ACK (header X-Hl7-Outcome: AA, AE, AR, CA, CR); GET https://api.sondahub.com/hl7/samples (?mrn=, ?version=) for ready messages. MLLP (VT … FS CR) through the bridge: node bridge.mjs hl7, localhost:2675 (2575 plus 100, the next free port for a second receiver); through the bridge the receiver remembers registrations and duplicate control ids. Patients: the synthetic clinic's (the FHIR server's, same MRNs). - ADT^A01/A02/A03/A04/A05/A08/A11/A13/A28/A31/A40: Admit, transfer, discharge, register, pre-admit, update, cancel admit, cancel discharge, add and update person, merge. A01, A04, A05 and A28 register the patient; A08 and A31 update one; A40 merges MRG-1 into PID-3. - ORU^R01: Observation results: OBR with its OBX segments, value types and result statuses checked. - ORM^O01: Orders: ORC with its order control code, and the OBR it orders. - OML^O21: Laboratory orders: ORC and OBR. - SIU^S12/S13/S14/S15: Appointments booked, rescheduled, modified, cancelled: SCH. - MDM^T02: A document with its content: TXA and OBX. - VXU^V04: Vaccinations given: RXA with when, what and how much. - DFT^P03: Charges: FT1 with date, type and code. - QRY^A19: Patient query by MRN (QRD-8), answered with ADR^A19. - QBP^Q22: Find candidates by @PID.3.1, @PID.5.1, @PID.5.2, @PID.7 or @PID.8, answered with RSP^K22. Checks: MSH separators, MSH-7, MSH-9, MSH-10, MSH-11 (P, T, D), MSH-12 (AR when wrong); segment order and required segments; PID-3, PID-5, PID-7, PID-8 (table 0001), PV1-2 (table 0004), OBX-2 (table 0125), OBX-5 numeric for NM, OBX-11 (table 0085), ORC-1 (table 0119), RXA-6 (AE when wrong, an ERR per problem: 2.5+ ERR||loc|code^text^HL70357|E||||text, earlier ERR|loc^code&text&HL70357). Error codes (table 0357): 100 Segment sequence error, 101 Required field missing, 102 Data type error, 103 Table value not found, 200 Unsupported message type, 201 Unsupported event code, 202 Unsupported processing id, 203 Unsupported version id, 204 Unknown key identifier, 205 Duplicate key identifier, 207 Application internal error. Enhanced mode (MSH-15/16 AL, ER, SU, NE): a commit ACK (CA/CR), then the application ACK. ## SCIM 2.0 https://api.sondahub.com/scim/v2 over the Identity directory. Authorization: Bearer sonda-scim-token (or an OAuth access token; /Me needs one for a person). Users and Groups: GET (filter with eq ne co sw ew gt ge lt le pr, and/or/not, value paths; sortBy, sortOrder, startIndex, count ≤200, attributes, excludedAttributes), POST, PUT, PATCH (add/replace/remove, Okta and Entra shapes), DELETE, ETag / If-Match; /.search, /Bulk (≤100 ops, bulkId), /Me, /ServiceProviderConfig, /ResourceTypes, /Schemas (no auth). userName is unique (409 uniqueness). Writes keep to the session token. Docs: https://sondahub.com/scim-test-server/ ## SAML 2.0 IdP: metadata and entity ID https://api.sondahub.com/saml/metadata, SSO https://api.sondahub.com/saml/sso (Redirect and POST bindings; IdP-initiated with ?acs=&audience=), SLO https://api.sondahub.com/saml/slo, certificate https://api.sondahub.com/saml/certificate. Signs in any Identity directory user (user_name or email, password probe). Options as query parameters or switches on the sign-in page: sign=both|assertion|response|none, nameid=request|email|persistent|transient|unspecified, attrs=basic|claims|oid, encrypt=none|gcm|cbc (for the test SP, or sp_metadata=URL), outcome=success|AuthnFailed|RequestDenied|expired|tampered; auto=1 skips the page, format=json answers JSON. Test SP: https://api.sondahub.com/saml/sp (start with ?idp=SSO URL), ACS https://api.sondahub.com/saml/acs, entity ID and metadata https://api.sondahub.com/saml/sp/metadata — every response is decoded, decrypted, signature-checked (RSA-SHA1/256/512, exclusive or inclusive c14n) and judged condition by condition (format=json for JSON). https://api.sondahub.com/saml/decode decodes any SAML message. Docs: https://sondahub.com/saml-test-idp/ ## REST conventions (every collection) - GET https://api.sondahub.com/v1/{api}/{collection} — a page: {"data": [...], "meta": {"page","limit","total","pages"}}, X-Total-Count and Link headers - GET https://api.sondahub.com/v1/{api}/{collection}/{id} — one record, with an ETag (If-None-Match → 304) - POST https://api.sondahub.com/v1/{api}/{collection} — create: 201 + Location; 422 lists each wrong field - PATCH / PUT / DELETE https://api.sondahub.com/v1/{api}/{collection}/{id} - GET https://api.sondahub.com/v1/{api}/{collection}/{id}/{relation} — related records - page, limit (1–200, default 20), offset; sort=a,-b; field=value; suffixes _ne _gt _gte _lt _lte _like _in _null; a.b=value inside JSON fields; q= full-text; fields=a,b; expand=relation,relation - Errors: {"error": {"code", "message", "details"}}; 400 for an unknown field, 404 missing id, 405 with Allow, 409 conflicts, 422 validation - OpenAPI 3.0.3 per API: https://api.sondahub.com/v1/{api}/openapi.json ## GraphQL (per API) POST https://api.sondahub.com/v1/{api}/graphql {"query","variables"} or GET ?query=. Introspection on; SDL at ?sdl. Each collection: a paged list query (limit, page, sort, q, filter with operator suffixes like price_lt) returning {total, data}, a by-id query, relation fields both ways, and createX / updateX / replaceX / deleteX mutations (simulated; the note is in extensions). No subscriptions — use the streams. ## Live streams (per API) - WebSocket wss://api.sondahub.com/v1/{api}/ws?topics=a,b — hello, then {"type":"event","topic","api","ts","data"} about once a second; send {"type":"subscribe","topics":[...]}, {"type":"ping"} → pong, anything else is echoed as {"type":"echo"} - SSE https://api.sondahub.com/v1/{api}/events?topics=a,b — the same events, named by topic, with ids; Last-Event-ID resumes the numbering - Echo socket wss://api.sondahub.com/v1/utils/ws (text and binary); SSE clock https://api.sondahub.com/v1/utils/sse?count=10&interval=1000 ## Store API — fake e-commerce API An online shop: products, customers, orders, reviews and stock. Two thousand products in eight categories, eight hundred customers, three thousand orders with their line items, reviews, three warehouses of stock and open carts. Orders move through a lifecycle (pending → paid → shipped → delivered) and the live stream shows orders moving. Base https://api.sondahub.com/v1/store · OpenAPI https://api.sondahub.com/v1/store/openapi.json · GraphQL https://api.sondahub.com/v1/store/graphql · WS wss://api.sondahub.com/v1/store/ws · SSE https://api.sondahub.com/v1/store/events · Docs https://sondahub.com/apis/store/ Live topics: orders (An order changing status (paid → shipped → delivered). every 4 s); inventory (A stock level moving at a warehouse. every 6 s) ### store/categories — 8 records The eight product categories. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; name string required; slug string required; description text; product_count int read-only Relations (expand / nested route): products → many products via category_id Data file: https://api.sondahub.com/data/store/categories.json · Page: https://sondahub.com/apis/store/categories/ ### store/products — 2,000 records What the store sells. Prices are in USD. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; sku string required; name string required; slug string; description text; category_id ref → categories required; brand string; price float required; compare_at_price float; currency string; color string; weight_g int; tags json string[]; in_stock bool; rating float read-only; review_count int read-only; status enum(active|draft|archived) Relations (expand / nested route): category → one categories via category_id; reviews → many reviews via product_id; inventory → many inventory via product_id Data file: https://api.sondahub.com/data/store/products.json · Page: https://sondahub.com/apis/store/products/ ### store/customers — 800 records People who buy. Addresses are nested objects; filter on them with a dotted name (?address.country=AR). Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; name string required; email string required; phone string; company string; address json { line1, line2?, city, region, postal_code, country }; tier enum(standard|silver|gold|platinum); marketing_opt_in bool; orders_count int read-only; total_spent float read-only; notes text Relations (expand / nested route): orders → many orders via customer_id; reviews → many reviews via customer_id Data file: https://api.sondahub.com/data/store/customers.json · Page: https://sondahub.com/apis/store/customers/ ### store/orders — 3,000 records An order and its money. Line items live in order_items (also at /orders/{id}/items and ?expand=items). Rules: POST may carry items: [{ product_id, quantity }]: the hub prices them from the products, computes subtotal, shipping, tax and total, creates the order items and returns them inline. PATCH to shipped stamps shipped_at and a tracking number; delivered stamps delivered_at. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; number string read-only; customer_id ref → customers required; status enum(pending|paid|shipped|delivered|cancelled|refunded); subtotal float; shipping float; tax float; discount float; total float; currency string; payment_method enum(card|paypal|bank_transfer|cash_on_delivery); shipping_address json { line1, line2?, city, region, postal_code, country }; shipping_method enum(standard|express|overnight|pickup); tracking_number string; placed_at datetime; paid_at datetime; shipped_at datetime; delivered_at datetime; notes text Relations (expand / nested route): customer → one customers via customer_id; items → many order_items via order_id Data file: https://api.sondahub.com/data/store/orders.json · Page: https://sondahub.com/apis/store/orders/ ### store/order_items — 6,219 records One product line on an order. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; order_id ref → orders required; product_id ref → products required; sku string; name string; quantity int required; unit_price float; line_total float Relations (expand / nested route): order → one orders via order_id; product → one products via product_id Data file: https://api.sondahub.com/data/store/order_items.json · Page: https://sondahub.com/apis/store/order_items/ ### store/reviews — 2,500 records Customer reviews, 1–5 stars. Rules: POST recomputes the product’s rating and review_count — in the answer’s world, which ends with the answer. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; product_id ref → products required; customer_id ref → customers required; rating int required; title string; body text; verified_purchase bool; helpful_votes int Relations (expand / nested route): product → one products via product_id; customer → one customers via customer_id Data file: https://api.sondahub.com/data/store/reviews.json · Page: https://sondahub.com/apis/store/reviews/ ### store/warehouses — 3 records Where stock sits. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; code string required; name string required; address json { line1, city, region, postal_code, country }; timezone string Relations (expand / nested route): inventory → many inventory via warehouse_id Data file: https://api.sondahub.com/data/store/warehouses.json · Page: https://sondahub.com/apis/store/warehouses/ ### store/inventory — 6,000 records Stock of a product at a warehouse. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; product_id ref → products required; warehouse_id ref → warehouses required; on_hand int required; reserved int; reorder_point int; bin string; counted_at datetime Relations (expand / nested route): product → one products via product_id; warehouse → one warehouses via warehouse_id Data file: https://api.sondahub.com/data/store/inventory.json · Page: https://sondahub.com/apis/store/inventory/ ### store/carts — 200 records Open shopping carts; items are a nested array, so a cart is one document. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; customer_id ref → customers; session_id string; status enum(open|abandoned|converted); items json { product_id, sku, name, quantity, unit_price }[]; item_count int; subtotal float; coupon string; last_activity_at datetime Relations (expand / nested route): customer → one customers via customer_id Data file: https://api.sondahub.com/data/store/carts.json · Page: https://sondahub.com/apis/store/carts/ ## Fleet API — fake IoT API An IoT fleet: sites, devices, telemetry and alerts — the MQTT one. Five hundred devices of eight kinds across forty sites. The readings table holds the last window of telemetry; the live stream and the MQTT broker publish fresh readings every few seconds and accept commands back. Devices report firmware, signal and battery so there is always something to alert on. Base https://api.sondahub.com/v1/fleet · OpenAPI https://api.sondahub.com/v1/fleet/openapi.json · GraphQL https://api.sondahub.com/v1/fleet/graphql · WS wss://api.sondahub.com/v1/fleet/ws · SSE https://api.sondahub.com/v1/fleet/events · Docs https://sondahub.com/apis/fleet/ Live topics: telemetry (A fresh reading from one of the devices, with its serial, type and metrics. every 2 s); alerts (An alert opening or resolving. every ~15 s); devices (A device going online, offline or degraded. every ~10 s) ### fleet/sites — 40 records A place devices are installed. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; code string required; name string required; kind enum(warehouse|office|plant|store|datacenter|farm|clinic|depot); address json { line1, city, region, postal_code, country }; timezone string; lat float; lon float; device_count int read-only; status enum(active|maintenance|decommissioned) Relations (expand / nested route): devices → many devices via site_id Data file: https://api.sondahub.com/data/fleet/sites.json · Page: https://sondahub.com/apis/fleet/sites/ ### fleet/devices — 500 records A device on a site. Its MQTT topics are fleet/{serial}/telemetry (published by the broker) and fleet/{serial}/commands (you publish). Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; serial string required; name string; type enum(thermostat|power_meter|air_quality|water_meter|gateway|door_sensor|vibration|gps_tracker) required; model string; site_id ref → sites required; firmware string; status enum(online|offline|degraded|provisioning|retired); battery_pct int; rssi_dbm int; ip string; mac string; tags json string[]; config json { report_interval_s, thresholds? }; installed_at datetime; last_seen_at datetime Relations (expand / nested route): site → one sites via site_id; readings → many readings via device_id; alerts → many alerts via device_id Data file: https://api.sondahub.com/data/fleet/devices.json · Page: https://sondahub.com/apis/fleet/devices/ ### fleet/readings — 4,908 records Telemetry. metrics is an object whose keys depend on the device type (a thermostat reports temperature, humidity and setpoint; a power meter voltage, current, power_kw and energy_kwh). Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; device_id ref → devices required; recorded_at datetime required; metrics json { [metric]: number | boolean } required; quality enum(good|estimated|suspect) Relations (expand / nested route): device → one devices via device_id Data file: https://api.sondahub.com/data/fleet/readings.json · Page: https://sondahub.com/apis/fleet/readings/ ### fleet/alerts — 500 records Something a device or a site needs looked at. Acknowledge one with PATCH {"status":"acknowledged"}. Rules: PATCH to acknowledged or resolved stamps the matching timestamp. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; device_id ref → devices required; site_id ref → sites; severity enum(info|warning|critical) required; kind enum(offline|low_battery|threshold|tamper|firmware|weak_signal) required; message string; status enum(open|acknowledged|resolved|muted); opened_at datetime; acknowledged_at datetime; resolved_at datetime; acknowledged_by string Relations (expand / nested route): device → one devices via device_id; site → one sites via site_id Data file: https://api.sondahub.com/data/fleet/alerts.json · Page: https://sondahub.com/apis/fleet/alerts/ ### fleet/commands — 300 records A command sent to a device (reboot, set a config value, request a report). POST one and the answer carries the device’s acknowledgement. Rules: POST answers acked with a result when the device is online (a real device would take a second; with nothing stored there is no later, so the answer is the acknowledgement), queued otherwise. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; device_id ref → devices required; action enum(reboot|set_config|report_now|update_firmware|identify) required; params json object; status enum(queued|sent|acked|failed|expired); issued_by string; sent_at datetime; acked_at datetime; result json object Relations (expand / nested route): device → one devices via device_id Data file: https://api.sondahub.com/data/fleet/commands.json · Page: https://sondahub.com/apis/fleet/commands/ ### MQTT (Fleet) Broker wss://api.sondahub.com/mqtt — WebSocket only (subprotocol mqtt), MQTT 3.1.1 and 5, any username/password, QoS 0 and 1 (2 delivered at 1), retained messages, + and # wildcards, topic aliases. Each connection gets its own world: what you publish reaches your own subscriptions, not other clients'. - broker publishes fleet/{serial}/telemetry: Readings, JSON, every 2 s from a rotating set of devices. Subscribe to fleet/+/telemetry for all of them. - broker publishes fleet/{serial}/status: Retained. online | offline | degraded, changing now and then. - broker publishes fleet/{serial}/ack: The answer to a command you published. - broker publishes fleet/alerts: Alerts as they open and resolve. - you publish fleet/{serial}/commands: Publish {"action":"reboot"} (or set_config, report_now, identify) and the device acknowledges on fleet/{serial}/ack. - you publish anything else: A plain broker: whatever you publish reaches your own matching subscriptions, retained flag honoured. ## Bank API — fake banking API Retail banking: customers, accounts, cards, nearly eight thousand transactions, transfers and FX rates. Accounts carry real running balances. POST a transfer between two accounts and the hub debits one, credits the other and writes both transactions; carry the session token and the balances stay moved. FX rates tick over the live stream. Base https://api.sondahub.com/v1/bank · OpenAPI https://api.sondahub.com/v1/bank/openapi.json · GraphQL https://api.sondahub.com/v1/bank/graphql · WS wss://api.sondahub.com/v1/bank/ws · SSE https://api.sondahub.com/v1/bank/events · Docs https://sondahub.com/apis/bank/ Live topics: fx (A rate ticking: pair, rate, bid, ask. every 1 s); transactions (A card payment posting on one of the seed accounts. every 3 s) ### bank/customers — 400 records Account holders. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; name string required; email string required; phone string; date_of_birth date; address json { line1, line2?, city, region, postal_code, country }; segment enum(retail|premium|business|student); kyc_status enum(pending|verified|rejected); risk_score int Relations (expand / nested route): accounts → many accounts via customer_id; cards → many cards via customer_id Data file: https://api.sondahub.com/data/bank/customers.json · Page: https://sondahub.com/apis/bank/customers/ ### bank/accounts — 640 records Checking, savings, credit and loan accounts. balance is the current balance after every transaction. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; number string read-only; iban string read-only; customer_id ref → customers required; type enum(checking|savings|credit|loan) required; nickname string; currency string; balance float; available float; credit_limit float; interest_rate float; status enum(active|frozen|closed); opened_at date Relations (expand / nested route): customer → one customers via customer_id; transactions → many transactions via account_id; cards → many cards via account_id Data file: https://api.sondahub.com/data/bank/accounts.json · Page: https://sondahub.com/apis/bank/accounts/ ### bank/cards — 505 records Debit and credit cards on an account. Numbers are masked; the last four are real digits of the seed. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; account_id ref → accounts required; customer_id ref → customers required; brand enum(visa|mastercard|amex); type enum(debit|credit|virtual); masked_number string read-only; last4 string read-only; holder_name string; expires string; status enum(active|blocked|expired|lost); contactless bool; daily_limit float Relations (expand / nested route): account → one accounts via account_id; customer → one customers via customer_id Data file: https://api.sondahub.com/data/bank/cards.json · Page: https://sondahub.com/apis/bank/cards/ ### bank/transactions — 7,674 records Every movement on an account. amount is signed: negative leaves the account. balance_after is the running balance. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; account_id ref → accounts required; reference string read-only; type enum(card|transfer|deposit|withdrawal|fee|interest|payment|refund); amount float required; currency string; balance_after float read-only; description string; merchant string; category enum(groceries|dining|transport|fuel|shopping|utilities|entertainment|health|travel|subscriptions|transfer|income|fees|other); status enum(pending|posted|reversed); card_id ref → cards; counterparty json { name, account_number? }; booked_at datetime required; value_date date Relations (expand / nested route): account → one accounts via account_id; card → one cards via card_id Data file: https://api.sondahub.com/data/bank/transactions.json · Page: https://sondahub.com/apis/bank/transactions/ ### bank/transfers — 800 records Money moving between two accounts. POST {"from_account_id","to_account_id","amount","description"} and the hub checks the funds, debits, credits, and writes both transactions. Insufficient funds answers 422. Rules: POST checks both accounts exist, are active, hold the same currency and that the amount is available, then debits, credits and writes a transaction on each side; the answer carries debit_transaction_id and credit_transaction_id. Anything wrong answers 422 with the reason. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; from_account_id ref → accounts required; to_account_id ref → accounts required; amount float required; currency string; description string; status enum(completed|pending|failed|reversed) read-only; debit_transaction_id ref → transactions read-only; credit_transaction_id ref → transactions read-only; scheduled_for date; executed_at datetime read-only Relations (expand / nested route): from_account → one accounts via from_account_id; to_account → one accounts via to_account_id Data file: https://api.sondahub.com/data/bank/transfers.json · Page: https://sondahub.com/apis/bank/transfers/ ### bank/fx_rates — 28 records Exchange rates against USD and the main crosses. The live stream ticks them. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; pair string required; base string required; quote string required; rate float required; bid float; ask float; change_24h_pct float; as_of datetime Data file: https://api.sondahub.com/data/bank/fx_rates.json · Page: https://sondahub.com/apis/bank/fx_rates/ ## Social API — fake social media API A social network: users, posts, comments, likes and follows — the GraphQL one. Eight hundred users, four thousand posts, eight thousand comments and the likes and follows between them. Deeply related, which is what GraphQL is for: a user, the user’s posts, each post’s comments and the comment authors in one query. Base https://api.sondahub.com/v1/social · OpenAPI https://api.sondahub.com/v1/social/openapi.json · GraphQL https://api.sondahub.com/v1/social/graphql · WS wss://api.sondahub.com/v1/social/ws · SSE https://api.sondahub.com/v1/social/events · Docs https://sondahub.com/apis/social/ Live topics: posts (A new post from one of the seed users. every 5 s); likes (Someone liking something. every 2 s) ### social/users — 800 records Members. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; username string required; display_name string required; email string; bio text; avatar_url string; location string; website string; verified bool; private bool; followers_count int read-only; following_count int read-only; posts_count int read-only; joined_at datetime Relations (expand / nested route): posts → many posts via author_id; comments → many comments via author_id; likes → many likes via user_id; followers → many follows via followee_id; following → many follows via follower_id Data file: https://api.sondahub.com/data/social/users.json · Page: https://sondahub.com/apis/social/users/ ### social/posts — 4,000 records What people write. hashtags is an array; filter with ?hashtags_like=coffee. Rules: POST fills defaults (public, empty hashtags, now) and bumps the author’s posts_count. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; author_id ref → users required; body text required; hashtags json string[]; media json { kind, url, alt? }[]; visibility enum(public|followers|private); reply_to_id ref → posts; likes_count int read-only; comments_count int read-only; reposts_count int read-only; language string; published_at datetime; edited_at datetime Relations (expand / nested route): author → one users via author_id; comments → many comments via post_id; likes → many likes via post_id; reply_to → one posts via reply_to_id Data file: https://api.sondahub.com/data/social/posts.json · Page: https://sondahub.com/apis/social/posts/ ### social/comments — 8,000 records Comments on posts; a comment can answer another comment through parent_id. Rules: POST bumps the post’s comments_count; DELETE lowers it. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; post_id ref → posts required; author_id ref → users required; parent_id ref → comments; body text required; likes_count int read-only; flagged bool Relations (expand / nested route): post → one posts via post_id; author → one users via author_id; parent → one comments via parent_id; replies → many comments via parent_id Data file: https://api.sondahub.com/data/social/comments.json · Page: https://sondahub.com/apis/social/comments/ ### social/likes — 8,000 records A user liking a post. POST one to like; DELETE it to unlike. Rules: POST refuses a second like of the same post by the same user (409 already_liked) and bumps the post’s likes_count; DELETE lowers it. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; user_id ref → users required; post_id ref → posts required Relations (expand / nested route): user → one users via user_id; post → one posts via post_id Data file: https://api.sondahub.com/data/social/likes.json · Page: https://sondahub.com/apis/social/likes/ ### social/follows — 5,000 records follower_id follows followee_id. Rules: POST refuses following yourself and duplicates (409); following a private user starts pending; active follows move both users’ counters. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; follower_id ref → users required; followee_id ref → users required; status enum(active|pending|blocked); notifications bool Relations (expand / nested route): follower → one users via follower_id; followee → one users via followee_id Data file: https://api.sondahub.com/data/social/follows.json · Page: https://sondahub.com/apis/social/follows/ ## Helpdesk API — fake helpdesk API A support desk: tickets, messages, agents, customers, SLAs — the state-machine one. Two thousand tickets with their message threads, twenty-five agents in four teams and three hundred customer companies. A ticket moves open → pending → resolved → closed; PATCH its status and the hub checks the transition and stamps the timestamps. Base https://api.sondahub.com/v1/helpdesk · OpenAPI https://api.sondahub.com/v1/helpdesk/openapi.json · GraphQL https://api.sondahub.com/v1/helpdesk/graphql · WS wss://api.sondahub.com/v1/helpdesk/ws · SSE https://api.sondahub.com/v1/helpdesk/events · Docs https://sondahub.com/apis/helpdesk/ Live topics: tickets (A ticket opening, being assigned, or changing status. every 5 s); messages (A new message on a ticket. every 4 s) ### helpdesk/teams — 4 records Support teams. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; name string required; slug string; timezone string; hours string Relations (expand / nested route): agents → many agents via team_id Data file: https://api.sondahub.com/data/helpdesk/teams.json · Page: https://sondahub.com/apis/helpdesk/teams/ ### helpdesk/agents — 25 records The people answering tickets. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; name string required; email string required; team_id ref → teams required; role enum(agent|senior|lead|admin); status enum(available|busy|away|offline); skills json string[]; open_tickets int read-only; rating float read-only Relations (expand / nested route): team → one teams via team_id; tickets → many tickets via assignee_id Data file: https://api.sondahub.com/data/helpdesk/agents.json · Page: https://sondahub.com/apis/helpdesk/agents/ ### helpdesk/customers — 300 records Companies with a support contract. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; name string required; domain string; plan enum(free|starter|business|enterprise); contact_name string; contact_email string; sla_hours int; open_tickets int read-only; satisfaction float read-only Relations (expand / nested route): tickets → many tickets via customer_id Data file: https://api.sondahub.com/data/helpdesk/customers.json · Page: https://sondahub.com/apis/helpdesk/customers/ ### helpdesk/tickets — 2,000 records A support request. Allowed status moves: open → pending | resolved; pending → open | resolved; resolved → closed | open; closed → open (reopen). Anything else answers 422. Rules: PATCH checks the status move (open → pending | resolved; pending → open | resolved; resolved → closed | open; closed → open) and answers 422 invalid_transition otherwise; resolving and closing stamp their timestamps, assigning stamps first_response_at. Counters on the customer and agent follow. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; number string read-only; subject string required; description text; status enum(open|pending|resolved|closed); priority enum(low|normal|high|urgent); category enum(billing|account|bug|feature|howto); channel enum(email|chat|phone|web|api); customer_id ref → customers required; requester_email string; assignee_id ref → agents; team_id ref → teams; tags json string[]; first_response_at datetime read-only; resolved_at datetime read-only; closed_at datetime read-only; due_at datetime; sla_breached bool read-only; satisfaction int; message_count int read-only Relations (expand / nested route): customer → one customers via customer_id; assignee → one agents via assignee_id; team → one teams via team_id; messages → many messages via ticket_id Data file: https://api.sondahub.com/data/helpdesk/tickets.json · Page: https://sondahub.com/apis/helpdesk/tickets/ ### helpdesk/messages — 5,069 records The thread on a ticket, in order. author_type says who wrote it. Rules: POST bumps the ticket’s message_count; an agent’s first message stamps first_response_at; a customer message reopens a pending ticket. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; ticket_id ref → tickets required; author_type enum(customer|agent|system) required; author_id ref → agents; author_name string; body text required; internal bool; attachments json { name, size, content_type }[] Relations (expand / nested route): ticket → one tickets via ticket_id; author → one agents via author_id Data file: https://api.sondahub.com/data/helpdesk/messages.json · Page: https://sondahub.com/apis/helpdesk/messages/ ## Flights API — fake flight booking API Airports, airlines, two and a half thousand scheduled flights and their bookings — the live-board one. Fifty real airports, six invented airlines, flights over a two-week window around the seed’s "today" (2026-09-01), and three and a half thousand bookings with passengers and seats. The live stream runs a departures board: flights boarding, departing, delayed and landing. POST a booking and the hub picks a seat. Base https://api.sondahub.com/v1/flights · OpenAPI https://api.sondahub.com/v1/flights/openapi.json · GraphQL https://api.sondahub.com/v1/flights/graphql · WS wss://api.sondahub.com/v1/flights/ws · SSE https://api.sondahub.com/v1/flights/events · Docs https://sondahub.com/apis/flights/ Live topics: board (The departures board: a flight boarding, departing, delayed, landing or cancelled. every 3 s); bookings (A seat being booked or checked in on a seed flight. every 6 s) ### flights/airports — 50 records Airports by IATA code. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; iata string required; name string required; city string; country string; timezone string; lat float; lon float; terminals int Data file: https://api.sondahub.com/data/flights/airports.json · Page: https://sondahub.com/apis/flights/airports/ ### flights/airlines — 6 records Carriers. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; code string required; name string required; alliance string; fleet_size int Relations (expand / nested route): flights → many flights via airline_id Data file: https://api.sondahub.com/data/flights/airlines.json · Page: https://sondahub.com/apis/flights/airlines/ ### flights/flights — 2,500 records A scheduled flight. Times are ISO with the airport’s UTC offset applied, so a departure reads like the board. Filter by route with ?origin=MIA&destination=EZE, by day with ?departure_date=2026-09-02. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; number string required; airline_id ref → airlines required; origin string required; destination string required; origin_airport_id ref → airports; destination_airport_id ref → airports; departure_date date; scheduled_departure datetime required; scheduled_arrival datetime; estimated_departure datetime; actual_departure datetime; status enum(scheduled|boarding|departed|in_air|landed|delayed|cancelled|diverted); delay_minutes int; gate string; terminal string; aircraft string; duration_minutes int; distance_km int; seats_total int; seats_available int read-only; base_fare float Relations (expand / nested route): airline → one airlines via airline_id; origin_airport → one airports via origin_airport_id; destination_airport → one airports via destination_airport_id; bookings → many bookings via flight_id Data file: https://api.sondahub.com/data/flights/flights.json · Page: https://sondahub.com/apis/flights/flights/ ### flights/bookings — 3,500 records A seat on a flight. POST {"flight_id","passenger":{...},"cabin"} and the hub assigns a seat and a record locator. Cancel with PATCH {"status":"cancelled"}. Rules: POST needs passenger.first_name and last_name, refuses cancelled or departed flights and sold-out ones (409), picks a free seat in the cabin when you give none, prices the fare from the flight, and mints a six-character locator. Cancelling gives the seat back. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; locator string read-only; flight_id ref → flights required; passenger json { first_name, last_name, email, document? } required; seat string; cabin enum(economy|premium|business|first); status enum(confirmed|checked_in|boarded|cancelled|no_show); fare float; currency string; bags int; frequent_flyer string; special_requests json string[]; booked_at datetime; checked_in_at datetime Relations (expand / nested route): flight → one flights via flight_id Data file: https://api.sondahub.com/data/flights/bookings.json · Page: https://sondahub.com/apis/flights/bookings/ ## Identity API — fake user directory API A company directory: people, groups and memberships — behind SCIM 2.0, SAML and OpenID Connect. Three hundred people at a made-up company, Orbit Labs, in forty groups — departments, teams, roles, offices — with managers, titles and employee numbers. The same directory answers SCIM 2.0 at /scim/v2, signs people in over SAML at /saml/sso and fills OpenID Connect userinfo, so the person SCIM lists is the person who logs in. Base https://api.sondahub.com/v1/identity · OpenAPI https://api.sondahub.com/v1/identity/openapi.json · GraphQL https://api.sondahub.com/v1/identity/graphql · WS wss://api.sondahub.com/v1/identity/ws · SSE https://api.sondahub.com/v1/identity/events · Docs https://sondahub.com/apis/identity/ Live topics: directory (Someone joining, leaving, changing team, or being deactivated or reactivated. every ~6 s); logins (A sign-in: who, how (SAML, OIDC, password), from where, and whether it worked. every 2 s) ### identity/users — 300 records People. user_name is unique and is the login everywhere (SAML, OIDC password grant: password "probe"); email is user_name@orbit.example. Rules: POST and PATCH keep user_name and email unique (409 already_exists, naming the user who has it); display_name defaults to the two names and active to true. The same people sign in through SAML and OIDC and are provisioned over SCIM. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; user_name string required; given_name string required; family_name string required; display_name string; email string required; title string; department string; employee_number string; manager_id ref → users; phone string; locale string; timezone string; office string; active bool; external_id string; last_login_at datetime Relations (expand / nested route): manager → one users via manager_id; reports → many users via manager_id; memberships → many memberships via user_id Data file: https://api.sondahub.com/data/identity/users.json · Page: https://sondahub.com/apis/identity/users/ ### identity/groups — 40 records Departments, teams, roles and offices. member_count follows the memberships. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; display_name string required; slug string; kind enum(department|team|role|office|list); description text; external_id string; member_count int read-only Relations (expand / nested route): memberships → many memberships via group_id Data file: https://api.sondahub.com/data/identity/groups.json · Page: https://sondahub.com/apis/identity/groups/ ### identity/memberships — 1,457 records A person in a group. POST one to add someone (409 if they are in it already); DELETE it to take them out. Rules: POST refuses a second membership of the same user in the same group (409 already_member), defaults role to member and bumps the group’s member_count; DELETE lowers it. Fields: id int read-only; created_at datetime read-only; updated_at datetime read-only; user_id ref → users required; group_id ref → groups required; role enum(member|owner) Relations (expand / nested route): user → one users via user_id; group → one groups via group_id Data file: https://api.sondahub.com/data/identity/memberships.json · Page: https://sondahub.com/apis/identity/memberships/ ## MCP server https://api.sondahub.com/mcp — Streamable HTTP, stateless (no MCP session; GET answers 405), protocol versions 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05, no auth. JSON answers; text/event-stream only for the streaming tool. Write tools answer as a real server would and put the change in the HTTP answer's X-Sondahub-Session token (send it back to see it; calls in one JSON-RPC batch share it). Wrong arguments → a tool result with isError: true naming each problem. OAuth-protected twin: https://api.sondahub.com/mcp/secure — 401 with WWW-Authenticate resource_metadata=https://api.sondahub.com/.well-known/oauth-protected-resource/mcp/secure (RFC 9728); authorization server https://api.sondahub.com (RFC 8414 metadata at /.well-known/oauth-authorization-server, OIDC discovery too) with dynamic client registration at https://api.sondahub.com/v1/utils/oauth/register (RFC 7591; the client_id carries its signed registration), PKCE, resource indicators (RFC 8707: the token's aud must be https://api.sondahub.com/mcp/secure). Scopes mcp:read (reads) and mcp:write (write tools; else 403 insufficient_scope). Sign in as sonda/probe or any directory user_name/probe. Docs: https://sondahub.com/mcp-oauth-test-server/ Tools (26): - describe_api(api) — The collections of one sondahub API with their record counts, fields (types, required, read-only, allowed values) and relations. Start here to learn what list_records and the other data tools can ask for. - list_records(api, collection, filters?, q?, sort?, page?, limit?, fields?, expand?) — A page of records from any collection, with filters, search, sorting, field selection and embedded relations. Filters are an object whose keys are field names, optionally with a suffix: _ne, _gt, _gte, _lt, _lte, _like (contains, case-insensitive), _in (a list), _null (true/false); a dotted key reaches into a JSON field (address.country). Example: {"price_lt": 20, "in_stock": true, "category_id_in": [1, 6]}. - get_record(api, collection, id, expand?) — One record by id, optionally with relations embedded. - create_record(api, collection, record) — Create a record in any collection. Validated and answered exactly as the REST API answers a POST — ids, computed fields, related records — but simulated: nothing is stored. describe_api lists the fields. - update_record(api, collection, id, changes, replace?) — Change fields of a record (or replace it whole with replace: true). Validated and answered as the REST API answers a PATCH or PUT, including status rules such as a ticket’s allowed moves — simulated, nothing is stored. - delete_record(api, collection, id) — Delete a record — simulated: the answer is what would have been removed; the record is still there afterwards. - store_search_products(query?, category?, min_price?, max_price?, in_stock?, sort?, limit?) — Search the store’s active products by words, category, price and stock. - store_order_status(order_number) — Where an order is: status, dates, tracking, the customer and the lines, by order number (SH-100042). - bank_account_summary(account_id, transactions?) — An account with its holder, cards and latest transactions. - bank_transfer(from_account_id, to_account_id, amount, description?) — Move money between two accounts of the same currency. Checks both accounts and the funds, then answers with the transfer and both transactions. The balances move for whoever carries the session token. - bank_convert_currency(amount, from, to) — Convert an amount with the bank’s FX table, directly or across USD. - fleet_device_status(serial, readings?) — A device by serial: its site, latest readings and open alerts. - fleet_send_command(serial, action, params?) — Send a command to a device; an online device acknowledges it in the answer, an offline one queues it — simulated. - flights_search(origin, destination?, date?, include_cancelled?, limit?) — Flights between two airports (IATA codes), optionally on one local date. The seed’s flights span 2026-08-25 to 2026-09-08. - flights_book(flight_id, first_name, last_name, email?, cabin?) — Book a seat on a flight: refuses cancelled, departed and full flights, picks a free seat in the cabin, prices the fare and mints a record locator — simulated. - helpdesk_ticket(ticket_number) — A ticket by number (HD-10042) with its customer, assignee and whole message thread. - helpdesk_reply(ticket_number, body, as?, internal?) — Add a message to a ticket as the agent or the customer; a customer reply reopens a pending ticket — simulated. - social_profile(username, posts?) — A user by username with their counters and latest posts. - echo(message, repeat?) — Answers with the message you send, optionally repeated. - whoami() — On the OAuth-protected endpoint (/mcp/secure): the identity and scopes in your access token. On the open endpoint: says there is none. - add(a, b) — a + b, as text and as structured content checked by an output schema. - slow_operation(seconds?, steps?) — Takes its time, in steps. When the client sends a progressToken and accepts text/event-stream, each step arrives as a progress notification and a log message before the result. - fail(mode?) — Fails, to see how a client shows it: tool_error answers a result with isError: true (the model sees it), protocol_error answers a JSON-RPC error (the client sees it). - generate_image(width?, height?, color?) — A PNG of the size and colour you ask for, as image content. - mixed_content() — One result carrying every content type — text for the user and for the model (annotations), an image, a sound, a resource link and an embedded resource — to see how a client renders each. - large_text(kilobytes?) — A text result of the size you ask for, to see how a client copes with a big answer. Prompts: explore_api(api), investigate_order(order_number), fleet_health_report(site_code), support_reply(ticket_number, tone). Resources: sondahub://{api}/{collection} (first 25 rows), sondahub://{api}/{collection}/page/{page}, sondahub://{api}/{collection}/{id}; completion on template arguments. ## Industrial protocols (each over WebSocket; each connection gets its own plant, nothing is shared or stored) OPC UA: opc.wss://api.sondahub.com/opcua — the WebSocket mapping of OPC UA Part 6 (subprotocol opcua+uacp, one UA Connection Protocol chunk per WebSocket message; chunks up to 64 KB, messages up to 4 MB). SecurityPolicy None; anonymous or any user name and password (viewer: read-only, writes and calls BadUserAccessDenied; denied: BadIdentityTokenRejected). Namespaces: 0 http://opcfoundation.org/UA/, 1 urn:sondahub:opcua:server, 2 http://sondahub.com/UA/Plant/. Services: GetEndpoints, FindServers, CreateSession, ActivateSession, CloseSession, Cancel, Browse, BrowseNext, TranslateBrowsePathsToNodeIds, RegisterNodes, UnregisterNodes, Read, Write (Value, strict types), Call, HistoryRead (raw and at-time, seven days, continuation points), CreateSubscription, ModifySubscription, SetPublishingMode, Publish, Republish, TransferSubscriptions, DeleteSubscriptions, CreateMonitoredItems, ModifyMonitoredItems, SetMonitoringMode, SetTriggering, DeleteMonitoredItems. Events on the Server object (ns=0;i=2253) with EventFilter select clauses on BaseEventType fields. Docs: https://sondahub.com/opc-ua-test-server/ - ns=2;s=Line1 — Line 1 (Object): Bottling line 1: mix, pump, fill, convey. - ns=2;s=Line1.Tank101 — Tank101 (Object): Mixing tank, 5 m tall. - ns=2;s=Line1.Tank101.Level — Level (Variable, Double, read, history): Fills while the inlet valve is open, drains through the outlet. Write the valves and it follows them. - ns=2;s=Line1.Tank101.Temperature — Temperature (Variable, Double, read, history) - ns=2;s=Line1.Tank101.Pressure — Pressure (Variable, Double, read) - ns=2;s=Line1.Tank101.InletValve — InletValve (Variable, Boolean, read, write): Write true to open, false to close. Once you touch a valve, the tank is yours: the level follows the two valves from then on. - ns=2;s=Line1.Tank101.OutletValve — OutletValve (Variable, Boolean, read, write): Write true to open, false to close. Once you touch a valve, the tank is yours: the level follows the two valves from then on. - ns=2;s=Line1.Tank101.HighLevelAlarm — HighLevelAlarm (Variable, Boolean, read): Above 4.5 m. Raises an event on the Server object. - ns=2;s=Line1.Tank101.Agitator — Agitator (Object) - ns=2;s=Line1.Tank101.Agitator.Running — Running (Variable, Boolean, read) - ns=2;s=Line1.Tank101.Agitator.Speed — Speed (Variable, Double, read) - ns=2;s=Line1.Tank101.Agitator.SpeedSetpoint — SpeedSetpoint (Variable, Double, read, write): 0–300 rpm; outside that, BadOutOfRange. - ns=2;s=Line1.Tank101.Agitator.Start — Start (Method, (), call) - ns=2;s=Line1.Tank101.Agitator.Stop — Stop (Method, (), call) - ns=2;s=Line1.Pump101 — Pump101 (Object): Transfer pump, tank to filler. Runs about 70 % of every 15 minutes on its own. - ns=2;s=Line1.Pump101.Running — Running (Variable, Boolean, read) - ns=2;s=Line1.Pump101.Speed — Speed (Variable, Double, read, history): Ramps over six seconds after a start or a stop. - ns=2;s=Line1.Pump101.SpeedSetpoint — SpeedSetpoint (Variable, Double, read, write): 0–1800 rpm. Flow, current and vibration follow the speed. - ns=2;s=Line1.Pump101.Flow — Flow (Variable, Double, read, history) - ns=2;s=Line1.Pump101.MotorCurrent — MotorCurrent (Variable, Double, read) - ns=2;s=Line1.Pump101.Vibration — Vibration (Variable, Double, read): Spikes above 5 mm/s for a minute every hour while running — an event says so. - ns=2;s=Line1.Pump101.RunHours — RunHours (Variable, Double, read) - ns=2;s=Line1.Pump101.Starts — Starts (Variable, UInt32, read) - ns=2;s=Line1.Pump101.Start — Start (Method, (), call): Starts the pump and keeps it running: from now on the pump is yours, not the schedule’s. - ns=2;s=Line1.Pump101.Stop — Stop (Method, (), call) - ns=2;s=Line1.Pump101.SetSpeed — SetSpeed (Method, (Speed: Double) → Accepted: Boolean, call): Sets the speed setpoint, the way a method does it: arguments checked one by one. - ns=2;s=Line1.Filler — Filler (Object): Twelve-head filler. - ns=2;s=Line1.Filler.FillSetpoint — FillSetpoint (Variable, Double, read, write): 100–2000 mL. - ns=2;s=Line1.Filler.ActualFill — ActualFill (Variable, Double, read) - ns=2;s=Line1.Filler.Heads — Heads (Variable, Double[], read): What each of the twelve heads filled last, in mL. - ns=2;s=Line1.Filler.Recipe — Recipe (Variable, String, read, write) - ns=2;s=Line1.Filler.BottlesFilled — BottlesFilled (Variable, UInt32, read) - ns=2;s=Line1.Filler.Rejects — Rejects (Variable, UInt32, read) - ns=2;s=Line1.Conveyor — Conveyor (Object): Jams for 40 seconds every 20 minutes. - ns=2;s=Line1.Conveyor.State — State (Variable, UInt32, read, write): 0 Stopped, 1 Running, 2 Jammed, 3 Maintenance. Write 0, 1 or 3; a jam is not something you can ask for. - ns=2;s=Line1.Conveyor.Speed — Speed (Variable, Double, read) - ns=2;s=Line1.Conveyor.BottlesPerMinute — BottlesPerMinute (Variable, Double, read) - ns=2;s=Line1.Conveyor.JamDetected — JamDetected (Variable, Boolean, read) - ns=2;s=Line1.Conveyor.ResetCounters — ResetCounters (Method, (), call): Zeroes the filler’s BottlesFilled and Rejects. - ns=2;s=Utilities — Utilities (Object) - ns=2;s=Utilities.PowerMeter — PowerMeter (Object) - ns=2;s=Utilities.PowerMeter.ActivePower — ActivePower (Variable, Double, read, history) - ns=2;s=Utilities.PowerMeter.Energy — Energy (Variable, Double, read) - ns=2;s=Utilities.PowerMeter.PowerFactor — PowerFactor (Variable, Double, read) - ns=2;s=Utilities.PowerMeter.Frequency — Frequency (Variable, Double, read) - ns=2;s=Utilities.PowerMeter.Voltages — Voltages (Variable, Double[], read): L1–L2, L2–L3, L3–L1 in volts. - ns=2;s=Utilities.PowerMeter.Currents — Currents (Variable, Double[], read): L1, L2, L3 in amperes. - ns=2;s=Utilities.CompressedAir — CompressedAir (Object) - ns=2;s=Utilities.CompressedAir.Pressure — Pressure (Variable, Double, read) - ns=2;s=Utilities.CompressedAir.CompressorRunning — CompressorRunning (Variable, Boolean, read) - ns=2;s=Utilities.CompressedAir.DewPoint — DewPoint (Variable, Double, read) - ns=2;s=Simulation — Simulation (Object): Test variables: signals, every built-in type to read and write, arrays, methods. - ns=2;s=Simulation.Dynamic — Dynamic (Object) - ns=2;s=Simulation.Dynamic.Sinusoid — Sinusoid (Variable, Double, read, history): ±100, one cycle a minute. - ns=2;s=Simulation.Dynamic.Sawtooth — Sawtooth (Variable, Double, read, history): 0 to 100 every 30 seconds. - ns=2;s=Simulation.Dynamic.Triangle — Triangle (Variable, Double, read): 0 to 100 and back every 40 seconds. - ns=2;s=Simulation.Dynamic.Square — Square (Variable, Boolean, read): Flips every 10 seconds. - ns=2;s=Simulation.Dynamic.Random — Random (Variable, Double, read): A new value every second. - ns=2;s=Simulation.Dynamic.RandomInt32 — RandomInt32 (Variable, Int32, read) - ns=2;s=Simulation.Dynamic.Counter — Counter (Variable, UInt32, read): Seconds since 1970: one more every second. - ns=2;s=Simulation.Dynamic.StepUp — StepUp (Variable, Int32, read) - ns=2;s=Simulation.Dynamic.Timestamp — Timestamp (Variable, UtcTime, read) - ns=2;s=Simulation.Static — Static (Object): One writable variable per built-in type. What you write is yours for the connection. - ns=2;s=Simulation.Static.Boolean — Boolean (Variable, Boolean, read, write) - ns=2;s=Simulation.Static.SByte — SByte (Variable, SByte, read, write) - ns=2;s=Simulation.Static.Byte — Byte (Variable, Byte, read, write) - ns=2;s=Simulation.Static.Int16 — Int16 (Variable, Int16, read, write) - ns=2;s=Simulation.Static.UInt16 — UInt16 (Variable, UInt16, read, write) - ns=2;s=Simulation.Static.Int32 — Int32 (Variable, Int32, read, write) - ns=2;s=Simulation.Static.UInt32 — UInt32 (Variable, UInt32, read, write) - ns=2;s=Simulation.Static.Int64 — Int64 (Variable, Int64, read, write) - ns=2;s=Simulation.Static.UInt64 — UInt64 (Variable, UInt64, read, write) - ns=2;s=Simulation.Static.Float — Float (Variable, Float, read, write) - ns=2;s=Simulation.Static.Double — Double (Variable, Double, read, write) - ns=2;s=Simulation.Static.String — String (Variable, String, read, write) - ns=2;s=Simulation.Static.DateTime — DateTime (Variable, DateTime, read, write) - ns=2;s=Simulation.Static.Guid — Guid (Variable, Guid, read, write) - ns=2;s=Simulation.Static.ByteString — ByteString (Variable, ByteString, read, write) - ns=2;s=Simulation.Static.XmlElement — XmlElement (Variable, XmlElement, read, write) - ns=2;s=Simulation.Static.NodeId — NodeId (Variable, NodeId, read, write) - ns=2;s=Simulation.Static.StatusCode — StatusCode (Variable, StatusCode, read, write) - ns=2;s=Simulation.Static.QualifiedName — QualifiedName (Variable, QualifiedName, read, write) - ns=2;s=Simulation.Static.LocalizedText — LocalizedText (Variable, LocalizedText, read, write) - ns=2;s=Simulation.Arrays — Arrays (Object): Writable arrays, and a 2 × 3 matrix. - ns=2;s=Simulation.Arrays.BooleanArray — BooleanArray (Variable, Boolean[], read, write) - ns=2;s=Simulation.Arrays.ByteArray — ByteArray (Variable, Byte[], read, write) - ns=2;s=Simulation.Arrays.Int32Array — Int32Array (Variable, Int32[], read, write) - ns=2;s=Simulation.Arrays.UInt32Array — UInt32Array (Variable, UInt32[], read, write) - ns=2;s=Simulation.Arrays.DoubleArray — DoubleArray (Variable, Double[], read, write) - ns=2;s=Simulation.Arrays.StringArray — StringArray (Variable, String[], read, write) - ns=2;s=Simulation.Arrays.Matrix — Matrix (Variable, Int32[,], read, write) - ns=2;s=Simulation.Methods — Methods (Object): Methods to call: arguments checked one by one, failures on purpose, a slow one. - ns=2;s=Simulation.Methods.Add — Add (Method, (A: Double, B: Double) → Sum: Double, call): A + B, two Doubles. - ns=2;s=Simulation.Methods.Echo — Echo (Method, (Text: String) → Text: String, call) - ns=2;s=Simulation.Methods.Fail — Fail (Method, (), call): Always fails with BadInternalError, for testing how a client reports it. - ns=2;s=Simulation.Methods.Sleep — Sleep (Method, (Milliseconds: UInt32) → Slept: UInt32, call): Answers after the time you give: for testing timeouts and requests that overlap. Modbus TCP: wss://api.sondahub.com/modbus — Modbus TCP ADUs (MBAP header and PDU) as binary WebSocket messages, or JSON as text ({"unit":1,"function":3,"address":0,"count":10}; "values" for writes; {"hex":"…"} for a raw frame; "help"). Functions: 1 Read Coils, 2 Read Discrete Inputs, 3 Read Holding Registers, 4 Read Input Registers, 5 Write Single Coil, 6 Write Single Register, 15 Write Multiple Coils, 16 Write Multiple Registers, 17 Report Server ID, 22 Mask Write Register, 23 Read/Write Multiple Registers, 43 Read Device Identification. Docs: https://sondahub.com/modbus-tcp-simulator/ - unit 0: Broadcast: a write reaches units 1 to 4 and nobody answers, as the specification says. A read to unit 0 gets no answer either. - unit 9: Configured on the gateway, switched off in the field: after a second, exception 11 (gateway target device failed to respond). - unit 255: Unit 1, the way a device that ignores the unit id answers. - unit any other: Exception 10 (gateway path unavailable), at once. - unit 1: Lift station LS-01 (PLC) — Three pumps over a 2 m² wet well. In auto the PLC pumps down between the start and stop levels and alternates the lead pump; in manual you start and stop them. Unit 255 reaches it too. Functions 1, 2, 3, 4, 5, 6, 15, 16, 17, 22, 23, 43. - coils 0–2: Pump 1–3 run command (bit, rw) — In auto the PLC writes these itself on every scan; switch coil 3 off to drive the pumps by hand. - coils 3: Auto mode (bit, rw) — 1: the PLC starts the lead pump at the start level, a lag pump at the high alarm level, stops them at the stop level and alternates the lead. 0: manual. - coils 4: Alarm reset (bit, rw) — Write 1: latched alarms that are no longer true clear, and the coil drops back to 0. - coils 5: Inlet valve open (bit, rw) — Closed: nothing flows in. - coils 6: Outlet valve open (bit, rw) — Closed: running pumps deadhead — pressure up, flow and current down. - coils 7: Dosing pump enable (bit, rw) - coils 8–63: Free (bit, rw) — Plain memory for your own tests. - discrete 0–2: Pump 1–3 running (bit, r) — Feedback, not the command: a pump the dry-run protection stopped shows 0 here with its run coil still 1. - discrete 6: High level float (bit, r) — Level at or above 470 cm. - discrete 7: Low level float (bit, r) — Level at or below 30 cm. - discrete 8: Door open (bit, r) — The kiosk door opens for 45 seconds every 1,000 (and latches the intrusion alarm). - discrete 9: Mains power OK (bit, r) - input 0: Wet well level (uint16, cm, r) — 0–500. Rises with the inflow, falls while pumps run. - input 1: Inflow (uint16, L/s × 10, r) - input 2: Outflow (uint16, L/s × 10, r) — 45 L/s per running pump at full speed. - input 3–5: Pump 1–3 motor current (uint16, A × 10, r) - input 6: Discharge pressure (uint16, kPa, r) - input 7–9: Pump 1–3 starts (uint16, r) — Counts every start, wraps at 65,535. - input 10–11: Total pumped volume (uint32, m³, high word first, r) - input 12–13: Wet well level (float32, m, ABCD, r) — The level again, as an IEEE 754 float. - input 14–15: Discharge pressure (float32, bar, ABCD, r) - input 16: Water temperature (int16, °C × 10, r) - input 17: Ambient temperature (int16, °C × 10, r) — Goes below zero in the small hours: a signed register, two’s complement. - input 18–19: PLC uptime (uint32, s, r) - input 20: Alarm word (bits, r) — Latched until reset: bit 0 high level, 1 low level, 5 intrusion, 7 overflow. - input 21: Status word (bits, r) — Bit 0 auto, 1–3 pumps running, 4 inlet open, 5 outlet open, 6 dosing, 7 an alarm is active. - input 30–31: Test float, ABCD (float32, r) — 123.456, big-endian (0x42F6 0xE979). - input 32–33: Test float, CDAB (float32, r) — Words swapped — the order many PLCs use. - input 34–35: Test float, BADC (float32, r) — Bytes swapped inside each word. - input 36–37: Test float, DCBA (float32, r) — Little-endian. - input 38–39: Test int32 (int32, ABCD, r) — -123456. - input 40–43: Test float64 (float64, ABCDEFGH, r) — 123.456. - input 44–45: Test uint32 (uint32, ABCD, r) — 3000000000 — wrong if read as signed. - input 46–49: Test int64 (int64, ABCDEFGH, r) — -1234567890123. - input 50–59: Station name (ASCII, 2 per register, high byte first, r) — “LS-01 LIFT STATION”. - holding 0: Start level (uint16, cm, rw) — Default 320; 0–500, else exception 3. - holding 1: Stop level (uint16, cm, rw) — Default 80. - holding 2: High level alarm (uint16, cm, rw) — Default 450; a lag pump starts here. - holding 3: Low level alarm (uint16, cm, rw) — Default 40; every pump stops here, auto or manual, and stays stopped until the level is 20 cm above it (dry-run protection). - holding 4: Lead pump (uint16, 1–3, rw) — Alternates by itself after each pump-down. - holding 5: Pump speed (uint16, % × 10, rw) — Default 850 (85 %); 0–1000. Flow, current and pressure follow. - holding 6: Most pumps at once (uint16, 1–3, rw) — Default 2. - holding 7: Dosing rate (uint16, mL/min, rw) — 0–5000. - holding 8: Station number (uint16, rw) - holding 10–15: PLC clock (year, month, day, hour, minute, second (UTC), rw) — Write it and it keeps your time from then on. - holding 16–199: Free (uint16, rw) — Plain memory for your own tests (9 too). - unit 2: Power meter PM-02 — A three-phase meter on the main incomer: twenty float32 measurements, read with function 3 or 4, and a configuration block at 1000. Functions 3, 4, 6, 16, 17, 43. - input 0–1: Voltage L1–N (float32, V, ABCD, r) - input 2–3: Voltage L2–N (float32, V, ABCD, r) - input 4–5: Voltage L3–N (float32, V, ABCD, r) - input 6–7: Voltage L1–L2 (float32, V, ABCD, r) - input 8–9: Voltage L2–L3 (float32, V, ABCD, r) - input 10–11: Voltage L3–L1 (float32, V, ABCD, r) - input 12–13: Current L1 (float32, A, ABCD, r) - input 14–15: Current L2 (float32, A, ABCD, r) - input 16–17: Current L3 (float32, A, ABCD, r) - input 18–19: Current N (float32, A, ABCD, r) - input 20–21: Active power (float32, kW, ABCD, r) - input 22–23: Reactive power (float32, kvar, ABCD, r) - input 24–25: Apparent power (float32, kVA, ABCD, r) - input 26–27: Power factor (float32, ABCD, r) - input 28–29: Frequency (float32, Hz, ABCD, r) - input 30–31: Active energy import (float32, kWh, ABCD, r) — Climbs for as long as the hub runs. - input 32–33: Reactive energy (float32, kvarh, ABCD, r) - input 34–35: THD voltage (float32, %, ABCD, r) - input 36–37: THD current (float32, %, ABCD, r) - input 38–39: Maximum demand today (float32, kW, ABCD, r) - input 100–109: Serial number (ASCII, r) — “SH-PM-000231”. - input 110: Firmware (uint16, BCD-ish, r) — 0x0213: version 2.19. - holding 0–127: The same measurements (as above, r) — Function 3 reads the same map as function 4, as many meters allow; a write here is exception 2. - holding 1000: CT primary (uint16, A, rw) — Default 200; 5–9999. Set it wrong and every current, power and energy reading scales with it — as on a real meter. - holding 1001: VT ratio (uint16, rw) — Default 1; 1–1000. - holding 1002: Demand interval (uint16, min, rw) — Default 15; 1–60. - holding 1003: Wiring (uint16, rw) — 0 three-phase four-wire, 1 three-wire, 2 single-phase. - holding 1004–1009: Free (uint16, rw) - unit 3: Variable frequency drive VFD-03 — Pump 1’s drive: a control word, a speed reference and ramps that take the time you set — and an overcurrent trip if you ask for the impossible. Functions 3, 4, 6, 16, 17, 22, 43. - holding 0: Control word (bits, rw) — Bit 0 run, bit 1 reverse, bit 2 fault reset. Starts running. - holding 1: Speed reference (uint16, Hz × 100, rw) — Default 4500; above the maximum frequency is exception 3. - holding 2: Acceleration time (uint16, s × 10, rw) — From 0 to the maximum. Start from standstill with 1.0 s or less and the drive trips on overcurrent. - holding 3: Deceleration time (uint16, s × 10, rw) - holding 4: Maximum frequency (uint16, Hz × 100, rw) — Default 5000; 1000–6000. - holding 5–9: Free (uint16, rw) - input 0: Status word (bits, r) — Bit 0 ready, 1 running, 2 at speed, 3 fault, 4 reverse, 5 remote. - input 1: Output frequency (uint16, Hz × 100, r) — Ramps toward the reference at the times you set. - input 2: Motor current (uint16, A × 10, r) - input 3: Motor speed (uint16, rpm, r) - input 4: DC bus voltage (uint16, V, r) - input 5: Output power (uint16, kW × 10, r) - input 6: Heatsink temperature (uint16, °C, r) - input 7: Fault code (uint16, r) — 0 none, 1 overcurrent. Clear it with bit 2 of the control word. - input 8: Run hours (uint16, h, r) - unit 4: Room sensor on a radio link — A battery sensor behind a slow link: every answer takes 0.6 to 1.8 seconds, for testing timeouts and transactions that overlap. Functions 3, 4, 6, 16, 17, 43. - input 0: Temperature (int16, °C × 10, r) - input 1: Relative humidity (uint16, % × 10, r) - input 2: CO₂ (uint16, ppm, r) - input 3: Air pressure (uint16, hPa × 10, r) - input 4: Battery (uint16, %, r) - input 5: Radio signal (int16, dBm, r) — Negative: signed. - holding 0: Report interval (uint16, s, rw) — 10–3600. - holding 1–9: Free (uint16, rw) HART-IP: wss://api.sondahub.com/hart-ip — HART-IP messages (version, type, id, status, sequence, byte count, body) as binary WebSocket messages: Session Initiate (id 0) first, token-passing PDUs (id 3), Keep Alive (2), Session Close (1); burst publishes as Publish (type 2, id 3). Or JSON as text ({"command":3,"tag":"PT-101"}; "address" for a polling address, "long" for a unique address). Docs: https://sondahub.com/hart-ip-simulator/ - PT-101 (Pressure transmitter): polling 0, unique address 3a015a0101, PV Pressure (kPa), SV Sensor temperature (°C); range 0–1000 kPa - TT-102 (Temperature transmitter): polling 1, unique address 3a025a0102, PV Process temperature (°C), SV Terminal temperature (°C); range 0–200 °C - FT-103 (Coriolis flow meter): polling 2, unique address 3a035a0103, PV Mass flow (kg/h), SV Density (kg/m³), TV Temperature (°C), QV Mass total (kg); range 0–20000 kg/h - LT-104 (Radar level gauge): polling 3, unique address 3a045a0104, PV Level (m), SV Distance (m), TV Volume (m³), QV Echo quality (%); range 0–12 m - FV-105 (Valve positioner): polling 4, unique address 3a055a0105, PV Valve position (%), SV Setpoint (%), TV Supply pressure (bar); range 0–100 %; write protected - commands: 0 Read Unique Identifier; 1 Read Primary Variable; 2 Read Loop Current and Percent of Range; 3 Read Dynamic Variables and Loop Current; 6 Write Polling Address; 7 Read Loop Configuration; 8 Read Dynamic Variable Classifications; 9 Read Device Variables with Status; 11 Read Unique Identifier Associated With Tag; 12 Read Message; 13 Read Tag, Descriptor, Date; 14 Read Primary Variable Transducer Information; 15 Read Device Information; 16 Read Final Assembly Number; 17 Write Message; 18 Write Tag, Descriptor, Date; 19 Write Final Assembly Number; 20 Read Long Tag; 21 Read Unique Identifier Associated With Long Tag; 22 Write Long Tag; 33 Read Device Variables; 34 Write Primary Variable Damping Value; 35 Write Primary Variable Range Values; 38 Reset Configuration Changed Flag; 40 Enter/Exit Fixed Current Mode; 41 Perform Self Test; 42 Perform Device Reset; 44 Write Primary Variable Units; 48 Read Additional Device Status; 59 Write Number of Response Preambles; 103 Write Burst Period; 108 Write Burst Mode Command Number; 109 Burst Mode Control DDS: wss://api.sondahub.com/dds — a DDSI-RTPS 2.3 participant. DDS is UDP, so a DDS client reaches it through the bridge (node bridge.mjs dds [domain]), which binds the participant's ports on the client's computer (7410 discovery, 7411 data on domain 0, the next free pair after that; the SPDP group 239.255.0.1:7400 when it can) and carries each datagram over the WebSocket. Discovery: unicast peer 127.0.0.1 or multicast. Writers reliable, transient-local, keep last 10 per instance, XCDR1; readers best effort, volatile, XCDR1 and XCDR2; default partition; matching by topic and type name. Samples bigger than 1,344 bytes (the camera's ~57 KB frames) go as DATA_FRAG, repaired with NACK_FRAG; fragmented samples are read too. TCP: the bridge listens on TCP 5100 (the next free up to 5109, or the port after the domain) for Fast DDS's TCPv4 transport (RTCP framing, logical ports 7410/7411 on domain 0); a Fast DDS client uses a TCPv4 transport descriptor, useBuiltinTransports false and the initial peer tcpv4 127.0.0.1 physical port 5100. Security: node bridge.mjs dds --secure makes the hub a DDS Security 1.1 participant (builtin PKI-DH with ECDH-CEUM+P256 or DH+MODP-2048-256, Access-Permissions, AES-GCM-GMAC with AES-256-GCM); it authenticates only participants with an ECDSA P-256 certificate issued directly by the playground identity CA and permissions signed by the playground permissions CA. Governance (domains 0 to 230): no unauthenticated participants, join access control, discovery/liveliness/RTPS protection NONE, every topic read and write access control, data ENCRYPT, metadata NONE. Files at https://sondahub.com/industrial/dds-security/: identity_ca.pem, permissions_ca.pem, governance.p7s (governance.xml), client.pem, client_key.pem, client_permissions.p7s (client_permissions.xml, grant sondahub_client, every topic), and the CA keys identity_ca_key.pem and permissions_ca_key.pem to issue your own; the PKI is public, so this tests a client's security setup and protects nothing. Shared memory is not offered. Or JSON as text: {"subscribe":"*"} (every topic but rt/camera/image, which you name; octets in base64; add "cdr":true for payloads in hex), {"publish":"PlantSetpoints","sample":{"name":"PUMP-SPEED","value":1500}}, {"topics":true}. Types: https://sondahub.com/industrial/sondahub-dds.idl. Docs: https://sondahub.com/dds-simulator/ - rt/chatter (ROS 2 /chatter): std_msgs::msg::dds_::String_, the hub writes, 1 Hz — “Hello World: 1”, “Hello World: 2”… — what the ROS 2 demo talker says, so the demo listener hears it. - rt/robot/pose (ROS 2 /robot/pose): geometry_msgs::msg::dds_::PoseStamped_, the hub writes, 5 Hz — Where the robot is, in the frame map: metres from the middle of an 8 × 8 m room, heading as a quaternion about z. - rt/robot/scan (ROS 2 /robot/scan): sensor_msgs::msg::dds_::LaserScan_, the hub writes, 2 Hz — A 360° lidar, 180 rays two degrees apart from −π, ranging the walls, a pillar and a crate. No intensities. - rt/camera/image (ROS 2 /camera/image): sensor_msgs::msg::dds_::Image_, the hub writes, 1 Hz — What the robot’s camera sees, 160 × 120 rgb8 (57,600 bytes of pixels): too big for one datagram, so every sample travels in 43 fragments, and a reader that loses one asks for it again. - rt/robot/battery (ROS 2 /robot/battery): sensor_msgs::msg::dds_::BatteryState_, the hub writes, 1 Hz — A six-cell lithium-ion pack draining faster when the robot moves; at 15 % it charges where it stands, back to 95 %. - rt/cmd_vel (ROS 2 /cmd_vel): geometry_msgs::msg::dds_::Twist_, the hub reads, when written — Drives the robot: linear.x (−1 to 1 m/s) and angular.z (−2 to 2 rad/s). A command holds for 1.5 s; ten seconds after the last one the robot drives itself again. - PlantReadings: plant::Reading, the hub writes, 1 Hz × 6 — One instance per sensor: TANK-LEVEL, FLOW-IN, FLOW-OUT, PUMP-SPEED, MOTOR-TEMP, FILTER-DP. - PlantAlarms: plant::Alarm, the hub writes, on change — One instance per alarm — FILTER-DP, LEVEL-HIGH, MOTOR-HOT, SETPOINT — written when it raises or clears. The filter clogs every five minutes on its own. - PlantSetpoints: plant::Setpoint, the hub reads, when written — PUMP-SPEED (0 to 1800 rpm, 1200 to start with) and INLET-VALVE (0 to 100 %, 60 to start with). Anything else raises the SETPOINT alarm. Bridge for TCP-only tools and DDS: https://sondahub.com/industrial/bridge.mjs — node bridge.mjs opcua|modbus|hart opens opc.tcp://localhost:4840, localhost:5020 (Modbus TCP) or localhost:5094 (HART-IP) and carries each message over WebSocket; node bridge.mjs dds [domain] [tcp port] [--secure] binds a DDS participant's UDP ports and a TCP port for Fast DDS's TCPv4 transport and carries each datagram and frame; --secure turns on DDS Security. ## Utilities ### Inspect a request See exactly what arrived: method, path, query, headers and body, parsed. - ANY https://api.sondahub.com/v1/utils/echo — Answers with everything about the request: method, URL, query (repeated keys become arrays), headers, the body parsed as JSON, text, form fields or base64 for binary, and your address. - ANY https://api.sondahub.com/v1/utils/anything/{whatever} — The same as /echo under any path you like. - GET https://api.sondahub.com/v1/utils/get — Echo, but only GET is allowed; other methods answer 405 with an Allow header. - POST https://api.sondahub.com/v1/utils/post — Echo for POST only. Likewise /put, /patch, /delete. - GET https://api.sondahub.com/v1/utils/headers — Just the request headers. - GET https://api.sondahub.com/v1/utils/ip — Your address, and the country and city Cloudflare sees. - GET https://api.sondahub.com/v1/utils/user-agent — Just the User-Agent. - GET https://api.sondahub.com/v1/utils/time — The server clock in ISO, Unix seconds and milliseconds, RFC 2822. - GET https://api.sondahub.com/v1/utils/uuid — A fresh UUID v4. ### Status codes and timing Make the server answer the way you need to test the client. - ANY https://api.sondahub.com/v1/utils/status/{code} — Any status 100–599. A comma list picks one at random per request (/status/200,500,503). 3xx carry a Location, 401 a WWW-Authenticate, 429 and 503 a Retry-After. - GET https://api.sondahub.com/v1/utils/delay/{seconds} — Waits that long (decimals allowed, 10 s at most) before answering. - GET https://api.sondahub.com/v1/utils/slow-random?max=3000 — A random delay up to max milliseconds. - GET https://api.sondahub.com/v1/utils/flaky?rate=0.3&code=500 — Fails with that probability and status — for retries and checks. ### Redirects Chains and single hops, relative and absolute. - GET https://api.sondahub.com/v1/utils/redirect/{n} — n redirects (302, absolute Location) ending at /get. - GET https://api.sondahub.com/v1/utils/relative-redirect/{n} — The same with a relative Location. - GET https://api.sondahub.com/v1/utils/absolute-redirect/{n} — The same with an absolute Location. - GET https://api.sondahub.com/v1/utils/redirect-to?url=/v1/utils/get&status=307 — One redirect to a path on this host with the status you choose (301, 302, 303, 307, 308). Never to another host. ### Cookies Set, read and delete; a cookie jar has something to hold. - GET https://api.sondahub.com/v1/utils/cookies — The cookies the request carried. - GET https://api.sondahub.com/v1/utils/cookies/set?name=value — Sets each query parameter as a cookie (Path=/, a day) and redirects to /cookies. - GET https://api.sondahub.com/v1/utils/cookies/set/{name}/{value} — Sets one cookie from the path. - GET https://api.sondahub.com/v1/utils/cookies/delete?name — Expires the named cookies and redirects to /cookies. ### Bodies, encodings, streams Every shape a response can take. - GET https://api.sondahub.com/v1/utils/json — A sample JSON document with nesting, numbers, unicode and null. - GET https://api.sondahub.com/v1/utils/xml — A sample XML document. - GET https://api.sondahub.com/v1/utils/html — A sample HTML page. - GET https://api.sondahub.com/v1/utils/encoding/utf8 — UTF-8 text from several scripts, with an emoji and a tab. - GET https://api.sondahub.com/v1/utils/gzip — A JSON body compressed with gzip (Content-Encoding: gzip). /deflate likewise. - GET https://api.sondahub.com/v1/utils/bytes/{n} — n random bytes (1 MB at most); ?seed=x makes them repeatable. - GET https://api.sondahub.com/v1/utils/range/{n} — n bytes with Accept-Ranges; send Range: bytes=10-19 for a 206. - GET https://api.sondahub.com/v1/utils/big?rows=5000 — A large JSON array (up to 20,000 rows) to try a viewer on. - GET https://api.sondahub.com/v1/utils/stream/{n}?interval=100 — n lines of JSON (NDJSON), one every interval ms, chunked. - GET https://api.sondahub.com/v1/utils/stream-bytes/{n}?chunk=1024 — n random bytes in chunks. - GET https://api.sondahub.com/v1/utils/drip?numbytes=20&duration=3&delay=0&code=200 — Bytes dripped over the duration, after an optional delay. - GET https://api.sondahub.com/v1/utils/image/svg?text=hello&w=320&h=200&color=f1772c — An SVG with your text. /image/png draws a real PNG (w, h, color); /image picks by your Accept header. ### Tools Small helpers that are handy mid-test. - GET https://api.sondahub.com/v1/utils/base64/{value} — Decodes base64 (standard or URL-safe) to text. - POST https://api.sondahub.com/v1/utils/base64 — Encodes the body you send, standard and URL-safe. - GET https://api.sondahub.com/v1/utils/hash/{algo}?text=sonda — md5, sha1, sha256, sha384, sha512 or crc32 of ?text= — or POST the bytes. - GET https://api.sondahub.com/v1/utils/cache — ETag and Last-Modified; If-None-Match or If-Modified-Since earns a 304. - GET https://api.sondahub.com/v1/utils/cache/{seconds} — Cache-Control: max-age of your choosing. - GET https://api.sondahub.com/v1/utils/etag/{tag} — Your own ETag; If-None-Match gives 304, a wrong If-Match gives 412. - GET https://api.sondahub.com/v1/utils/response-headers?X-Powered-By=sondahub — Each query parameter comes back as a response header. ### Forms and uploads Multipart and urlencoded, parsed and described. - POST https://api.sondahub.com/v1/utils/forms/post — Fields and files, with each file’s size, type, SHA-256 and MD5 (1 MB in all). /upload is the same route. (multipart/form-data or application/x-www-form-urlencoded) ### Streams and sockets Server-Sent Events and WebSockets with nothing to set up. - GET https://api.sondahub.com/v1/utils/sse?count=10&interval=1000 — A clock over SSE: count ticks, one per interval, with ids, a second event name every fifth tick, and Last-Event-ID resumption. - WS wss://api.sondahub.com/v1/utils/ws — Echo: every frame you send comes straight back, text or binary. ### Webhooks Add X-Sondahub-Webhook: to any write and each record it creates, changes or deletes is POSTed there, signed (Standard Webhooks, Stripe or GitHub style; playground secret whsec_c29uZGFodWItcGxheWdyb3VuZC13ZWJob29rLWtleSE=). - GET https://api.sondahub.com/v1/utils/webhooks — How the signing works, per style, and the headers that steer delivery. - POST https://api.sondahub.com/v1/utils/webhooks/send — Send one sample event to a URL now, and see what was sent: body, signature headers, the signed string, and how your endpoint answered. ({"url", "style", "secret", "type", "data"}) - POST https://api.sondahub.com/v1/utils/webhooks/verify — Check a signature the way a receiver should: valid or not, why, and the signature that was expected. ({"style", "secret", "body", "headers"}) ### Authentication Every scheme, checked for real. User sonda / probe; API key sonda-probe-key; client sonda / probe-secret; AWS AKIASONDAHUB000001 / probe-secret (us-east-1, execute-api); JWT secret probe-secret. - GET https://api.sondahub.com/v1/utils/auth/basic — HTTP Basic with sonda / probe. /auth/basic/{user}/{pass} takes any pair you name. Wrong or missing answers 401 with WWW-Authenticate. - GET https://api.sondahub.com/v1/utils/auth/hidden-basic/{user}/{pass} — Basic, but a failure answers 404 as if the route did not exist. - GET https://api.sondahub.com/v1/utils/auth/bearer — Any non-empty bearer token passes. /auth/bearer/{token} wants exactly that token. - GET https://api.sondahub.com/v1/utils/auth/apikey — X-API-Key: sonda-probe-key (or ?api_key=, or Authorization: ApiKey …). /auth/apikey/{key} wants that key instead. - GET https://api.sondahub.com/v1/utils/auth/digest — HTTP Digest (RFC 7616) with sonda / probe: ?algorithm=MD5|MD5-sess|SHA-256|SHA-256-sess and ?qop=auth|auth-int choose the challenge; /auth/digest/{user}/{pass} takes any pair. A failed check says which part did not match. - ANY https://api.sondahub.com/v1/utils/auth/sigv4 — AWS Signature Version 4, verified: access key AKIASONDAHUB000001, secret probe-secret, region us-east-1, service execute-api. A mismatch answers 403 with the canonical request and string-to-sign the server built, to compare with yours. ### OAuth 2.0 and OpenID Connect A small real server: client sonda / probe-secret (or register your own), user sonda / probe or anyone in the Identity directory (user_name / probe). Access tokens are RS256 JWTs you can check against the JWKS; discovery at /.well-known/openid-configuration. - POST https://api.sondahub.com/v1/utils/oauth/token — grant_type=client_credentials | password | authorization_code | refresh_token. Client as HTTP Basic or client_id/client_secret in the form body. Scope openid adds an id_token; resource= (RFC 8707) becomes the token audience. (application/x-www-form-urlencoded) - GET https://api.sondahub.com/v1/utils/oauth/authorize — The consent screen for response_type=code (PKCE S256 or plain supported). Sonda opens it in the browser and receives the code on its 127.0.0.1 redirect. ?auto=1 skips the screen and allows. - GET https://api.sondahub.com/v1/utils/oauth/protected — Needs Authorization: Bearer . ?scope=write demands that scope (403 insufficient_scope otherwise). - GET https://api.sondahub.com/v1/utils/oauth/userinfo — The OIDC userinfo for the bearer token. - POST https://api.sondahub.com/v1/utils/oauth/introspect — token=… answers active and the claims. (application/x-www-form-urlencoded) - POST https://api.sondahub.com/v1/utils/oauth/revoke — Answers 200; the hub keeps no token state, so the token lives until it expires. - POST https://api.sondahub.com/v1/utils/oauth/register — Dynamic Client Registration (RFC 7591): POST client metadata as JSON, get a client_id (and a secret unless token_endpoint_auth_method is none). Nothing is stored: the client_id carries its own signed registration. ({"client_name", "redirect_uris", "grant_types", "token_endpoint_auth_method"}) - GET https://api.sondahub.com/v1/utils/oauth/register/{client_id} — Read a registration back (RFC 7592). - GET https://api.sondahub.com/.well-known/openid-configuration — Discovery document, with the playground client in it. - GET https://api.sondahub.com/.well-known/oauth-authorization-server — RFC 8414 authorization-server metadata (the same facts). - GET https://api.sondahub.com/.well-known/oauth-protected-resource/mcp/secure — RFC 9728 protected-resource metadata for the OAuth-protected MCP endpoint. - GET https://api.sondahub.com/.well-known/jwks.json — The RS256 public key. ### JWT Mint, decode, verify and use tokens. HS256 secret probe-secret; RS256 keys published (the private one too — it is a playground). - GET https://api.sondahub.com/v1/utils/jwt/issue?sub=alice&role=admin&alg=HS256&expires_in=3600 — A token with the query parameters as claims. POST {"alg","expires_in","claims":{…}} for anything richer. - POST https://api.sondahub.com/v1/utils/jwt/verify — {"token": …} (or ?token=, or a Bearer header): valid or not, why, and the claims. - GET https://api.sondahub.com/v1/utils/jwt/decode?token=… — Header and payload, nothing checked. - GET https://api.sondahub.com/v1/utils/jwt/protected — Needs a valid Bearer JWT signed with either key. Sign your own and it passes. - GET https://api.sondahub.com/v1/utils/jwt/keys — The HS256 secret and the RS256 private JWK. ## Playground credentials (public on purpose; they protect nothing) Basic/Digest user sonda / probe; API key sonda-probe-key; OAuth client sonda / probe-secret (or register one); directory users {user_name} / probe; SCIM token sonda-scim-token; webhook secret whsec_c29uZGFodWItcGxheWdyb3VuZC13ZWJob29rLWtleSE=; JWT HS256 secret probe-secret; AWS SigV4 AKIASONDAHUB000001 / probe-secret (us-east-1, execute-api); JWKS https://api.sondahub.com/.well-known/jwks.json; OIDC discovery https://api.sondahub.com/.well-known/openid-configuration. Built by LockFlare (https://lockflare.com) as the playground for LockFlare Sonda, an API client: https://lockflare.com/sonda