Skip to main content

Claude API Endpoints

Reference for the two Claude API endpoints the iPaaS.com Claude integration calls, the headers it sends and the limits that apply, for impact assessment, firewall review and troubleshooting.

Portal Info

The Claude API is managed in the Claude Console, where Console users whose roles allow it create API keys and review usage, spend and rate limits:

There is one Console for every Anthropic organization; it does not vary by region.

API Endpoints

The Claude integration uses the Claude API, a REST API that accepts and returns JSON. The Claude API has no free tier or self-serve trial (Anthropic: Pricing, read 2026-12-04) and no separate test address: a test subscription uses the same base URL as production, and every call to the Messages endpoint is billed to the Anthropic organization that owns the API key, by the tokens it uses.

Base URL:

https://api.anthropic.com

The base URL is the API Url subscription setting. When the setting is empty, the integration uses https://api.anthropic.com; a trailing slash is removed. The same address serves every region and every Anthropic organization.

Every endpoint below is shown with [Base URL] in place of the base URL above.

Every request carries these headers:

Header

Value

x-api-key

The API Key setting

anthropic-version

2023-06-01

Accept

application/json

Content-Type

application/json, on the Create a Message call only (the one request with a body)

Anthropic lists 2023-06-01 in its API version history, and states that for any given version it preserves the existing input and output parameters.

The integration waits up to 100 seconds for an answer. A call with no answer by then is abandoned, and the transfer is retried by iPaaS.com.

Table of Contents

  • Model Endpoints

  • Message Endpoints


Model Endpoints

List the Available Models (GET)

Lists the Claude models the API key can use. The integration makes this call when it connects to Claude, which is at the start of every transfer, to prove that the API key works and that the model named in the Claude Model setting is in the list. The call sends no record data and no prompt, so it uses no tokens. A successful check is remembered for 10 minutes for the same API Url, API Key and Claude Model, so most transfers skip it.

[Base URL]/v1/models?limit=1000

When Anthropic reports more models than fit on one page, the integration asks for the next page, up to 10 pages:

[Base URL]/v1/models?limit=1000&after_id={LastModelId}

Parameter

Description

limit

Number of models per page. Anthropic accepts 1 to 1,000; the integration always asks for 1,000.

after_id

Anthropic: "When provided, returns the page of results immediately after this object." The integration passes the last_id of the previous page while Anthropic answers has_more: true.

Anthropic's list contains active and deprecated models; a retired model is left out unless it is asked for, and the integration does not ask for it. A Claude Model setting that names a retired model, a misspelled id or a model the key's workspace cannot use therefore fails the check with CLAU-VALD-1003, and no Messages call is made.

Message Endpoints

Create a Message (POST)

Sends one record to Claude and receives Claude's structured answer. Used once per record on every FROM iPaaS.com transfer that passes the mapping collection's filter. The write-back TO iPaaS.com and the insight Message that follow use this same answer and make no further Messages call. Each call is billed.

[Base URL]/v1/messages

The request body carries:

Field

What the integration sends

model

The Claude Model setting, trimmed; claude-haiku-5-5 when the setting is empty.

max_tokens

The Output Limit setting; 2,048 when the setting is empty. Anthropic: "The maximum number of tokens to generate before stopping."

system

The integration's fixed instructions, followed by the Subscription Prompt setting when it has a value.

messages

One user message: the mapped Context (when there is one), the record as JSON with the fields mapped in the FROM iPaaS.com collection, the list of fields Claude may change, and the collection's Prompt last.

output_config.effort

The Effort setting (low, medium, high, xhigh or max); low when the setting is empty.

output_config.format

A JSON schema (type json_schema) that shapes Claude's answer: changes limited to the record's allowed fields, a list of custom fields, and a summary. The schema does not limit custom-field names; the integration's instructions tell Claude to write only the custom fields the Prompt names. When the record's ReturnTo is Message, the schema holds only the summary.

The integration does not send temperature, top_p, top_k, stream, stop_sequences, tools, service_tier, speed, inference_geo or metadata, so Anthropic's defaults apply to them.

What the integration does with the answer depends on Anthropic's stop_reason:

stop_reason

Result

end_turn

Claude's changes are applied and queued for the write-back, or the summary is posted as a Message, as the record's ReturnTo asks.

max_tokens

The answer was cut off at the Output Limit. Nothing is written back (CLAU-EXTN-1002).

refusal

Claude declined the request. Nothing is written back (CLAU-EXTN-1003).

model_context_window_exceeded

The record, Context and Prompt were too long for the model. Nothing is written back (CLAU-EXTN-1013).

The answer also reports the tokens used. The transfer's activity log records the model that answered and the total input tokens (uncached input plus cache writes and cache reads, which Anthropic adds together for the total) and output tokens; iPaaS.com keeps that log only for a transfer run in debug mode (the Debug action in Integration Monitoring & Diagnostics > Manual Sync), not for a transfer started automatically by an Outbound Data Flows event. The same values are available as the TO iPaaS.com result fields ClaudeModel, ClaudeInputTokens and ClaudeOutputTokens; the default mappings do not write them to the record, and a subscriber who wants them stored can map them to custom fields.

Rate and spend limits: Anthropic sets rate limits for each organization by usage tier, measured in requests per minute, input tokens per minute and output tokens per minute for each model, plus a monthly spend cap for the tier; an organization's owner can also set a lower spend limit for the organization or a workspace (Anthropic: Rate limits, read 2026-12-04). How the integration treats each answer:

  • A rate limit (HTTP 429 with a retry-after header): the transfer is held for the time Anthropic gives, then retried (CLAU-EXTN-1008).

  • The tier's monthly spend cap (HTTP 429 without retry-after, or with the error code enforced_spend_limit_reached): the transfer is held for one hour (CLAU-EXTN-1012).

  • The organization's monthly spend limit set by its owner (HTTP 400 "You have reached your specified API usage limits"): the transfer is held for one hour (CLAU-EXTN-1011).

  • A workspace spend limit (HTTP 400 "You have reached your specified workspace API usage limits"): the transfer is not held. The call fails with CLAU-EXTN-1001 and iPaaS.com retries the transfer like any other failed transfer; each retry is refused again until the limit is raised or access resumes. To have the integration hold transfers for an hour instead, set the spend limit on the organization rather than on the workspace.

  • Anthropic overloaded (HTTP 529): the transfer is held for Anthropic's retry-after time, or 30 seconds, then retried (CLAU-EXTN-1009).

  • An organization whose credit balance is too low (HTTP 400): the call is refused (CLAU-AUTZ-1002). A prepaid organization needs credits before any call succeeds.

Subscribers or their MiSP should validate how a spend limit is handled in a staging subscription before relying on it in production.

The subscription's iPaaS.com throttle settings and Concurrent Connections limit how many transfers run at once, and so how many Messages calls reach Anthropic at once. Every failed transfer is retried by iPaaS.com, and a retried call that reaches Claude is billed again.

Authorization Endpoint

The Claude API has no separate authorization or token endpoint. The integration authenticates every call by sending the API Key setting in the x-api-key header, which Anthropic accepts for a Developer API key. The API key is created on the Claude Console's API keys page.

Use an API key scoped to one workspace. The integration does not send Anthropic's anthropic-workspace-id header, and Anthropic states that every request made with a key scoped to the organization must name a workspace in that header, otherwise it answers HTTP 400 (Anthropic: Developer API keys, read 2026-12-04). Subscribers or their MiSP should validate a new key in a staging subscription before relying on it in production.

Related Documents

  • Claude Background

  • Claude Installation Instructions

  • Claude Connections and Settings

  • Claude Mapping Functions

  • Claude Error Messages

  • Claude Known Limitations

External References

Did this answer your question?