1,120 pages for message.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
typescript
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/typescript
…HROPIC_API_KEY"] // This is the default and can be omitted }); const message = await client.messages.create({ max_tokens: 1024, messages: [{ role: "user", content: "Hello, Claude" }], model: "c…
get-started
Claude Developer Platform · in the page
get-started
…itle="Make your first API call"> Send a `POST` request to the Messages API: ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/j…
home
Claude Developer Platform · in the page
home
…Python import anthropic client = anthropic.Anthropic() message = client.messages.create( model="claude-opus-5-5", max_tokens=1024, messages=[ {…
intro
Claude Developer Platform · in the page
intro
…with Claude, each suited to different use cases: | | Messages API | Claude Managed Agents | | ------…
access-transparency
Claude Developer Platform · in the page
manage-claude/access-transparency
…ansparency covers prompt and response content sent through the Claude Messages API or Claude Code sessions. The [API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-…
access-transparency-log
Claude Developer Platform · in the page
manage-claude/access-transparency-log
…pic_actor", "email_address": null }, "resource_details": { "type": "message", "id": "msg_01HXAMPLE12345678" }, "transparency_log_leaf_index": 17 } ``` becomes this canonical JSON. It has exactly…
admin-api-keys
Claude Developer Platform · in the page
manage-claude/admin-api-keys
…A call that exceeds the key's scopes returns `403 Forbidden` with a message listing the scopes the key has and the scopes the endpoint needs. ## Next steps <CardGroup cols={2}> <Card title="Admi…
analytics-api
Claude Developer Platform · in the page
manage-claude/analytics-api
…**User activity:** per-user daily metrics across chat (conversations, messages, projects, files, artifacts), Claude Code (sessions, commits, pull requests, lines of code, tool actions), Chat and Cowor…
api-and-data-retention
Claude Developer Platform · in the page
manage-claude/api-and-data-retention
…rganizations under the same account. ### What ZDR covers * **Claude Messages and Token Counting APIs:** ZDR applies to these endpoints for eligible features listed in the [feature eligibility table]…
app-attest
Claude Developer Platform · in the page
manage-claude/app-attest
…re scoped to your workspace, expire after 1 hour, and authorize only [Messages API](https://platform.claude.com/docs/en/api/messages/create) calls. They carry no end-user identity: App Attest identifi…
authentication
Claude Developer Platform · in the page
manage-claude/authentication
…sdks-libraries/overview) picks it up automatically. ```http POST /v1/messages Authorization: Bearer YOUR_API_KEY anthropic-version: 2023-06-01 content-type: application/json ``` The legacy `x-api-ke…
cmek
Claude Developer Platform · in the page
manage-claude/cmek
…product you use. ### Encrypted with CMEK key **Claude Platform** * Message content, files and attachments (both inline attachments sent with a request and Files API uploads), and MCP and tool confi…
cmek-coverage-claude-enterprise
Claude Developer Platform · in the page
manage-claude/cmek-coverage-claude-enterprise
…ations and the **Artifacts** tab. * Claude Code on the CLI, including message content. * Cowork in Claude Desktop. * Office agents. * Claude in Chrome. * Claude Science, which is in beta. * [Plugins A…
cmek-coverage-claude-platform
Claude Developer Platform · in the page
manage-claude/cmek-coverage-claude-platform
…stomer-managed encryption keys (CMEK). ## Encrypted with your key * Message content. * Files and attachments, whether sent inline with a request or uploaded with the Files API. * MCP and tool config…
cmek-key-lifecycle
Claude Developer Platform · in the page
manage-claude/cmek-key-lifecycle
…What disabling does, and what comes back While the key is disabled, Messages API requests in a workspace that uses it return [a 400 error with the code `cmek_key_disabled`](https://platform.claude.c…
cmek-troubleshooting
Claude Developer Platform · in the page
manage-claude/cmek-troubleshooting
…-troubleshooting description: Find the cause and fix for a CMEK error message, a failed verification, or an unexpected log entry. --- **Verify** in the Claude Console, **Add** on claude.ai, and the A…
Fetch the first page (newest activities first).
Claude Developer Platform · in the page
manage-claude/compliance-activity-feed
…`, `before_id` (returned as `first_id`, `last_id`) | | Chats and chat messages | Oldest first…
compliance-api-access
Claude Developer Platform · in the page
manage-claude/compliance-api-access
…| | `read:compliance_user_data` | Read user chats, messages, files, projects, session metadata and transcripts, organization users, user preferences, and group members…
compliance-errors
Claude Developer Platform · in the page
manage-claude/compliance-errors
…header, and a JSON body with an `error` object containing `type` and `message`. Include the `request-id` header value when you escalate to support. ```json { "error": { "type": "permission_erro…
compliance-faq
Claude Developer Platform · in the page
manage-claude/compliance-faq
…e { "error": { "type": "permission_error", "message": "Missing required scopes. Got: ['api:admin', 'read:compliance_activities'] Needed one of: ['read:compliance_user_data',…
before_id is the first_id from a previous response
Claude Developer Platform · in the page
manage-claude/compliance-integration-patterns
…d is shorter than 6 years. The local session endpoints stop returning messages older than your organization's current period as soon as the setting changes, and lengthening the period later does not r…
compliance-org-data
Claude Developer Platform · in the page
manage-claude/compliance-org-data
…/docs/en/manage-claude/compliance-activity-feed), [Retrieve chats and messages](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-chats-and-messages), and the [remote…
compliance-sessions
Claude Developer Platform · in the page
manage-claude/compliance-sessions
…. These sessions are excluded from list results, and the retrieve and messages endpoints return 404 for them. Anthropic recommends the Compliance API for retrieving session content. The following tab…
data-residency
Claude Developer Platform · in the page
manage-claude/data-residency
…el inference runs for a specific API request. Add it to any `POST /v1/messages` call. | Value | Description |…
inference-hooks
Claude Developer Platform · in the page
manage-claude/inference-hooks
…`deny`, the request is rejected and the user sees a blocked-by-policy message assembled from two parts: the per-request reason your AI security server supplied in the verdict's `deny_reason` field, fo…
inference-hooks-configuration
Claude Developer Platform · in the page
manage-claude/inference-hooks-configuration
…added` and `rbac_role_permission_removed`). ## Custom blocked prompt message Under **Custom blocked prompt message**, set custom text of up to 500 characters that is appended to the error an end use…
inference-hooks-endpoint
Claude Developer Platform · in the page
manage-claude/inference-hooks-endpoint
…| | `messages` | array | The conversation transcript up to the point of inference. See [Content blocks](https://platform.cla…
opentelemetry
Claude Developer Platform · in the page
manage-claude/opentelemetry
…laude.com/docs/en/manage-claude/opentelemetry description: Trace your Messages API requests, tool uses, and Managed Agents sessions with OpenTelemetry spans from the Claude SDK and the Claude API. fea…
api
Claude Developer Platform · in the page
manage-claude/opentelemetry/api
…estination in the Claude Console to send OpenTelemetry traces of your Messages API requests and Managed Agents sessions to your observability platform. featureMetadata: topic: title: OpenTelemet…
sdk
Claude Developer Platform · in the page
manage-claude/opentelemetry/sdk
…Microsoft Foundry: beta rows: - label: Works with value: Messages API, Claude Managed Agents --- With OpenTelemetry, the Claude SDK can emit a span for each request that it sends and eac…
organization-webhooks
Claude Developer Platform · in the page
manage-claude/organization-webhooks
…endpoint-fields), or a create request lists no event types. The error message says what's wrong. * Your organization has no default workspace. * Organization webhooks aren't available for your organiz…
plugins-api
Claude Developer Platform · in the page
manage-claude/plugins-api
…"name": "release-notes", "warnings": [ { "message": "plugin.json has unrecognized top-level keys: owners", "error_code": "marketplace_sync_plugin_unrecognized_key…
rate-limits-api
Claude Developer Platform · in the page
manage-claude/rate-limits-api
…int returns the rate limits applied at the organization level for the Messages API and its supporting resources. Limits for other products, such as [Claude Managed Agents](https://platform.claude.com/…
First request
Claude Developer Platform · in the page
manage-claude/usage-cost-api
…sh cURL curl "https://api.anthropic.com/v1/organizations/usage_report/messages?\ starting_at=2025-01-08T00:00:00Z&\ ending_at=2025-01-15T00:00:00Z&\ bucket_width=1d" \ -H "anthropic-version: 2023-06…
user-profiles
Claude Developer Platform · in the page
manage-claude/user-profiles
…id`). <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-user-profile-id: $P…
aws
Claude Developer Platform · in the page
manage-claude/wif-providers/aws
…PIC_WORKSPACE_ID" } JSON ) curl https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: applicati…
Create the app registration that represents the Claude API audience.
Claude Developer Platform · in the page
manage-claude/wif-providers/azure
…exchange fails with the opaque `401` `authentication_error` response (message `Authentication failed`). The **Connect workload** wizard's **Microsoft Entra** tile creates the issuer with `max_jwt_life…
gcp
Claude Developer Platform · in the page
manage-claude/wif-providers/gcp
…SE") # Call the Claude API curl -sS https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: applicati…
github-actions
Claude Developer Platform · in the page
manage-claude/wif-providers/github-actions
…PIC_WORKSPACE_ID" } JSON ) curl https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: applicati…
kubernetes
Claude Developer Platform · in the page
manage-claude/wif-providers/kubernetes
…PIC_WORKSPACE_ID" } JSON ) curl https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: applicati…
okta
Claude Developer Platform · in the page
manage-claude/wif-providers/okta
…) # 3. Call the Claude API. curl https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: applicati…
Replace NODE_UID with the node's UID:
Claude Developer Platform · in the page
manage-claude/wif-providers/spiffe
…" } JSON ) curl https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-typ…
wif-reference
Claude Developer Platform · in the page
manage-claude/wif-reference
…All non-administrative Claude API endpoints in the rule's workspace: [Messages](https://platform.claude.com/docs/en/api/messages) (including streaming and token counting), [Models](https://platform.cl…
workload-identity-federation
Claude Developer Platform · in the page
manage-claude/workload-identity-federation
…Authorization: Bearer header. curl -sS https://api.anthropic.com/v1/messages \ -H "authorization: Bearer $ACCESS_TOKEN" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: applicati…
workspaces
Claude Developer Platform · in the page
manage-claude/workspaces
…API](https://platform.claude.com/docs/en/build-with-claude/files) * **Message Batches** created through the [Batch API](https://platform.claude.com/docs/en/build-with-claude/batch-processing) * **Skil…
agent-setup
Claude Developer Platform · in the page
managed-agents/agent-setup
…gent's behavior and persona. The system prompt is distinct from [user messages](https://platform.claude.com/docs/en/managed-agents/reference#event-types), which should describe the work to be done.…
budgets
Claude Developer Platform · in the page
managed-agents/budgets
…`user.interrupt` Any event that would start new work, such as `user.message`, is rejected with a 400 error naming this list. Settled results are recorded without triggering a new model request; the…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…outcome` event. The agent starts work immediately. No additional user message event is required. <CodeGroup> ```bash cURL # Create a session curl -fsSL https://api.anthropic.com/v1/sessions \…
event-deltas
Claude Developer Platform · in the page
managed-agents/event-deltas
…e.com/docs/en/managed-agents/events-and-streaming) as buffered `agent.message` events. Each one is emitted only after the model request that produced it completes. Event deltas let you render that tex…
events-and-streaming
Claude Developer Platform · in the page
managed-agents/events-and-streaming
…ser.*` events start a session and steer it as it progresses. [`system.message`](https://platform.claude.com/docs/en/managed-agents/events-and-streaming#send-system-messages) events append system-level…