Anthropic Connector
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:
- Navigate to API Keys and select create key
- Enter the API key value into the connection configuration of the integration.
| Input | Comments | Default |
|---|---|---|
| API Key | Your Anthropic API key. |
Actions
Chat
Start a new conversation with Claude.
| Input | Comments | Default |
|---|---|---|
| Connection | The Anthropic API connection to use. | |
| Model | The Claude model to use. | claude-sonnet-4-6 |
| Message | The message to send in the conversation. | |
| System Prompt | A system prompt to set the context and behavior for the conversation. | |
| Max Tokens | Maximum number of tokens to generate (default: 4096). | 4096 |
| Temperature | Randomness 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.
| Input | Comments | Default |
|---|---|---|
| Connection | The Anthropic API connection to use. | |
| Model | The Claude model to use. | claude-sonnet-4-6 |
| Message | The message to send in the conversation. |
Get Model
Get details of a specific Claude model.
| Input | Comments | Default |
|---|---|---|
| Connection | The Anthropic API connection to use. | |
| Model | The Claude model to use. | claude-sonnet-4-6 |
List Models
List all available Claude models.
| Input | Comments | Default |
|---|---|---|
| Connection | The Anthropic API connection to use. | |
| Fetch All | When true, automatically fetches all pages of results. The Limit, After ID, and Before ID inputs are ignored. | false |
| Pagination | Cursor and page-size controls for paging through results. | |
| Before ID | ID of the object to use as a cursor for pagination. Returns the page of results immediately before this object. | |
| After ID | ID of the object to use as a cursor for pagination. Returns the page of results immediately after this object. | |
| Limit | Number of items to return per page. Defaults to 20. Range: 1-1000. | 20 |
Raw Request
Send raw HTTP request to Anthropic.
| Input | Comments | Default |
|---|---|---|
| Connection | The Anthropic API connection to use. | |
| URL | Input 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 |
| Method | The HTTP method to use. | |
| Data | The HTTP body payload to send to the URL. | |
| Form Data | The Form Data to be sent as a multipart form upload. | |
| File Data | File Data to be sent as a multipart form upload. | |
| File Data File Names | File names to apply to the file data inputs. Keys must match the file data keys above. | |
| Query Parameter | A 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. | |
| Header | A list of headers to send with the request. | |
| Response Type | The type of data you expect in the response. You can request json, text, or binary data. | json |
| Timeout | The 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 Errors | If 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 Count | The maximum number of retries to attempt. Specify 0 for no retries. | 0 |
| Use Exponential Backoff | Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored. | false |