Anthropic
Overview
Anthropic provides developers with access to advanced AI models designed for natural language understanding and generation. By leveraging the capabilities of Anthropic's models, you can build applications that can engage in conversations, generate text, summarize information, and much more.
Setting up Anthropic
Create an access token
To get started with the Anthropic API, you will need to obtain an API key. To get an API key:
- Log in to the Console
- Navigate to the API Keys section within your Account Settings
- Click the Create Key button on the top right
- Give your key a descriptive name (e.g., “My_First_Claude_App”) and click Create Key
- Copy the generated API key and configure your integration's connection
Add integration
Once you have an access token, you're ready to set up your Superblocks integration.
- In the web app, navigate to the Integrations page
- Click on the Anthropic tile
- Name the integration
- Paste your credentials into the relevant fields
- Optionally, add more configurations to set credentials for different environments
- Click Create
Anthropic connected Now you can use Anthropic in any Application, Workflow, or Scheduled Job.
Use Anthropic in APIs
Once your Anthropic integration is created, you can start calling Anthropic actions in Superblocks APIs.
Anthropic actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.
Certain Anthropic actions support streaming. Learn more about building APIs in Superblocks that
stream data from REST APIs
.
Supported actions
Create a Message
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation. The Messages API can be used for either single queries or stateless multi-turn conversations.Generic HTTP Request
Every SaaS integration in Superblocks comes with a built in Generic HTTP Request Action. This is a powerful action you can use to call Anthropic API endpoints not in the Superblocks supported actions.
To use this action simply add the method, path, required query parameters, and body for the desired endpoint.
Learn more about REST requests in Superblocks in our Building REST requests guide.
Generic HTTP Requests use the authentication set up and base URL you've configured for your integration, making it an easy for your team to extend Superblocks Integrations to meet their needs.