openapi: 3.0.1
info:
  title: Tomba
  description: |-
    Tomba API находит, проверяет и обогащает рабочие email-адреса, номера телефонов и данные о компаниях через REST.

    ## Начало работы

    Отправляйте каждый запрос с API-ключом и секретом в заголовках `X-Tomba-Key` и `X-Tomba-Secret`. Создайте их в [панели управления](https://app.tomba.io/api); см. [Аутентификация](https://docs.tomba.io/ru/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/ru/rate-limits), а стоимость каждого эндпоинта — в разделе [Кредиты и использование](https://docs.tomba.io/ru/usage-and-quotas).

    ## Ошибки

    Отсутствующие, некорректные или истёкшие учётные данные возвращают `400` с `errors.type`, равным `authentication_failed` или `api_key_expired`; учётные данные, которые не соответствуют ни одному аккаунту, возвращают `401`. Ветвите логику по `errors.type`, а не только по коду состояния. См. [Ошибки](https://docs.tomba.io/ru/error-handling).

    ## Тайм-ауты

    Установите тайм-аут клиента не менее 180 секунд. Поиски и проверки выполняются в реальном времени с обращением к удалённым почтовым серверам и сайтам, поэтому время ответа меняется. Для больших объёмов используйте [массовые задачи](https://docs.tomba.io/ru/bulks).

    ## MCP-сервер

    ИИ-ассистенты могут использовать те же данные через MCP-сервер по адресу `https://mcp.tomba.io/mcp`. См. [Удалённый MCP-сервер](https://docs.tomba.io/ru/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: Поиск email-адресов по домену, имени, статье или профилю LinkedIn и их обогащение
    x-displayName: Finder
  - name: Verifier
    description: Проверка того, может ли email-адрес получать почту
    x-displayName: Verifier
  - name: Enrichment
    description: Профили людей и компаний в формате, совместимом с Clearbit
    x-displayName: Enrichment
  - name: Phone
    description: Поиск и проверка номеров телефонов
    x-displayName: Телефон
  - name: Domain
    description: Похожие сайты, технологии и признак веб-почты или одноразового адреса для домена
    x-displayName: Домен
  - name: Email
    description: Веб-страницы, на которых был найден email-адрес
    x-displayName: Email
  - 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, поиск их email-адресов в 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: Эндпоинт Model Context Protocol для ИИ-ассистентов
    x-displayName: MCP Server
externalDocs:
  description: Для разработчиков — полная документация по API
  url: https://docs.tomba.io
security:
  - Tomba-Api-Key: []
    Tomba-Api-Secret: []
