Skip to main content
Technical Preview

Overview

A client-mode connector for a curated slice of the Anthropic Claude API focused on IIoT / edge ops text into Claude: Default BASE_ADDRESS is https://api.anthropic.com (no trailing slash). Topics use ai/anthropic/<object>/<verb>. See the base guide: REST API Connectors.
Auth: x-api-key: &lt;Anthropic API key&gt; and anthropic-version: 2023-06-01 on every request. Prefer Hub secrets (GET SECRET "ANTHROPIC_API_KEY") mapped into MQTT api_token. Never commit real sk-ant-... keys.
Factory live smoke is blocked until an Anthropic API key is supplied. Point secrets / MQTT JSON at your project before production use.

Basic Syntax

Full deployable file: AnthropicRestApi.lot in the factory package (no ADD METADATA).

Topics

Configuration

  1. Set BASE_ADDRESS to https://api.anthropic.com.
  2. Store an Anthropic API key in Hub secrets (ANTHROPIC_API_KEY); map into MQTT api_token.
  3. Always send anthropic-version: 2023-06-01 (already on every event in the template).
  4. For shift-log summarization / tool use: publish to ai/anthropic/messages/post with a Messages body (model, max_tokens, messages, optional tools).
  5. For nightly batches: publish to ai/anthropic/messages/batches/post with a requests array of {custom_id, params}.
  6. Use GetModels as a cheap auth smoke before production workloads.

References

Last modified on October 21, 2026