← 返回
数据分析 Key 中文

Foxreach Cold Outrach

Manage FoxReach cold email outreach — leads, campaigns, sequences, templates, email accounts, inbox, and analytics. Use when the user asks to create leads, m...
管理 FoxReach 冷邮件推广,包括潜在客户、营销活动、序列、模板、邮箱账户、收件箱及分析数据。当用户请求创建潜在客户或进行相关操作时使用。
concaption
数据分析 clawhub v1.0.0 1 版本 99916.2 Key: 需要
★ 0
Stars
📥 1,193
下载
💾 19
安装
1
版本
#latest

概述

FoxReach API Management Skill

You are managing the FoxReach cold email outreach platform through its Python SDK and CLI. This skill covers all API operations for leads, campaigns, sequences, templates, email accounts, inbox, and analytics.

Setup & Authentication

The Python SDK is at integrations/sdk-python/ and the CLI is at integrations/cli/. Both use API key authentication with keys prefixed otr_.

Check if the SDK is available:

python -c "from foxreach import FoxReach; print('SDK ready')"

If not installed, install it:

cd integrations/sdk-python && pip install -e .

Authentication — Always get the API key from the user or environment before making calls. Never hardcode keys. Use environment variable injection:

FOXREACH_API_KEY=otr_... python script.py

Or use the CLI config:

cd integrations/cli && PYTHONPATH=. python -m foxreach_cli.main config set-key --key otr_...

How to Execute Operations

Write inline Python scripts using the SDK. Always follow this pattern:

import json
from foxreach import FoxReach

client = FoxReach(api_key="otr_USER_KEY_HERE")

# ... perform operation ...

client.close()

For quick operations, use one-liners:

python -c "
from foxreach import FoxReach
client = FoxReach(api_key='otr_...')
result = client.leads.list(page_size=10)
for lead in result:
    print(f'{lead.id}  {lead.email}  {lead.status}')
print(f'Total: {result.meta.total}')
client.close()
"

Resource Reference

For complete API details, see api-reference.md.

For usage examples of every operation, see examples.md.


Quick Reference — Available Operations

Leads

ActionMethodNotes
-----------------------
Listclient.leads.list(page=1, page_size=50, search=..., status=..., tags=...)Paginated, filterable
Getclient.leads.get(lead_id)Returns single Lead
Createclient.leads.create(LeadCreate(email=..., first_name=..., ...))Deduplicates by email
Updateclient.leads.update(lead_id, LeadUpdate(company=..., ...))Partial update
Deleteclient.leads.delete(lead_id)Soft-delete

Campaigns

ActionMethodNotes
-----------------------
Listclient.campaigns.list(status=...)Filter by draft/active/paused/completed
Getclient.campaigns.get(campaign_id)Includes stats
Createclient.campaigns.create(CampaignCreate(name=..., ...))Creates in draft
Updateclient.campaigns.update(campaign_id, CampaignUpdate(...))Can't edit if active
Deleteclient.campaigns.delete(campaign_id)Must be draft
Startclient.campaigns.start(campaign_id)Transitions to active
Pauseclient.campaigns.pause(campaign_id)Pauses sending
Add Leadsclient.campaigns.add_leads(campaign_id, [lead_ids])Bulk add
Add Accountsclient.campaigns.add_accounts(campaign_id, [account_ids])Assign senders

Sequences (nested under campaigns)

ActionMethodNotes
-----------------------
Listclient.campaigns.sequences.list(campaign_id)All steps
Createclient.campaigns.sequences.create(campaign_id, SequenceCreate(body=..., ...))Add step
Updateclient.campaigns.sequences.update(campaign_id, seq_id, SequenceUpdate(...))Edit step
Deleteclient.campaigns.sequences.delete(campaign_id, seq_id)Remove step

Templates

ActionMethodNotes
-----------------------
Listclient.templates.list()Paginated
Getclient.templates.get(template_id)Single template
Createclient.templates.create(TemplateCreate(name=..., body=...))New template
Updateclient.templates.update(template_id, TemplateUpdate(...))Partial update
Deleteclient.templates.delete(template_id)Remove

Email Accounts

ActionMethodNotes
-----------------------
Listclient.email_accounts.list()Paginated
Getclient.email_accounts.get(account_id)With health metrics
Deleteclient.email_accounts.delete(account_id)Remove

Inbox

ActionMethodNotes
-----------------------
List Threadsclient.inbox.list_threads(category=..., is_read=..., ...)Filterable
Getclient.inbox.get(reply_id)Full thread
Updateclient.inbox.update(reply_id, ThreadUpdate(is_read=..., ...))Mark read/starred

Analytics

ActionMethodNotes
-----------------------
Overviewclient.analytics.overview()Dashboard KPIs
Campaignclient.analytics.campaign(campaign_id)Metrics + daily stats

Pagination

List endpoints return PaginatedResponse objects:

result = client.leads.list(page=1, page_size=50, search="acme")

# Access data
for lead in result:
    print(lead.email)

# Check pagination info
print(f"Page {result.meta.page}/{result.meta.total_pages}, {result.meta.total} total")

# Get next page
if result.has_next_page():
    next_result = result.next_page()

# Auto-paginate through ALL results
for lead in client.leads.list().auto_paging_iter():
    print(lead.email)

Error Handling

Always wrap API calls in try/except:

from foxreach import FoxReach, NotFoundError, RateLimitError, AuthenticationError, FoxReachError

try:
    lead = client.leads.get("cld_nonexistent")
except NotFoundError:
    print("Lead not found")
except AuthenticationError:
    print("Invalid API key")
except RateLimitError as e:
    print(f"Rate limited. Retry after {e.retry_after}s")
except FoxReachError as e:
    print(f"API error: {e}")

Template Variables & Personalization

Email bodies support variable substitution using {{variable}} syntax:

  • {{firstName}}, {{lastName}}, {{email}}
  • {{company}}, {{title}}, {{phone}}
  • {{website}}, {{linkedinUrl}}
  • Custom fields: {{customFieldName}}

Spintax is also supported: {Hi|Hey|Hello} {{firstName}}


Common Workflows

1. Full Campaign Setup

When the user wants to set up a complete campaign, follow these steps in order:

  1. Create the campaign with campaigns.create()
  2. Add sequence steps with campaigns.sequences.create() for each email in the chain
  3. Add leads with campaigns.add_leads()
  4. Assign email accounts with campaigns.add_accounts()
  5. Start the campaign with campaigns.start()

2. Check Campaign Performance

  1. Get campaign analytics with analytics.campaign(id)
  2. Show sent, delivered, bounced, replied, opened stats
  3. Show reply rate and bounce rate
  4. If daily_stats are available, summarize trends

3. Manage Inbox

  1. List unread threads with inbox.list_threads(is_read=False)
  2. Categorize replies by updating with inbox.update(id, ThreadUpdate(category="interested"))
  3. Common categories: interested, not_interested, out_of_office, wrong_person, unsubscribe

4. Bulk Lead Import

For adding multiple leads, create them one by one (the API deduplicates by email):

leads_data = [
    {"email": "a@example.com", "first_name": "Alice", "company": "Acme"},
    {"email": "b@example.com", "first_name": "Bob", "company": "Beta"},
]
created = []
for data in leads_data:
    lead = client.leads.create(LeadCreate(**data))
    created.append(lead)
    print(f"Created: {lead.id} - {lead.email}")

Important Notes

  • Base URL: https://api.foxreach.io/api/v1
  • Rate limit: 100 requests per minute. The SDK auto-retries on 429.
  • ID prefixes: Leads cld_, Campaigns cmp_, Replies rpl_, Templates tpl_
  • Timezone: All datetimes in UTC ISO 8601 format.
  • Sending days: Array of integers, 1=Monday through 7=Sunday.
  • Sending hours: 0-23 range, in the campaign's timezone.
  • Campaign status flow: draft → active → paused → active → completed
  • Soft deletes: Leads are soft-deleted and can reappear on re-import.
  • Always confirm with the user before destructive operations (delete, start campaign).
  • When listing data, default to showing a formatted summary, not raw JSON.
  • When creating resources, confirm the details with the user before executing.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 08:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,266
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 166 📥 60,261
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,874