Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.
Overview
Most U.S. government data endpoints used by the application are publicly accessible open-data APIs that require no authentication. A few endpoints support optional API keys that raise rate limits or unlock direct access, and one endpoint (SEC EDGAR) requires an identifying User-Agent header.Use this page when you need to:
Understand which federal endpoints require credentials.
Provision optional API keys for higher rate limits or authenticated access.
Configure the SEC EDGAR User-Agent header.
Troubleshoot SAM.gov API key propagation delays.
Endpoint authentication matrix
Federal data endpoint
API key required?
Notes
ClinicalTrials.gov
No
Public API v2, no key required.
USASpending.gov
No
Public API v2, no key required.
arXiv Repository
No
Open OAI-PMH and Search API.
USPTO Patents & PatentsView
No
Public open-data endpoints.
SEC EDGAR Filings
No
Requires a standard User-Agent header in the form Name/1.0 email@domain.com.
openFDA
Optional
Works keyless; an optional free key unlocks 240 requests/minute.
SAM.gov Solicitations
Optional
Ingests fallback public signals; an optional key unlocks direct SAM.gov API access.
Obtaining optional API keys
openFDA
Visit open.fda.gov/apis/authentication and submit your email. openFDA emails a key in roughly ten seconds and raises the per-minute request limit to 240.
Open Account Settings and generate a Public API Key.
Keys are prefixed with SAM- (for example, SAM-007a9afa-a177-4e68-8a71-be3ad125e71f).
SAM.gov Unique Entity ID (UEI)
SAM.gov issues the Unique Entity ID (UEI) through the SAM Entity Management workspace when your organization completes entity registration. It is a 12-character alphanumeric identifier (for example, LX7PJGDDUUU1). The UEI both identifies your organization on SAM.gov and serves as the lookup key for the USASpending.gov fallback described below.
SEC EDGAR User-Agent requirement
The SEC requires every request to EDGAR to include an identifying User-Agent header. EDGAR rejects requests without one. Configure the header with your name (or organization) and a contact email:
When the header is set, the app sends EDGAR requests in the form:
GET /submissions/CIK0000320193.json HTTP/1.1Host: data.sec.govUser-Agent: Your Name/1.0 you@example.com
SAM.gov GSA API Gateway propagation window
The GSA API Gateway provisions newly issued SAM.gov Public API Keys and must propagate them across gateway clusters before you can use them. Propagation can take up to 24 hours. During this window, calls to api.sam.gov may return HTTP 403 or 404, even though the key is valid.The platform detects this state and automatically falls back to the USASpending.gov API, keyed by your Unique Entity ID (UEI). Live contract and award data continues to flow until SAM.gov gateway sync completes. Once the key is fully registered, direct SAM.gov calls resume automatically. No restart or reconfiguration is required.
Configuration reference
All keys are optional except where indicated. Configure them in your environment or through the Settings / Secrets panel in the app UI:
# SEC EDGAR: required identifying headerSEC_EDGAR_USER_AGENT="Your Name/1.0 you@example.com"# Optional keys for higher rate limits or direct accessOPENFDA_API_KEY=SAM_GOV_API_KEY=USPTO_API_KEY=
Leave optional keys unset to use the keyless public endpoints. The application transparently upgrades to authenticated requests when a key is present.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agent Lab","description":"Predictive Opportunity Intelligence Dashboard. Predict federal business and contracting opportunities from public open data, synthesized by Gemini AI.","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/unclerobertconsulting/2UdCVOribQ8JEvZg/images/234511077.png?fit=max\u0026auto=format\u0026n=2UdCVOribQ8JEvZg\u0026q=85\u0026s=ca934b5f07ec7123cee8865ce85739f0","dark":"https://mintcdn.com/unclerobertconsulting/2UdCVOribQ8JEvZg/images/234511071.png?fit=max\u0026auto=format\u0026n=2UdCVOribQ8JEvZg\u0026q=85\u0026s=2a53a50c564ad38bad614035e39b0310","href":"https://agent-lab.tech"},"favicon":"https://mintcdn.com/unclerobertconsulting/KXxK0ur0nVKbUOER/favicon.svg?fit=max\u0026auto=format\u0026n=KXxK0ur0nVKbUOER\u0026q=85\u0026s=48aaea1cfca7818fe838b9680efc0203","appearance":{"default":"light"},"navbar":{"links":[{"href":"mailto:hi@mintlify.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.mintlify.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://mintlify.com/docs"},{"anchor":"Blog","icon":"newspaper","href":"https://mintlify.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"unclerobertconsulting","hasAudioNarration":false,"actualSubdomain":"unclerobertconsulting","customDomains":["docs.unclerobertconsulting.com"],"gitSource":{"type":"github","owner":"rtmdiyguy","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"issues":true,"edits":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6abc18f8155e7e3d936c8f11","clientVersion":"0.0.4324","searchFilterCounts":[{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"API reference","count":17},{"language":"default","tag":"Platform","count":6},{"language":"default","tag":"Endpoint examples","count":4},{"language":"default","tag":"Writing content","count":4},{"language":"default","tag":"AI tools","count":3},{"language":"default","tag":"Integrations","count":2},{"language":"default","tag":"Runs and artifacts","count":2},{"language":"default","tag":"GTM tools","count":2},{"language":"default","tag":"API documentation","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"info@unclerobertconsulting.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/government-apis","slug":"/api-reference/government-apis","pageMetadata":{"title":"U.S. Government API integrations","description":"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.","href":"/api-reference/government-apis"},"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: \"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,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,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Most U.S. government data endpoints used by the application are `,_jsx(_components.strong,{children:`publicly accessible open-data APIs`}),` that require no authentication. A few endpoints support optional API keys that raise rate limits or unlock direct access, and one endpoint (SEC EDGAR) requires an identifying `,_jsx(_components.code,{children:`User-Agent`}),` header.`]}),`\n`,_jsx(_components.p,{children:`Use this page when you need to:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Understand which federal endpoints require credentials.`}),`\n`,_jsx(_components.li,{children:`Provision optional API keys for higher rate limits or authenticated access.`}),`\n`,_jsxs(_components.li,{children:[`Configure the SEC EDGAR `,_jsx(_components.code,{children:`User-Agent`}),` header.`]}),`\n`,_jsx(_components.li,{children:`Troubleshoot SAM.gov API key propagation delays.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint-authentication-matrix`,children:`Endpoint authentication matrix`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Federal data endpoint`}),_jsx(_components.th,{style:{textAlign:`left`},children:`API key required?`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`ClinicalTrials.gov`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Public API v2, no key required.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`USASpending.gov`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Public API v2, no key required.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`arXiv Repository`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Open OAI-PMH and Search API.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`USPTO Patents \u0026 PatentsView`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Public open-data endpoints.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`SEC EDGAR Filings`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`No`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Requires a standard `,_jsx(_components.code,{children:`User-Agent`}),` header in the form `,_jsx(_components.code,{children:`Name/1.0 email@domain.com`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`openFDA`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Optional`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Works keyless; an optional free key unlocks 240 requests/minute.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`SAM.gov Solicitations`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Optional`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Ingests fallback public signals; an optional key unlocks direct SAM.gov API access.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`obtaining-optional-api-keys`,children:`Obtaining optional API keys`}),`\n`,_jsx(Heading,{level:`3`,id:`openfda`,children:`openFDA`}),`\n`,_jsxs(_components.p,{children:[`Visit `,_jsx(_components.a,{href:`https://open.fda.gov/apis/authentication/`,children:`open.fda.gov/apis/authentication`}),` and submit your email. openFDA emails a key in roughly ten seconds and raises the per-minute request limit to 240.`]}),`\n`,_jsx(Heading,{level:`3`,id:`sam-gov-public-api-key`,children:`SAM.gov Public API Key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.a,{href:`https://sam.gov/workspace/profile/account-details`,children:`sam.gov/workspace/profile/account-details`}),`.`]}),`\n`,_jsx(_components.li,{children:`Sign in with Login.gov.`}),`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`Account Settings`}),` and generate a `,_jsx(_components.strong,{children:`Public API Key`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Keys are prefixed with `,_jsx(_components.code,{children:`SAM-`}),` (for example, `,_jsx(_components.code,{children:`SAM-007a9afa-a177-4e68-8a71-be3ad125e71f`}),`).`]}),`\n`,_jsx(Heading,{level:`3`,id:`sam-gov-unique-entity-id-uei`,children:`SAM.gov Unique Entity ID (UEI)`}),`\n`,_jsxs(_components.p,{children:[`SAM.gov issues the Unique Entity ID (UEI) through the SAM Entity Management workspace when your organization completes entity registration. It is a 12-character alphanumeric identifier (for example, `,_jsx(_components.code,{children:`LX7PJGDDUUU1`}),`). The UEI both identifies your organization on SAM.gov and serves as the lookup key for the USASpending.gov fallback described below.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`sec-edgar-user-agent-requirement`,children:[`SEC EDGAR `,_jsx(_components.code,{children:`User-Agent`}),` requirement`]}),`\n`,_jsxs(_components.p,{children:[`The SEC requires every request to EDGAR to include an identifying `,_jsx(_components.code,{children:`User-Agent`}),` header. EDGAR rejects requests without one. Configure the header with your name (or organization) and a contact email:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SEC_EDGAR_USER_AGENT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Your Name/1.0 you@example.com\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`When the header is set, the app sends EDGAR requests in the form:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /submissions/CIK0000320193.json `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`HTTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data.sec.gov`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`User-Agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Your Name/1.0 you@example.com`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`sam-gov-gsa-api-gateway-propagation-window`,children:`SAM.gov GSA API Gateway propagation window`}),`\n`,_jsxs(_components.p,{children:[`The GSA API Gateway provisions newly issued SAM.gov Public API Keys and must propagate them across gateway clusters before you can use them. Propagation can take `,_jsx(_components.strong,{children:`up to 24 hours`}),`. During this window, calls to `,_jsx(_components.code,{children:`api.sam.gov`}),` may return HTTP `,_jsx(_components.code,{children:`403`}),` or `,_jsx(_components.code,{children:`404`}),`, even though the key is valid.`]}),`\n`,_jsxs(_components.p,{children:[`The platform detects this state and automatically falls back to the `,_jsx(_components.strong,{children:`USASpending.gov API`}),`, keyed by your `,_jsx(_components.strong,{children:`Unique Entity ID (UEI)`}),`. Live contract and award data continues to flow until SAM.gov gateway sync completes. Once the key is fully registered, direct SAM.gov calls resume automatically. No restart or reconfiguration is required.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configuration-reference`,children:`Configuration reference`}),`\n`,_jsx(_components.p,{children:`All keys are optional except where indicated. Configure them in your environment or through the Settings / Secrets panel in the app UI:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# SEC EDGAR: required identifying header`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SEC_EDGAR_USER_AGENT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Your Name/1.0 you@example.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Optional keys for higher rate limits or direct access`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OPENFDA_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SAM_GOV_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`USPTO_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Leave optional keys unset to use the keyless public endpoints. The application transparently upgrades to authenticated requests when a key is present.`})})]})}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":"U.S. Government API integrations","description":"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.","href":"/api-reference/government-apis"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Endpoint authentication matrix","slug":"endpoint-authentication-matrix","depth":2,"children":[]},{"title":"Obtaining optional API keys","slug":"obtaining-optional-api-keys","depth":2,"children":[{"title":"openFDA","slug":"openfda","depth":3,"children":[]},{"title":"SAM.gov Public API Key","slug":"sam-gov-public-api-key","depth":3,"children":[]},{"title":"SAM.gov Unique Entity ID (UEI)","slug":"sam-gov-unique-entity-id-uei","depth":3,"children":[]}]},{"title":"SEC EDGAR User-Agent requirement","slug":"sec-edgar-user-agent-requirement","depth":2,"children":[]},{"title":"SAM.gov GSA API Gateway propagation window","slug":"sam-gov-gsa-api-gateway-propagation-window","depth":2,"children":[]},{"title":"Configuration reference","slug":"configuration-reference","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"unclerobertconsulting","siteName":"Agent Lab","title":"U.S. Government API integrations - Agent Lab","contextualStarterQuestions":[{"_id":"6a7d336569493d2c6604a3cc","deploymentId":"69baee6327b1b28bb384b6ab","questionText":"Which APIs need authentication?","status":"active","generatedBy":"contextual","path":"api-reference/government-apis","createdAt":"2026-08-13T03:00:53.119Z","updatedAt":"2026-08-13T03:00:53.119Z","__v":0},{"_id":"6a7d336569493d2c6604a3ce","deploymentId":"69baee6327b1b28bb384b6ab","questionText":"What's the SEC EDGAR header?","status":"active","generatedBy":"contextual","path":"api-reference/government-apis","createdAt":"2026-08-13T03:00:53.119Z","updatedAt":"2026-08-13T03:00:53.119Z","__v":0},{"_id":"6a7d336569493d2c6604a3cd","deploymentId":"69baee6327b1b28bb384b6ab","questionText":"How do I get an openFDA key?","status":"active","generatedBy":"contextual","path":"api-reference/government-apis","createdAt":"2026-08-13T03:00:53.119Z","updatedAt":"2026-08-13T03:00:53.119Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-13T03:00:41.810Z","originalFileLocation":"api-reference/government-apis.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=\"light\"}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=\"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agent Lab\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_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/unclerobertconsulting/n45yLtEWFfzQYKxR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"U.S. Government API integrations - Agent Lab\">\u003cmeta data-mint-head property=\"og:description\" content=\"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agent Lab\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.unclerobertconsulting.com/api-reference/government-apis\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://unclerobertconsulting.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=U.S.+Government+API+integrations\u0026amp;description=Authenticate+and+configure+federal+open-data+endpoints%3A+ClinicalTrials.gov%2C+USASpending%2C+arXiv%2C+USPTO%2C+SEC+EDGAR%2C+openFDA%2C+and+SAM.gov.\u0026amp;theme=c18f3449d4f1a567829978c6\u0026amp;signature=b0ea50dd945f68c83e52c3373f4447048cc9bae772fa0d1ff8c78f56533bfb2d\">\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=\"U.S. Government API integrations - Agent Lab\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://unclerobertconsulting.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=U.S.+Government+API+integrations\u0026amp;description=Authenticate+and+configure+federal+open-data+endpoints%3A+ClinicalTrials.gov%2C+USASpending%2C+arXiv%2C+USPTO%2C+SEC+EDGAR%2C+openFDA%2C+and+SAM.gov.\u0026amp;theme=c18f3449d4f1a567829978c6\u0026amp;signature=b0ea50dd945f68c83e52c3373f4447048cc9bae772fa0d1ff8c78f56533bfb2d\">\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/unclerobertconsulting/n45yLtEWFfzQYKxR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agent Lab\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.unclerobertconsulting.com/api-reference/government-apis\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/government-apis.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.unclerobertconsulting.com/#organization\",\"name\":\"Agent Lab\",\"url\":\"https://docs.unclerobertconsulting.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/unclerobertconsulting/2UdCVOribQ8JEvZg/images/234511077.png?fit=max\u0026auto=format\u0026n=2UdCVOribQ8JEvZg\u0026q=85\u0026s=ca934b5f07ec7123cee8865ce85739f0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.unclerobertconsulting.com#website\",\"name\":\"Agent Lab\",\"url\":\"https://docs.unclerobertconsulting.com\",\"publisher\":{\"@id\":\"https://docs.unclerobertconsulting.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis#webpage\",\"url\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis\",\"name\":\"U.S. Government API integrations\",\"description\":\"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.\",\"dateModified\":\"2026-08-13T03:00:41.810Z\",\"isPartOf\":{\"@id\":\"https://docs.unclerobertconsulting.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Lab\",\"item\":\"https://docs.unclerobertconsulting.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"U.S. Government API integrations\",\"item\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis#article\",\"headline\":\"U.S. Government API integrations\",\"name\":\"U.S. Government API integrations\",\"description\":\"Authenticate and configure federal open-data endpoints: ClinicalTrials.gov, USASpending, arXiv, USPTO, SEC EDGAR, openFDA, and SAM.gov.\",\"url\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis\",\"mainEntityOfPage\":{\"@id\":\"https://docs.unclerobertconsulting.com/api-reference/government-apis#webpage\"},\"dateModified\":\"2026-08-13T03:00:41.810Z\",\"publisher\":{\"@id\":\"https://docs.unclerobertconsulting.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.unclerobertconsulting.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agent Lab\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agent Lab\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/government-apis.md","siteName":"Agent Lab","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://mintlify.com/docs"},{"anchor":"Blog","icon":"newspaper","href":"https://mintlify.com/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/overview"}]},{"tab":"API reference","groups":[{"group":"API documentation","pages":[{"title":"Plant Store API reference and authentication","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"SDKs","pages":[{"title":"Python SDK","href":"/api-reference/python-sdk"}]},{"group":"Runs and artifacts","pages":[{"title":"Runs","href":"/api-reference/runs"},{"title":"Artifacts","href":"/api-reference/artifacts"}]},{"group":"Endpoint examples","pages":[{"title":"Get Plants","openapi":"GET /plants","href":"/api-reference/endpoint/get"},{"title":"Create Plant","openapi":"POST /plants","href":"/api-reference/endpoint/create"},{"title":"Delete Plant","openapi":"DELETE /plants/{id}","href":"/api-reference/endpoint/delete"},{"title":"New Plant","openapi":"WEBHOOK /plant/webhook","href":"/api-reference/endpoint/webhook"}]},{"group":"Playbooks","pages":[{"title":"Playbooks endpoints","description":"Read the governed cross-department playbooks and their ordered handoff contracts through GET /api/playbooks and GET /api/playbooks/:id.","href":"/api-reference/playbooks"}]},{"group":"Integrations","pages":[{"title":"U.S. Government API integrations","href":"/api-reference/government-apis"},{"title":"AI Studio mobile sync and ingestion API","description":"Bidirectional bridge between AgentLab OS and the AI Studio mobile dashboard: state export, roaming data ingestion, remote actions, and push webhooks.","href":"/api-reference/ai-studio-sync"}]},{"group":"Audit logs","pages":[{"title":"Audit log, stats, and approval endpoints","sidebarTitle":"Audit logs","href":"/api-reference/audit-logs"}]},{"group":"Workspace snapshots","pages":[{"title":"Workspace snapshot endpoints","href":"/api-reference/snapshots"}]},{"group":"Voice agent","pages":[{"title":"Voice endpoints","href":"/api-reference/voice-endpoints"}]},{"group":"GTM tools","pages":[{"title":"ICP API","href":"/api-reference/icp-api"},{"title":"Assessment API","href":"/api-reference/assessment-api"}]}]}]},"basePath":"","title":"U.S. Government API integrations - Agent Lab","deploymentId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","buildId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","dynamics":[],"chunks":[]}