Validate input locally before any network round-trip — same checks the server runs, available offline.
Every input-bearing method accepts dry_run=True. It validates your input and
returns the exact request that would be sent — without touching the
network:
from minerva import Minerva, MinervaValidationErrormc = Minerva()# Returns the validated request model, no HTTP call.req = mc.api.enrich(records, match_condition_fields=["linkedin_url"], dry_run=True)print(req.model_dump()) # exact wire payload# Invalid input fails fast — before any HTTP call.try: mc.api.enrich([], dry_run=True) # 0 records → must be ≥ 1except MinervaValidationError as e: print("caught before any API call:", e)
Great for checking a batch is well-formed (record limits, allowed
match_condition_fields, record shape) before spending a call.
What gets validated locally
The local validation enforces the same constraints the server does:
Record counts — enrich and resolve cap at 500 records per call
Required fields — record_id on every record, etc.
Field types — strings where strings expected, lists where lists expected
Allowed values — match_condition_fields capped at 3, only allowed values
What it doesn’t check (server-only):
Billing eligibility (whether your plan covers this endpoint)
Whether matches will actually be found
Per-row business rules
Use dry_run for shape; trust the server for substance.
The request models directly
Every method has an underlying pydantic request model — you can construct +
validate it yourself if you want:
from minerva import EnrichRequestreq = EnrichRequest.model_validate({ "records": [{"record_id": "1", "linkedin_url": "..."}], "match_condition_fields": ["linkedin_url"],})# req is a typed model; req.model_dump() is the JSON wire payload.
Useful when you want to drive the validation from your own dict-based
pipeline, generate a JSON Schema, or pre-validate before queueing the call.
All input-bearing methods take dry_run
Method
Returns when dry_run=True
mc.api.enrich(...)
EnrichRequest
mc.api.resolve(...)
ResolveRequest
mc.api.get_li_contact_info(...)
LiContactInfoRequest
mc.api.validate_emails(...)
ValidateEmailsRequest
mc.api.infer_record_country(...)
InferCountryRequest
mc.api.call(...) does not take dry_run — there’s nothing for the SDK to
validate (the SDK doesn’t know the schema of the path you’re calling).
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Minerva Documentation","colors":{"primary":"#5B84E7","light":"#8EA8F0","dark":"#2E5BCF"},"logo":{"light":"https://mintcdn.com/minerva-a2a15a3a/4LFBmther9gqOLci/logo/Logo+Wordmark.svg?fit=max\u0026auto=format\u0026n=4LFBmther9gqOLci\u0026q=85\u0026s=80dfff22f85e3503c13e452578128b42","dark":"https://mintcdn.com/minerva-a2a15a3a/4LFBmther9gqOLci/logo/Logo+Wordmark_White.svg?fit=max\u0026auto=format\u0026n=4LFBmther9gqOLci\u0026q=85\u0026s=a312b4352c94561aaf43d34d331bb324"},"favicon":"https://mintcdn.com/minerva-a2a15a3a/taSOw2M7XeR05kge/favicon.svg?fit=max\u0026auto=format\u0026n=taSOw2M7XeR05kge\u0026q=85\u0026s=a062b886b18b17632a5788847a537418","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.minerva.io"}},"fonts":{"heading":{"family":"ES Schwarzweiss","weight":700,"source":"fonts/ESSchwarzweiss-Variable.woff2","format":"woff2"},"body":{"family":"ES Schwarzweiss","weight":400,"source":"fonts/ESSchwarzweiss-Variable.woff2","format":"woff2"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"minerva-a2a15a3a","hasAudioNarration":false,"actualSubdomain":"minerva-a2a15a3a","customDomains":["docs.minerva.io"],"gitSource":{"type":"github","owner":"minervadata-hq","repo":"md-core","deployBranch":"prod","contentDirectory":"docs/api_sdk/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"}},"buildId":"6aecd8a42ce0e78217a380cc","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"API Reference","count":29},{"language":"default","tag":"SDK","count":24},{"language":"default","tag":"Person Search","count":11},{"language":"default","tag":"Power features","count":11},{"language":"default","tag":"Endpoints","count":7},{"language":"default","tag":"Core Endpoints","count":6},{"language":"default","tag":"Segments","count":5},{"language":"default","tag":"Getting started","count":5},{"language":"default","tag":"Async Person Search","count":4},{"language":"default","tag":"MCP","count":4}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"sdk/guides/validation-dry-run","slug":"/sdk/guides/validation-dry-run","pageMetadata":{"title":"Validation \u0026 dry_run","description":"Validate input locally before any network round-trip — same checks the server runs, available offline.","href":"/sdk/guides/validation-dry-run"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Validate input locally before any network round-trip — same checks the server runs, available offline.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Every input-bearing method accepts `,_jsx(_components.code,{children:`dry_run=True`}),`. It validates your input and\nreturns the exact request that `,_jsx(_components.em,{children:`would`}),` be sent — `,_jsx(_components.strong,{children:`without touching the\nnetwork`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` minerva `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Minerva, MinervaValidationError`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mc `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Minerva()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Returns the validated request model, no HTTP call.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`req `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mc.api.enrich(records, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`match_condition_fields`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`dry_run`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(req.model_dump()) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# exact wire payload`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Invalid input fails fast — before any HTTP call.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mc.api.enrich([], `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`dry_run`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 0 records → must be ≥ 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`except`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MinervaValidationError `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` e:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"caught before any API call:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, e)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Great for checking a batch is well-formed (record limits, allowed\n`,_jsx(_components.code,{children:`match_condition_fields`}),`, record shape) before spending a call.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-gets-validated-locally`,children:`What gets validated locally`}),`\n`,_jsx(_components.p,{children:`The local validation enforces the same constraints the server does:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Record counts`}),` — `,_jsx(_components.code,{children:`enrich`}),` and `,_jsx(_components.code,{children:`resolve`}),` cap at 500 records per call`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Required fields`}),` — `,_jsx(_components.code,{children:`record_id`}),` on every record, etc.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Field types`}),` — strings where strings expected, lists where lists expected`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Allowed values`}),` — `,_jsx(_components.code,{children:`match_condition_fields`}),` capped at 3, only allowed values`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`What it `,_jsx(_components.strong,{children:`doesn’t`}),` check (server-only):`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Billing eligibility (whether your plan covers this endpoint)`}),`\n`,_jsx(_components.li,{children:`Whether matches will actually be found`}),`\n`,_jsx(_components.li,{children:`Per-row business rules`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`dry_run`}),` for shape; trust the server for substance.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-request-models-directly`,children:`The request models directly`}),`\n`,_jsx(_components.p,{children:`Every method has an underlying pydantic request model — you can construct +\nvalidate it yourself if you want:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` minerva `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` EnrichRequest`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`req `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` EnrichRequest.model_validate({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"records\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"record_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"match_condition_fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# req is a typed model; req.model_dump() is the JSON wire payload.`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Useful when you want to drive the validation from your own dict-based\npipeline, generate a JSON Schema, or pre-validate before queueing the call.`}),`\n`,_jsxs(Heading,{level:`2`,id:`all-input-bearing-methods-take-dry_run`,children:[`All input-bearing methods take `,_jsx(_components.code,{children:`dry_run`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsxs(_components.th,{children:[`Returns when `,_jsx(_components.code,{children:`dry_run=True`})]})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mc.api.enrich(...)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`EnrichRequest`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mc.api.resolve(...)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ResolveRequest`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mc.api.get_li_contact_info(...)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`LiContactInfoRequest`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mc.api.validate_emails(...)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ValidateEmailsRequest`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mc.api.infer_record_country(...)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`InferCountryRequest`})})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`mc.api.call(...)`}),` does not take `,_jsx(_components.code,{children:`dry_run`}),` — there’s nothing for the SDK to\nvalidate (the SDK doesn’t know the schema of the path you’re calling).`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Validation \u0026 dry_run","description":"Validate input locally before any network round-trip — same checks the server runs, available offline.","href":"/sdk/guides/validation-dry-run"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What gets validated locally","slug":"what-gets-validated-locally","depth":2,"children":[]},{"title":"The request models directly","slug":"the-request-models-directly","depth":2,"children":[]},{"title":"All input-bearing methods take dry_run","slug":"all-input-bearing-methods-take-dry_run","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"minerva-a2a15a3a","siteName":"Minerva Documentation","title":"Validation \u0026 dry_run - Minerva Documentation","contextualStarterQuestions":[{"_id":"6a206d8996a2e4f37b20bd7e","deploymentId":"68ed07362d3e4d2fb94452da","questionText":"How do I use request models?","status":"active","generatedBy":"contextual","path":"sdk/guides/validation-dry-run","createdAt":"2026-06-03T18:08:09.530Z","updatedAt":"2026-06-03T18:08:09.530Z","__v":0},{"_id":"6a206d8996a2e4f37b20bd7c","deploymentId":"68ed07362d3e4d2fb94452da","questionText":"How do I validate input offline?","status":"active","generatedBy":"contextual","path":"sdk/guides/validation-dry-run","createdAt":"2026-06-03T18:08:09.530Z","updatedAt":"2026-06-03T18:08:09.530Z","__v":0},{"_id":"6a206d8996a2e4f37b20bd7d","deploymentId":"68ed07362d3e4d2fb94452da","questionText":"What does dry_run check?","status":"active","generatedBy":"contextual","path":"sdk/guides/validation-dry-run","createdAt":"2026-06-03T18:08:09.530Z","updatedAt":"2026-06-03T18:08:09.530Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-02T19:15:55.490Z","originalFileLocation":"sdk/guides/validation-dry-run.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Validate input locally before any network round-trip — same checks the server runs, available offline.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Minerva Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Validation \u0026amp; dry_run - Minerva Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validate input locally before any network round-trip — same checks the server runs, available offline.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Minerva Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.minerva.io/sdk/guides/validation-dry-run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://minerva-a2a15a3a.mintlify.site/_mintlify/api/og/v2?division=Power+features\u0026amp;title=Validation+%26+dry_run\u0026amp;description=Validate+input+locally+before+any+network+round-trip+%E2%80%94+same+checks+the+server+runs%2C+available+offline.\u0026amp;theme=e97f3b1d1117a7b9cb640af6\u0026amp;signature=0717ba2d1a96547b66ebf24498ab0c342d6a6ba983bb303f3152f49546c44f35\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Validation \u0026amp; dry_run - Minerva Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validate input locally before any network round-trip — same checks the server runs, available offline.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://minerva-a2a15a3a.mintlify.site/_mintlify/api/og/v2?division=Power+features\u0026amp;title=Validation+%26+dry_run\u0026amp;description=Validate+input+locally+before+any+network+round-trip+%E2%80%94+same+checks+the+server+runs%2C+available+offline.\u0026amp;theme=e97f3b1d1117a7b9cb640af6\u0026amp;signature=0717ba2d1a96547b66ebf24498ab0c342d6a6ba983bb303f3152f49546c44f35\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/minerva-a2a15a3a/friUgrjnS8NK6ZsS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Minerva Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B84E7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.minerva.io/sdk/guides/validation-dry-run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/guides/validation-dry-run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.minerva.io/#organization\",\"name\":\"Minerva Documentation\",\"url\":\"https://docs.minerva.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/minerva-a2a15a3a/4LFBmther9gqOLci/logo/Logo+Wordmark.svg?fit=max\u0026auto=format\u0026n=4LFBmther9gqOLci\u0026q=85\u0026s=80dfff22f85e3503c13e452578128b42\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.minerva.io#website\",\"name\":\"Minerva Documentation\",\"url\":\"https://docs.minerva.io\",\"publisher\":{\"@id\":\"https://docs.minerva.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.minerva.io/sdk/guides/validation-dry-run#webpage\",\"url\":\"https://docs.minerva.io/sdk/guides/validation-dry-run\",\"name\":\"Validation \u0026 dry_run\",\"description\":\"Validate input locally before any network round-trip — same checks the server runs, available offline.\",\"dateModified\":\"2026-06-02T19:15:55.490Z\",\"isPartOf\":{\"@id\":\"https://docs.minerva.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.minerva.io/sdk/guides/validation-dry-run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.minerva.io/sdk/guides/validation-dry-run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Power features\",\"item\":\"https://docs.minerva.io/sdk/guides/async-and-batching\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Validation \u0026 dry_run\",\"item\":\"https://docs.minerva.io/sdk/guides/validation-dry-run\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.minerva.io/sdk/guides/validation-dry-run#article\",\"headline\":\"Validation \u0026 dry_run\",\"name\":\"Validation \u0026 dry_run\",\"description\":\"Validate input locally before any network round-trip — same checks the server runs, available offline.\",\"url\":\"https://docs.minerva.io/sdk/guides/validation-dry-run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.minerva.io/sdk/guides/validation-dry-run#webpage\"},\"dateModified\":\"2026-06-02T19:15:55.490Z\",\"publisher\":{\"@id\":\"https://docs.minerva.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.minerva.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Minerva Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Minerva Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdk/guides/validation-dry-run.md","siteName":"Minerva Documentation","nav":{"global":null,"tabs":[{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/minerva-data-mcp"}]},{"tab":"SDK","groups":[{"group":"Getting started","pages":[{"title":"Minerva Python SDK","href":"/sdk/introduction"},{"title":"Installation","href":"/sdk/installation"},{"title":"Quickstart","href":"/sdk/quickstart"},{"title":"Authentication","href":"/sdk/authentication"}]},{"group":"Endpoints","pages":[{"title":"Resolve","href":"/sdk/guides/resolve"},{"title":"Enrich","href":"/sdk/guides/enrich"},{"title":"Person Search","href":"/sdk/guides/person-search"},{"title":"LinkedIn contact info","href":"/sdk/guides/linkedin"},{"title":"Email validation","href":"/sdk/guides/validate-emails"},{"title":"Country inference","href":"/sdk/guides/infer-country"},{"title":"Usage tallies","href":"/sdk/guides/usage"}]},{"group":"Power features","pages":[{"title":"Async + bulk batching","href":"/sdk/guides/async-and-batching"},{"title":"Streaming batcher","href":"/sdk/guides/streaming-batcher"},{"title":"Workflows — `mc.workflows.*`","href":"/sdk/guides/workflows"},{"title":"Rate limiting (built in)","href":"/sdk/guides/rate-limiting"},{"title":"Custom \u0026 tailored endpoints","description":"Escape hatch for client-specific endpoints — preview routes, partner integrations, anything not yet wrapped in a typed SDK method.","href":"/sdk/guides/custom-endpoints"},{"title":"Validation \u0026 dry_run","href":"/sdk/guides/validation-dry-run"},{"title":"Output formats","description":"Every list-shaped result → dicts, DataFrame, CSV, or a pretty terminal table.","href":"/sdk/guides/output-formats"},{"title":"Spreadsheets — Google Sheets \u0026 Excel","href":"/sdk/guides/spreadsheets"},{"title":"Storage — bulk upload \u0026 download","href":"/sdk/guides/storage"},{"title":"Error handling","href":"/sdk/guides/error-handling"},{"title":"Liveness","href":"/sdk/guides/health"}]},{"group":"Reference","pages":[{"title":"CLI reference","href":"/sdk/reference/cli"},{"title":"Exception reference","href":"/sdk/reference/errors"}]}]},{"tab":"SFTP","pages":[{"title":"SFTP","href":"/sftp/introduction"}]}]},"basePath":"","title":"Validation \u0026 dry_run - Minerva Documentation","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":[],"chunks":[]}