Skip to main content

Anthropic Connector

Anthropic Anthropic is an artificial intelligence safety company that develops and provides Claude, a family of large language models. This component allows sending chat messages to Claude, counting tokens, and managing available models.

API Documentation​

This component was built using the Anthropic Messages API.

Connections​

Anthropic API​

Connection to Anthropic's Claude API

Setup Steps​

To generate an API key:

  1. Navigate to API Keys and select create key
  2. Enter the API key value into the connection configuration of the integration.
InputCommentsDefault
API KeyYour Anthropic API key.

Actions​

Chat​

Start a new conversation with Claude.

InputCommentsDefault
ConnectionThe Anthropic API connection to use.
ModelThe Claude model to use.claude-sonnet-4-6
MessageThe message to send in the conversation.
System PromptA system prompt to set the context and behavior for the conversation.
Max TokensMaximum number of tokens to generate (default: 4096).4096
TemperatureRandomness of the output (0-1, default: 1). Note: temperature is not supported on Claude Opus 4.7+ models and will return a 400 error if set to a non-default value.1

Count Tokens​

Count the number of tokens in a message or conversation.

InputCommentsDefault
ConnectionThe Anthropic API connection to use.
ModelThe Claude model to use.claude-sonnet-4-6
MessageThe message to send in the conversation.

Get Model​

Get details of a specific Claude model.

InputCommentsDefault
ConnectionThe Anthropic API connection to use.
ModelThe Claude model to use.claude-sonnet-4-6

List Models​

List all available Claude models.

InputCommentsDefault
ConnectionThe Anthropic API connection to use.
Fetch AllWhen true, automatically fetches all pages of results. The Limit, After ID, and Before ID inputs are ignored.false
PaginationCursor and page-size controls for paging through results.
Before IDID of the object to use as a cursor for pagination. Returns the page of results immediately before this object.
After IDID of the object to use as a cursor for pagination. Returns the page of results immediately after this object.
LimitNumber of items to return per page. Defaults to 20. Range: 1-1000.20

Raw Request​

Send raw HTTP request to Anthropic.

InputCommentsDefault
ConnectionThe Anthropic API connection to use.
URLInput the path only (/models), The base URL is already included (https://api.anthropic.com/v1). For example, to connect to https://api.anthropic.com/v1/models, only /models is entered in this field./models
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false