> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/ai-ml/anthropic-claude.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Anthropic (Claude)

Anthropic builds the Claude family of AI models. Send messages to Claude, count tokens, run message batches and manage uploaded files.

![Anthropic (Claude) logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-6488aaae0a10d9c1ac5932ac888aa4d8c0d5826d%2Fanthropic-claude.png?alt=media)

|                    |                                                                                          |
| ------------------ | ---------------------------------------------------------------------------------------- |
| **Category**       | [AI and ML](https://docs.fastn.ai/connectors/catalog/ai-ml.md)                           |
| **Website**        | [anthropic.com](https://anthropic.com)                                                   |
| **Authentication** | API key                                                                                  |
| **Slug**           | `anthropicClaude`                                                                        |
| **On fastn.ai**    | [Embed Anthropic Claude in your product](https://fastn.ai/integrations/anthropic-claude) |

## Setup

Your customers enter their API key for Anthropic (Claude) when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Anthropic (Claude) from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Anthropic (Claude)**.
2. Select **Connect** on the Anthropic (Claude) card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Anthropic (Claude)'s actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Cancel Message Batch</td><td><code>cancelMessageBatch</code></td><td>Cancel a Message Batch that is in progress. Requests already in progress may still complete.</td></tr><tr><td>Count Tokens</td><td><code>countTokens</code></td><td>Count the number of input tokens a Messages API request would use, without creating the message.</td></tr><tr><td>Create Message</td><td><code>createMessage</code></td><td>Send a structured list of input messages and Claude generates the next message. The primary chat/completion endpoint.</td></tr><tr><td>Create Message Batch</td><td><code>createMessageBatch</code></td><td>Send a batch of Message creation requests for asynchronous processing at 50% cost.</td></tr><tr><td>Delete File</td><td><code>deleteFile</code></td><td>Delete a file by id. Beta endpoint.</td></tr><tr><td>Delete Message Batch</td><td><code>deleteMessageBatch</code></td><td>Delete a Message Batch. Can only delete batches that have finished processing.</td></tr><tr><td>Download File</td><td><code>downloadFile</code></td><td>Download the contents of a file (only files created by tools like code execution are downloadable). Beta endpoint.</td></tr><tr><td>Get File Metadata</td><td><code>getFileMetadata</code></td><td>Get metadata for a file by id. Beta endpoint.</td></tr><tr><td>Get Message Batch</td><td><code>getMessageBatch</code></td><td>Retrieve the status and metadata of a Message Batch.</td></tr><tr><td>Get Message Batch Results</td><td><code>getMessageBatchResults</code></td><td>Stream the results of a Message Batch as a.jsonl file (one result per line), available once processing has ended.</td></tr></tbody></table>

<details>

<summary>View 5 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Model</td><td><code>getModel</code></td><td>Get details of a specific model by id.</td></tr><tr><td>List Files</td><td><code>listFiles</code></td><td>List files within a Workspace, most recently uploaded first. Beta endpoint.</td></tr><tr><td>List Message Batches</td><td><code>listMessageBatches</code></td><td>List all Message Batches within a Workspace, most recently created first.</td></tr><tr><td>List Models</td><td><code>listModels</code></td><td>List available models, most recently released first.</td></tr><tr><td>Upload File</td><td><code>uploadFile</code></td><td>Upload a file for use in Messages API requests (referenced later by file_id). Beta endpoint. (multipart/form-data).</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/ai-ml/anthropic-claude.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
