All integrations
Get an API key
Anthropic
Claude messages, tool use and batch inference.
AI and models
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
Connection details
- Base URL
- https://api.anthropic.com/v1
- Pagination
- cursor
Common endpoints
| list models | GET /models |
| send messages | POST /messages |
| count tokens | POST /messages/count_tokens |
Worth knowing
- The key goes in `x-api-key`, not Authorization.
- The anthropic-version header is REQUIRED and requests 400 without it.
- max_tokens is required on every messages call.