Claude
Query Anthropic's Claude via Wire, on your own account, with web search and citations
POST
https://api.anakin.io/v1/wire/taskRun a prompt against Claude (Haiku or Sonnet) with web search and citations. Claude runs on your own connected account (auth_mode: "required") — connect it once, then pass its credential_id. Run it with the ca_send_message action on POST /v1/wire/task.
Catalog: claude-ai · action_id: ca_send_message · Credits: 3 / call · Auth: required
Request Body
{
"action_id": "ca_send_message",
"credential_id": "11111111-2222-3333-4444-555555555555",
"params": { "prompt": "best CRM for small teams", "model": "sonnet", "web_search": true }
}| Parameter | Type | Description |
|---|---|---|
action_id required | string | Set to ca_send_message |
credential_id required | string (UUID) | Your connected Claude account — from GET /v1/wire/identities |
params.prompt required | string | The message to send to Claude |
params.model | string | haiku (fastest) or sonnet (balanced). Default haiku |
params.conversation_id | string | Continue an existing conversation by its id |
params.incognito | boolean | Temporary chat, not saved to your Claude history. Default false |
params.web_search | boolean | Allow Claude to use web search for live results. Default true |
params.sse_only | boolean | Return only SSE-derived output (skip the post-stream GET). Default false |
params.country | string | 2-letter ISO egress region. Default us |
Code Examples
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"action_id": "ca_send_message",
"credential_id": "11111111-2222-3333-4444-555555555555",
"params": { "prompt": "best CRM for small teams", "model": "sonnet", "web_search": true }
}'import requests
res = requests.post(
'https://api.anakin.io/v1/wire/task',
headers={'X-API-Key': 'your_api_key'},
json={
'action_id': 'ca_send_message',
'credential_id': '11111111-2222-3333-4444-555555555555',
'params': {'prompt': 'best CRM for small teams', 'model': 'sonnet', 'web_search': True},
},
)
job_id = res.json()['job_id']const res = await fetch('https://api.anakin.io/v1/wire/task', {
method: 'POST',
headers: { 'X-API-Key': 'your_api_key', 'Content-Type': 'application/json' },
body: JSON.stringify({
action_id: 'ca_send_message',
credential_id: '11111111-2222-3333-4444-555555555555',
params: { prompt: 'best CRM for small teams', model: 'sonnet', web_search: true },
}),
});
const { job_id } = await res.json();Response
202 Accepted{ "status": "processing", "job_id": "…", "poll_url": "/v1/wire/jobs/…" }Poll GET /v1/wire/jobs/{id} until status: "completed":
{
"status": "completed",
"credits_used": 3,
"data": {
"status": "ok",
"data": {
"conversation_id": "…", "message_uuid": "…", "model": "claude-…",
"text": "…", "content": [], "chat_messages": [],
"citations": [
{ "title": "…", "url": "https://…", "start_index": 120, "end_index": 168,
"origin_tool_name": "web_search", "site": "…", "site_domain": "…" }
],
"thinking_summaries": [], "tool_results": [], "tool_calls": [],
"searched": true, "is_temporary": false, "raw_sse": "…", "created_at": "…"
},
"meta": { "action_id": "ca_send_message", "catalog_slug": "claude-ai", "envelope_version": "v1" }
}
}| Field | Type | Description |
|---|---|---|
data.data.text | string | The answer text |
data.data.citations | array | { title, url, start_index, end_index, origin_tool_name, site, site_domain } — *_index mark where in text each applies |
data.data.conversation_id | string | Reuse to continue the thread |
data.data.model | string | The Claude model used |
data.data.searched | boolean | Whether web search ran |
Auth required — omitting
credential_idreturns401 AUTH_REQUIRED. Models: Haiku (default) and Sonnet; no Opus. Setincognito: truefor one-off chats. Billed only on success (Claude is retried internally before failing).