# GTMAPIs Docs for LLMs GTMAPIs is high-volume GTM infrastructure for outbound teams. The available-now public API products are Email Validation and Premium Catch-All Recovery. Canonical public URLs: - Website: https://www.gtmapis.com - Dashboard: https://www.gtmapis.com/dashboard - Docs: https://gtmapis.mintlify.app - API base URL: https://api.gtmapis.com - Hosted MCP endpoint: https://www.gtmapis.com/api/mcp - OpenAPI spec: https://www.gtmapis.com/openapi.json - Full integration guide: https://www.gtmapis.com/llms-full.txt Authentication: - Send API keys in the `X-API-Key` header. - Example key format: `gtm_test_1234567890abcdef1234567890abcdef`. - API keys are generated in the dashboard and are shown only once. - Test and live prefixes identify intended usage, but both must be valid account keys and both follow the normal access, rate-limit, and credit policy unless product docs state otherwise. - For agent or contractor delegation, create a restricted key with only the scopes needed by that workflow. Core scopes include `credits:read`, `email:validate:single`, `email:validate:bulk`, `email:outcomes:write`, and `email:outcomes:read`. - Hosted MCP uses GTMAPIs-issued OAuth-style bearer tokens for `https://www.gtmapis.com/api/mcp`; do not send public API keys as hosted MCP bearer tokens. - Agent auth.md spec path: register at `/agent/identity` for a short-lived `identity_assertion` and exchange it for an access token; there is no refresh token on the spec path (re-present the assertion via the jwt-bearer grant). `X-API-Key` is still used for the public REST API. See https://www.gtmapis.com/AUTH.md. Response correlation: - Every public application response documented in OpenAPI includes an opaque `X-Request-ID` header. Browser integrations from allowed origins can read it through CORS. - Include the terminal response ID in support reports. If the final retry fails without an HTTP response, do not inherit an ID from an earlier attempt. - Request IDs are diagnostic metadata only. They never affect validation evidence, credits, suppression, or sending decisions. Available-now public API: - `POST https://api.gtmapis.com/v1/validate` validates one email address. - `POST https://api.gtmapis.com/v1/validate/bulk` validates up to 100 email addresses in one synchronous request. - `POST https://api.gtmapis.com/v1/validate/batch` creates an asynchronous validation job for larger email lists. - `POST https://api.gtmapis.com/v1/csv/prepare-upload` creates a signed CSV upload URL; a stable key plus `content_sha256` refreshes the original batch after capability expiry and returns `upload_state: started` without credentials if processing already began. - `POST https://api.gtmapis.com/v1/csv/start-processing` starts parsing and validation for a CSV uploaded through the signed URL. - `GET https://api.gtmapis.com/v1/csv/jobs` lists asynchronous validation jobs. - `GET https://api.gtmapis.com/v1/csv/jobs/{id}` returns validation job status, progress, summary counts, and download handoff metadata. - `GET https://api.gtmapis.com/v1/csv/jobs/{id}/download?mode=url` returns a signed results CSV download URL. - `POST https://api.gtmapis.com/v1/csv/jobs/{id}/recover-catchalls` runs opt-in Premium Catch-All Recovery for a validation job. - `GET https://api.gtmapis.com/v1/csv/jobs/{id}/recovery` returns Premium Catch-All Recovery results for a validation job. - `GET https://api.gtmapis.com/v1/credits` returns the current Credit Ledger balance for the API key account. - `POST https://api.gtmapis.com/v1/outcomes/email/import` appends DSN-aware delivery outcomes for zero credits and requires `email:outcomes:write`. - `GET https://api.gtmapis.com/v1/outcomes/email/report` returns privacy-safe aggregate validation calibration for zero credits and requires `email:outcomes:read`. - `GET https://api.gtmapis.com/v1/outcomes/email/connectors/emailbison` inspects the hashed write-only EmailBison outcome connector. - `POST https://api.gtmapis.com/v1/outcomes/email/connectors/emailbison` creates or rotates the connector and returns its secret URL once. - `DELETE https://api.gtmapis.com/v1/outcomes/email/connectors/emailbison` revokes the connector. - `GET https://api.gtmapis.com/.well-known/jwks.json` returns the public ES256 keys used to verify benchmark receipts and agent assertions. - Provider-attributed `delivered` outcomes may be reused for the same tenant for up to 30 days. Such validations return `validation_source=recent_delivery_evidence`, charge zero credits, and never override a hard-bounce suppression or enter the global cache. - `GET https://api.gtmapis.com/health` is the API health probe. - `GET https://api.gtmapis.com/ready` is the API readiness probe. - `GET https://api.gtmapis.com/live` is the API liveness probe. Future, gated, or dormant products: - Social Intelligence - Ad Intelligence - Company Intelligence - Email Finder - People Data - Prospecting Do not present those future products as generally available public APIs unless they are promoted in the public product catalog and docs navigation. Premium Catch-All Recovery is available as a separate opt-in, non-intrusive recovery workflow; do not describe it as normal `valid` result recovery. Canonical docs map: - Introduction: https://gtmapis.mintlify.app/introduction - Quickstart: https://gtmapis.mintlify.app/quickstart - Authentication: https://gtmapis.mintlify.app/authentication - API overview: https://gtmapis.mintlify.app/api-reference/overview - Validate single email: https://gtmapis.mintlify.app/api-reference/validate-single - Validate bulk emails: https://gtmapis.mintlify.app/api-reference/validate-bulk - Async validation jobs: https://gtmapis.mintlify.app/api-reference/validate-async - Credit balance: https://gtmapis.mintlify.app/api-reference/credits - Email outcome calibration: https://gtmapis.mintlify.app/api-reference/email-outcomes - CSV upload guide: https://gtmapis.mintlify.app/guides/csv-upload - Health checks: https://gtmapis.mintlify.app/api-reference/health-checks - Credit system: https://gtmapis.mintlify.app/concepts/credit-system - Validation result categories: https://gtmapis.mintlify.app/concepts/result-categories - B2B quality scoring: https://gtmapis.mintlify.app/concepts/b2b-quality-scoring - Validation pipeline: https://gtmapis.mintlify.app/concepts/validation-pipeline - API integration guide: https://gtmapis.mintlify.app/guides/api-integration - MCP and agent tools: https://gtmapis.mintlify.app/guides/mcp-agent-tools - Error handling: https://gtmapis.mintlify.app/guides/error-handling - Rate limits: https://gtmapis.mintlify.app/guides/rate-limits - Catch-all detection vs recovery: https://gtmapis.mintlify.app/concepts/catch-all-detection-vs-recovery - Catch-all recovery compared: https://gtmapis.mintlify.app/guides/catch-all-recovery-vs-competitors MCP and agent tools: - Hosted endpoint: `https://www.gtmapis.com/api/mcp`. - Hosted transport: MCP Streamable HTTP. - Hosted auth: OAuth-style PKCE flow with protected-resource metadata at `https://www.gtmapis.com/.well-known/oauth-protected-resource`, authorization server metadata at `https://www.gtmapis.com/.well-known/oauth-authorization-server`, and bearer tokens scoped to hosted MCP. - Hosted tools currently exposed: `gtmapis_docs`, `gtmapis_load_docs`, `gtmapis_get_credits`, `gtmapis_get_usage`, `gtmapis_validate_email`, and `gtmapis_create_api_key`. - Hosted `gtmapis_get_credits` and `gtmapis_get_usage` require `credits:read`; hosted `gtmapis_validate_email` requires `email:validate:single`; hosted `gtmapis_create_api_key` requires `keys:manage` and mints a key whose scopes are clamped to the calling token's scopes (never `keys:manage`). `gtmapis_docs` and `gtmapis_load_docs` need no scope. - Local package: `@gtmapis/mcp`. - Local transport: stdio MCP server. - Local environment variable: `GTMAPIS_API_KEY`; optional `GTMAPIS_BASE_URL` defaults to `https://api.gtmapis.com`. - Local `gtmapis_docs` returns canonical docs, public URLs, auth guidance, product availability, and integration rules. It does not require an API key. - Local `gtmapis_get_credits` calls `GET https://api.gtmapis.com/v1/credits` for the configured key account and should use a key with `credits:read`. - Local `gtmapis_validate_email` calls `POST https://api.gtmapis.com/v1/validate` and should use a key with `email:validate:single`. - Local `gtmapis_validate_bulk` calls `POST https://api.gtmapis.com/v1/validate/bulk` for up to 100 emails and should use a key with `email:validate:bulk`. - Local `gtmapis_create_validation_job` calls `POST https://api.gtmapis.com/v1/validate/batch` and should use a key with `email:validate:bulk`. - Local `gtmapis_list_validation_jobs` calls `GET https://api.gtmapis.com/v1/csv/jobs` and should use a key with `email:validate:bulk`. - Local `gtmapis_get_validation_job` calls `GET https://api.gtmapis.com/v1/csv/jobs/{id}` and should use a key with `email:validate:bulk`. - Local `gtmapis_get_validation_job_download` calls `GET https://api.gtmapis.com/v1/csv/jobs/{id}/download?mode=url` and should use a key with `email:validate:bulk`. - Async jobs reserve credits up front for unique submitted emails, then finalize charges and refund unused reserved credits when processing completes. Agents should poll job status and use signed download URL handoffs rather than pulling raw CSV through MCP. - Agent-facing tooling is Developer Experience proof for API-first infrastructure, not a replacement for outbound agency and GTM engineer positioning. Validation result contract: - Canonical statuses: `valid`, `valid_role_based`, `risky`, `invalid`, `unknown`. - `valid_role_based` is a first-class public status, not a hidden subtype of `valid`. - B2B quality values: `high`, `low`, `none`, `unknown`. - Important quality signals include `is_role_based`, `is_disposable`, `is_catchall`, `domain_typo_suspected`, `suggested_email`, and `b2b_outbound_quality`. - SMTP uncertainty such as greylisting, provider-blocked recipient verification, temporary failures, timeouts, or inconclusive policy responses is `unknown`, not chargeable `valid`. - Catch-all acceptance is `risky`, not a confirmed personal mailbox and not normal `valid` recovery. - Premium Catch-All Recovery adds confidence, reason, recommended action, and recovery credit fields for opt-in `risky` catch-all results; it does not prove mailbox existence deterministically. Credit policy: - Signup Credits are a one-time 10,000-credit grant for new users. - One High-Value Validation costs one credit. - A High-Value Validation is a valid personal email result that is not role-based, catch-all, invalid, risky, or unknown. - Role-based, catch-all, invalid, risky, and unknown results charge 0 credits. - Bulk and async summaries expose `credits_reserved`, `credits_consumed`, `credits_refunded`, and `credits_per_high_value_validation` so clients can measure cost per usable lead rather than raw lookup count. - Canonical paid plans are Starter, Growth, and Pro with 25,000, 75,000, and 200,000 monthly credits. Rate limits: - Public API examples should assume 10,000 requests per minute per API key and 1,000 requests per minute per IP unless endpoint-specific docs say otherwise. - Respect `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` response headers. - Use `/v1/validate/bulk` for multi-email workflows instead of fanning out one request per email. - Use `/v1/validate/batch` for long-running or larger validation lists that need polling, webhooks, and CSV result downloads. Integration rules: - Use `https://api.gtmapis.com` plus public paths such as `/v1/validate`. - Do not use website-internal Next.js paths such as `/api/v1/validate` in public examples. - Use `X-API-Key`, not bearer auth, for public validation requests. - Use bearer auth only for hosted MCP at `https://www.gtmapis.com/api/mcp`. - Store API keys in server-side environment variables. Do not expose them in browser code.