openapi: 3.0.1
info:
  title: Tomba
  description: |-
    Tomba API 通过 REST 查找、验证和丰富工作邮箱地址、电话号码和公司数据。

    ## 入门

    发送每个请求时，请在 `X-Tomba-Key` 和 `X-Tomba-Secret` 请求头中附带您的 API 密钥和 Secret。两者都在[仪表板](https://app.tomba.io/api)中创建；请参阅[认证](https://docs.tomba.io/zh-CN/authentication)。

    ```sh
    curl 'https://api.tomba.io/v1/email-finder?domain=stripe.com&first_name=Jane&last_name=Doe' \
      -H "X-Tomba-Key: $TOMBA_API_KEY" \
      -H "X-Tomba-Secret: $TOMBA_SECRET_KEY"
    ```

    ## 基础 URL 和版本控制

    所有端点都由 `https://api.tomba.io/v1` 提供。向后兼容的变更会在不更改版本路径的情况下发布。

    ## 速率限制和积分

    限制按套餐和端点执行。有速率限制的端点会在每个响应中返回速率限制响应头，超出限制的请求会返回 `429 Too Many Requests` 和 `Retry-After` 响应头。有关限制和响应头，请参阅[速率限制](https://docs.tomba.io/zh-CN/rate-limits)；有关每个端点的费用，请参阅[积分和用量](https://docs.tomba.io/zh-CN/usage-and-quotas)。

    ## 错误

    缺失、格式错误或已过期的凭据会返回 `400`，其 `errors.type` 为 `authentication_failed` 或 `api_key_expired`；与任何账户都不匹配的凭据会返回 `401`。请根据 `errors.type` 进行分支处理，而不要只看状态码。请参阅[错误](https://docs.tomba.io/zh-CN/error-handling)。

    ## 超时

    请将客户端超时设置为至少 180 秒。搜索和验证会实时访问远程邮件服务器和网站，因此响应时间会有所不同。对于大批量数据，请使用[批量任务](https://docs.tomba.io/zh-CN/bulks)。

    ## MCP 服务器

    AI 助手可以通过位于 `https://mcp.tomba.io/mcp` 的 MCP 服务器使用相同的数据。请参阅[远程 MCP 服务器](https://docs.tomba.io/zh-CN/llm/remote-mcp/introduction)。
  termsOfService: https://tomba.io/legal/terms-of-service
  contact:
    name: Tomba technology web service LLC
    url: https://tomba.io
    email: info@tomba.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://api.tomba.io/v1
    description: 生产服务器
paths:
  /me:
    $ref: "paths/me.yaml"
  /reveal/search:
    $ref: "paths/reveal_search.yaml"
  /domain-search:
    $ref: "paths/domainsearch.yaml"
  /email-finder:
    $ref: "paths/emailfinder.yaml"
  /email-verifier:
    $ref: "paths/emailverifier.yaml"
  /phone-finder:
    $ref: "paths/phonefinder.yaml"
  /phone-validator:
    $ref: "paths/phonevalidator.yaml"
  /email-sources:
    $ref: "paths/emailsources.yaml"
  /domain-status:
    $ref: "paths/domainstatus.yaml"
  /email-count:
    $ref: "paths/emailcount.yaml"
  /domain-suggestions:
    $ref: "paths/domainsuggestions.yaml"
  /email-format:
    $ref: "paths/emailformat.yaml"
  /location:
    $ref: "paths/location.yaml"
  /similar:
    $ref: "paths/similar.yaml"
  /technology:
    $ref: "paths/technology.yaml"
  /author-finder:
    $ref: "paths/authorfinder.yaml"
  /linkedin:
    $ref: "paths/linkedin.yaml"
  /enrich:
    $ref: "paths/enrich.yaml"
  /companies/find:
    $ref: "paths/companies_find.yaml"
  /people/find:
    $ref: "paths/people_find.yaml"
  /combined/find:
    $ref: "paths/combined_find.yaml"
  /bulk/{type}:
    $ref: "paths/bulk_{type}.yaml"
  /bulk/{type}/{id}:
    $ref: "paths/bulk_{type}_{id}.yaml"
  /bulk/{type}/{id}/progress:
    $ref: "paths/bulk_{type}_{id}_progress.yaml"
  /bulk/{type}/{id}/download:
    $ref: "paths/bulk_{type}_{id}_download.yaml"
  /bulk/{type}/{id}/estimate:
    $ref: "paths/bulk_{type}_{id}_estimate.yaml"
  /bulk/{type}/{id}/history:
    $ref: "paths/bulk_{type}_{id}_history.yaml"
  /bulk/{type}/{id}/cancel:
    $ref: "paths/bulk_{type}_{id}_cancel.yaml"
  /bulk/{type}/{id}/retry:
    $ref: "paths/bulk_{type}_{id}_retry.yaml"
  /bulk/{type}/{id}/rename:
    $ref: "paths/bulk_{type}_{id}_rename.yaml"
  /bulk/{type}/{id}/archive:
    $ref: "paths/bulk_{type}_{id}_archive.yaml"
  /bulk/{type}/{id}/restore:
    $ref: "paths/bulk_{type}_{id}_restore.yaml"
  /bulk/{type}/{id}/delete:
    $ref: "paths/bulk_{type}_{id}_delete.yaml"
  /bulk/types:
    $ref: "paths/bulk_types.yaml"
  /bulk/stats:
    $ref: "paths/bulk_stats.yaml"
  /bulk/webhook-secret:
    $ref: "paths/bulk_webhook-secret.yaml"
  /bulk/webhook-secret/rotate:
    $ref: "paths/bulk_webhook-secret_rotate.yaml"
  /sla/{source}/{type}:
    $ref: "paths/sla_{source}_{type}.yaml"
  /sla/{source}/{type}/{id}:
    $ref: "paths/sla_{source}_{type}_{id}.yaml"
  /sla/{source}/{type}/{id}/progress:
    $ref: "paths/sla_{source}_{type}_{id}_progress.yaml"
  /sla/{source}/{type}/{id}/launch:
    $ref: "paths/sla_{source}_{type}_{id}_launch.yaml"
  /sla/{source}/{type}/{id}/download:
    $ref: "paths/sla_{source}_{type}_{id}_download.yaml"
  /leads:
    $ref: "paths/leads.yaml"
  /leads/{leadId}:
    $ref: "paths/leads_{leadId}.yaml"
  /leads/{email}/exist:
    $ref: "paths/leads_{email}_exist.yaml"
  /attributes:
    $ref: "paths/attributes.yaml"
  /attributes/{attributeId}:
    $ref: "paths/attributes_{attributeId}.yaml"
  /leads_lists:
    $ref: "paths/leads_lists.yaml"
  /leads_lists/{listId}:
    $ref: "paths/leads_lists_{listId}.yaml"
  /keys:
    $ref: "paths/keys.yaml"
  /keys/{keyId}:
    $ref: "paths/keys_{keyId}.yaml"
  /usage:
    $ref: "paths/usage.yaml"
  /logs:
    $ref: "paths/logs.yaml"
  /logs/{logId}:
    $ref: "paths/logs_{logId}.yaml"
  /rate-limits:
    $ref: "paths/ratelimits.yaml"
  /flag:
    $ref: "paths/flag.yaml"
  /mcp:
    $ref: "paths/mcp.yaml"
components:
  parameters:
    BulkIdParam:
      $ref: "components/parameters/BulkIdParam.yaml"
    DirectionParam:
      $ref: "components/parameters/DirectionParam.yaml"
    DownloadFileParam:
      $ref: "components/parameters/DownloadFileParam.yaml"
    ArchivedParam:
      $ref: "components/parameters/ArchivedParam.yaml"
    BulkStatusParam:
      $ref: "components/parameters/BulkStatusParam.yaml"
    BulkExpiredParam:
      $ref: "components/parameters/BulkExpiredParam.yaml"
    BulkNameQueryParam:
      $ref: "components/parameters/BulkNameQueryParam.yaml"
    BulkTypeParam:
      $ref: "components/parameters/BulkTypeParam.yaml"
    BulkTypeOrExportParam:
      $ref: "components/parameters/BulkTypeOrExportParam.yaml"
    LimitParam:
      $ref: "components/parameters/LimitParam.yaml"
    PageParam:
      $ref: "components/parameters/PageParam.yaml"
  schemas:
    RevealSearchRequest:
      $ref: "components/schemas/RevealSearchRequest.yaml"
    RevealFilters:
      $ref: "components/schemas/RevealFilters.yaml"
    SearchFilter:
      $ref: "components/schemas/SearchFilter.yaml"
    PremiumSearchFilter:
      $ref: "components/schemas/PremiumSearchFilter.yaml"
    RevealSearchResponse:
      $ref: "components/schemas/RevealSearchResponse.yaml"
    RevealMeta:
      $ref: "components/schemas/RevealMeta.yaml"
    RevealData:
      $ref: "components/schemas/RevealData.yaml"
    Company:
      $ref: "components/schemas/Company.yaml"
    Account:
      $ref: "components/schemas/Account.yaml"
    DomainSearch:
      $ref: "components/schemas/DomainSearch.yaml"
    EmailFinder:
      $ref: "components/schemas/EmailFinder.yaml"
    EmailSource:
      $ref: "components/schemas/EmailSource.yaml"
    FinderVerification:
      $ref: "components/schemas/FinderVerification.yaml"
    PhoneData:
      $ref: "components/schemas/PhoneData.yaml"
    EmailVerifier:
      $ref: "components/schemas/EmailVerifier.yaml"
    EnrichmentPersonAPI:
      $ref: "components/schemas/EnrichmentPersonAPI.yaml"
    EnrichmentCompanyAPI:
      $ref: "components/schemas/EnrichmentCompanyAPI.yaml"
    EnrichmentCombinedAPI:
      $ref: "components/schemas/EnrichmentCombinedAPI.yaml"
    EmailCount:
      $ref: "components/schemas/EmailCount.yaml"
    Location:
      $ref: "components/schemas/Location.yaml"
    EmailSources:
      $ref: "components/schemas/EmailSources.yaml"
    EmailFormat:
      $ref: "components/schemas/EmailFormat.yaml"
    DomainSimilar:
      $ref: "components/schemas/DomainSimilar.yaml"
    DomainTechnology:
      $ref: "components/schemas/DomainTechnology.yaml"
    PhoneFinder:
      $ref: "components/schemas/PhoneFinder.yaml"
    Lead:
      $ref: "components/schemas/Lead.yaml"
    LeadAttribute:
      $ref: "components/schemas/LeadAttribute.yaml"
    LeadsList:
      $ref: "components/schemas/LeadsList.yaml"
    APIKey:
      $ref: "components/schemas/APIKey.yaml"
    Usage:
      $ref: "components/schemas/Usage.yaml"
    Log:
      $ref: "components/schemas/Log.yaml"
    OperationSuccess:
      $ref: "components/schemas/OperationSuccess.yaml"
    APIErrorResponse:
      $ref: "components/schemas/APIErrorResponse.yaml"
    BulkCreate:
      $ref: "components/schemas/BulkCreate.yaml"
    BulkJob:
      $ref: "components/schemas/BulkJob.yaml"
    BulkConfig:
      $ref: "components/schemas/BulkConfig.yaml"
    BulkMetrics:
      $ref: "components/schemas/BulkMetrics.yaml"
    BulkBucket:
      $ref: "components/schemas/BulkBucket.yaml"
    BulkCredits:
      $ref: "components/schemas/BulkCredits.yaml"
    BulkProgress:
      $ref: "components/schemas/BulkProgress.yaml"
    BulkEstimate:
      $ref: "components/schemas/BulkEstimate.yaml"
    BulkEvent:
      $ref: "components/schemas/BulkEvent.yaml"
    BulkTypeInfo:
      $ref: "components/schemas/BulkTypeInfo.yaml"
    BulkStats:
      $ref: "components/schemas/BulkStats.yaml"
    BulkWebhookSecret:
      $ref: "components/schemas/BulkWebhookSecret.yaml"
    BulkActionResult:
      $ref: "components/schemas/BulkActionResult.yaml"
    BulkPutRename:
      $ref: "components/schemas/BulkPutRename.yaml"
    PaginationMeta:
      $ref: "components/schemas/PaginationMeta.yaml"
    APIError:
      $ref: "components/schemas/APIError.yaml"
    DomainSuggestionsResponse:
      $ref: "components/schemas/DomainSuggestionsResponse.yaml"
    DomainSuggestion:
      $ref: "components/schemas/DomainSuggestion.yaml"
    SuggestionsMeta:
      $ref: "components/schemas/SuggestionsMeta.yaml"
    LinkedinFinder:
      $ref: "components/schemas/LinkedinFinder.yaml"
    LinkedinFinderData:
      $ref: "components/schemas/LinkedinFinderData.yaml"
    LinkedinFinderSource:
      $ref: "components/schemas/LinkedinFinderSource.yaml"
    LinkedinFinderVerification:
      $ref: "components/schemas/LinkedinFinderVerification.yaml"
    AuthorFinder:
      $ref: "components/schemas/AuthorFinder.yaml"
    AuthorInfo:
      $ref: "components/schemas/AuthorInfo.yaml"
    FlagCreateRequest:
      $ref: "components/schemas/FlagCreateRequest.yaml"
    FlagItem:
      $ref: "components/schemas/FlagItem.yaml"
    FlagResponse:
      $ref: "components/schemas/FlagResponse.yaml"
    FlagListResponse:
      $ref: "components/schemas/FlagListResponse.yaml"
    RateLimits:
      $ref: "components/schemas/RateLimits.yaml"
    RouteLimits:
      $ref: "components/schemas/RouteLimits.yaml"
    PhoneValidator:
      $ref: "components/schemas/PhoneValidator.yaml"
    EnrichmentPersonData:
      $ref: "components/schemas/EnrichmentPersonData.yaml"
    EnrichmentCompanyData:
      $ref: "components/schemas/EnrichmentCompanyData.yaml"
  responses:
    BulkListResponse:
      $ref: "components/responses/BulkListResponse.yaml"
    BulkDetailResponse:
      $ref: "components/responses/BulkDetailResponse.yaml"
    BulkCreateResponse:
      $ref: "components/responses/BulkCreateResponse.yaml"
    BulkProgressResponse:
      $ref: "components/responses/BulkProgressResponse.yaml"
    BulkNotFoundError:
      $ref: "components/responses/BulkNotFoundError.yaml"
    BulkStateError:
      $ref: "components/responses/BulkStateError.yaml"
    BulkLimitError:
      $ref: "components/responses/BulkLimitError.yaml"
    SuccessResponse:
      $ref: "components/responses/SuccessResponse.yaml"
    ValidationError:
      $ref: "components/responses/ValidationError.yaml"
    NotFoundError:
      $ref: "components/responses/NotFoundError.yaml"
    RateLimitError:
      $ref: "components/responses/RateLimitError.yaml"
    BadRequestError:
      $ref: "components/responses/BadRequestError.yaml"
    UnauthorizedError:
      $ref: "components/responses/UnauthorizedError.yaml"
    PaymentRequiredError:
      $ref: "components/responses/PaymentRequiredError.yaml"
    BurstRateLimitError:
      $ref: "components/responses/BurstRateLimitError.yaml"
    ClaimedEmailError:
      $ref: "components/responses/ClaimedEmailError.yaml"
    ServerError:
      $ref: "components/responses/ServerError.yaml"
    ForbiddenError:
      $ref: "components/responses/ForbiddenError.yaml"
    ProxyError:
      $ref: "components/responses/ProxyError.yaml"
    ConflictError:
      $ref: "components/responses/ConflictError.yaml"
  securitySchemes:
    BearerAuth:
      $ref: "components/securitySchemes/BearerAuth.yaml"
    Tomba-Api-Key:
      $ref: "components/securitySchemes/Tomba-Api-Key.yaml"
    Tomba-Api-Secret:
      $ref: "components/securitySchemes/Tomba-Api-Secret.yaml"
tags:
  - name: Finder
    description: 按域名、姓名、文章或 LinkedIn 个人资料查找邮箱地址，并丰富其数据
    x-displayName: Finder
  - name: Verifier
    description: 检查邮箱地址能否接收邮件
    x-displayName: Verifier
  - name: Enrichment
    description: 兼容 Clearbit 格式的人员和公司资料
    x-displayName: Enrichment
  - name: Phone
    description: 查找和验证电话号码
    x-displayName: 电话
  - name: Domain
    description: 域名的相似网站、技术以及网页邮箱或一次性邮箱状态
    x-displayName: 域名
  - name: Email
    description: 找到邮箱地址的网页
    x-displayName: 邮箱
  - name: Domain Suggestions
    description: 根据公司名称查找其域名
    x-displayName: 域名建议
  - name: Reveal
    description: 按行业、规模、所在地等筛选条件搜索公司
    x-displayName: Reveal
  - name: Bulks
    description: 创建、启动、跟踪和下载批量任务。每个路由都在路径中包含批量类型
    x-displayName: Bulks
  - name: Scrape Campaigns
    description: 保存在 LinkedIn、Sales Navigator 或 Apollo 上采集的记录，让 Tomba 查找其邮箱，并下载结果
    x-displayName: 采集活动
  - name: Leads
    description: 存储和管理线索
    x-displayName: Leads
  - name: Lead Lists
    description: 将线索整理到列表中
    x-displayName: Lead Lists
  - name: Lead Attributes
    description: 定义自定义线索属性
    x-displayName: Lead Attributes
  - name: Account
    description: 账户详情、用量、请求日志和速率限制
    x-displayName: 账户
  - name: Keys
    description: 创建、轮换和删除 API 密钥
    x-displayName: 密钥
  - name: Flag
    description: 报告错误数据和硬退信
    x-displayName: 报告
  - name: MCP Server
    description: 面向 AI 助手的 Model Context Protocol 端点
    x-displayName: MCP Server
externalDocs:
  description: 开发者 - 完整 API 文档
  url: https://docs.tomba.io
security:
  - Tomba-Api-Key: []
    Tomba-Api-Secret: []
