DebtStack supports field selection on most endpoints, allowing you to request only the fields you need. This reduces response size and is especially useful for AI agents that need to optimize context windows.
Using Field Selection
Add the fields parameter with a comma-separated list of field names:
Request only the fields you need to reduce response size and improve performance.
For AI Agents
When building AI agents, minimize context by selecting only relevant fields:
# Good: Request specific fieldsresponse = requests.get( f"{BASE_URL}/companies", params={ "ticker": "AAPL,MSFT,GOOGL", "fields": "ticker,name,net_leverage_ratio" # Only what you need })# Avoid: Requesting all fields when you only need a fewresponse = requests.get( f"{BASE_URL}/companies", params={"ticker": "AAPL,MSFT,GOOGL"} # Returns all fields)
Default Behavior
If fields is not specified, all available fields are returned.
Invalid Fields
Requesting an invalid field returns a 400 error with suggestions:
{ "error": { "code": "INVALID_PARAMETER", "message": "Unknown field: 'leverage'. Did you mean 'leverage_ratio'?", "details": { "field": "leverage", "valid_fields": ["leverage_ratio", "net_leverage_ratio", "secured_leverage"] } }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"DebtStack","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/kuyperiancapitalllc/rGNNKbUOKQ4Sh0N-/logo/logo-light.png?fit=max\u0026auto=format\u0026n=rGNNKbUOKQ4Sh0N-\u0026q=85\u0026s=cf973427b71b801a5031152196ab862c","dark":"https://mintcdn.com/kuyperiancapitalllc/rGNNKbUOKQ4Sh0N-/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=rGNNKbUOKQ4Sh0N-\u0026q=85\u0026s=5f137a2344d7b32a45546e3959445649","href":"https://debtstack.ai"},"favicon":"/favicon.svg","api":{},"background":{},"search":{"prompt":"Search docs..."},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kuyperiancapitalllc","hasAudioNarration":false,"actualSubdomain":"kuyperiancapitalllc","customDomains":["docs.debtstack.ai"],"gitSource":{"type":"github","owner":"debtstack-ai","repo":"debtstack-website","deployBranch":"staging","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94661d1e90e32157d7bcc:success","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"API Reference","count":14},{"language":"default","tag":"Documentation","count":10},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Bonds","count":3},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Core Concepts","count":3},{"language":"default","tag":"Covenants","count":2},{"language":"default","tag":"Batch","count":1},{"language":"default","tag":"Collateral","count":1},{"language":"default","tag":"Companies","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":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":"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":[{"filePath":"custom.css","content":":root{--background-dark: #0a0a0a;--background-card: rgba(255, 255, 255, 0.05);--border-subtle: rgba(255, 255, 255, 0.1);--blue-primary: #3B82F6;--purple-accent: #8B5CF6;--glow-blue: rgba(59, 130, 246, 0.4)}.dark body,.dark main,.dark [class*=\"bg-background\"]{background-color:#0a0a0a!important}.dark nav,.dark aside,.dark [class*=\"sidebar\"]{background-color:rgba(10, 10, 10, 0.95)!important;border-color:rgba(255, 255, 255, 0.1)!important}.dark [class*=\"Card\"],.dark [class*=\"card\"],.dark .group{background:rgba(255, 255, 255, 0.05)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255, 255, 255, 0.1)!important;transition:all 0.3s ease}.dark [class*=\"Card\"]:hover,.dark [class*=\"card\"]:hover{background:rgba(255, 255, 255, 0.08)!important;border-color:rgba(100, 150, 255, 0.3)!important;box-shadow:0 8px 32px rgba(59, 130, 246, 0.15);transform:translateY(-2px)}.dark pre,.dark [class*=\"codeblock\"],.dark code[class*=\"language-\"]{background-color:#0d1117!important;border:1px solid rgba(255, 255, 255, 0.1)!important;border-radius:12px!important}.dark pre::before,.dark [class*=\"codeblock\"]::before{background-color:#161b22!important}.dark :not(pre)>code{background-color:rgba(59, 130, 246, 0.15)!important;border:1px solid rgba(59, 130, 246, 0.2)!important;color:#60A5FA!important;border-radius:6px!important;padding:2px 6px!important}.dark button[class*=\"primary\"],.dark a[class*=\"primary\"],.dark [class*=\"cta\"]{background:linear-gradient(135deg, #3B82F6, #2563EB)!important;box-shadow:0 0 25px rgba(59, 130, 246, 0.4)!important;border:none!important;transition:all 0.3s ease!important}.dark button[class*=\"primary\"]:hover,.dark a[class*=\"primary\"]:hover,.dark [class*=\"cta\"]:hover{box-shadow:0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3)!important;transform:translateY(-2px)!important}.dark table{background:rgba(255, 255, 255, 0.02)!important;border:1px solid rgba(255, 255, 255, 0.1)!important;border-radius:12px!important;overflow:hidden}.dark th{background:rgba(59, 130, 246, 0.1)!important;border-bottom:1px solid rgba(255, 255, 255, 0.1)!important;color:#60A5FA!important}.dark td{border-bottom:1px solid rgba(255, 255, 255, 0.05)!important}.dark tr:hover td{background:rgba(255, 255, 255, 0.03)!important}.dark h1{background:linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.dark a:not([class*=\"button\"]):not([class*=\"Card\"]){color:#60A5FA!important;transition:color 0.2s ease}.dark a:not([class*=\"button\"]):not([class*=\"Card\"]):hover{color:#93C5FD!important}.dark [class*=\"Accordion\"],.dark details{background:rgba(255, 255, 255, 0.03)!important;border:1px solid rgba(255, 255, 255, 0.1)!important;border-radius:12px!important}.dark [class*=\"Note\"],.dark [class*=\"Warning\"],.dark [class*=\"Tip\"],.dark [class*=\"callout\"]{background:rgba(255, 255, 255, 0.03)!important;border-left:3px solid #3B82F6!important;border-radius:0 12px 12px 0!important}.dark [class*=\"search\"] input,.dark input[type=\"search\"]{background:rgba(255, 255, 255, 0.05)!important;border:1px solid rgba(255, 255, 255, 0.1)!important;border-radius:12px!important}.dark [class*=\"search\"] input:focus,.dark input[type=\"search\"]:focus{border-color:rgba(59, 130, 246, 0.5)!important;box-shadow:0 0 0 3px rgba(59, 130, 246, 0.1)!important}.dark ::-webkit-scrollbar{width:8px;height:8px}.dark ::-webkit-scrollbar-track{background:#0a0a0a}.dark ::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.1);border-radius:4px}.dark ::-webkit-scrollbar-thumb:hover{background:rgba(255, 255, 255, 0.2)}.dark [class*=\"playground\"],.dark [class*=\"Playground\"]{background:#0d1117!important;border:1px solid rgba(255, 255, 255, 0.1)!important;border-radius:16px!important}.dark footer{background:transparent!important;border-top:1px solid rgba(255, 255, 255, 0.1)!important}.dark [role=\"tablist\"]{background:rgba(255, 255, 255, 0.03)!important;border-radius:12px!important;padding:4px!important}.dark [role=\"tab\"][aria-selected=\"true\"]{background:linear-gradient(135deg, #3B82F6, #2563EB)!important;box-shadow:0 0 15px rgba(59, 130, 246, 0.3)!important}.dark [class*=\"breadcrumb\"]{color:#6b7280!important}.dark hr{border-color:rgba(255, 255, 255, 0.1)!important}"}]}
{"page":{"pagePath":"concepts/field-selection","slug":"/concepts/field-selection","pageMetadata":{"title":"Field Selection","description":"Request only the data you need","href":"/concepts/field-selection","hidden":false},"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: \"Request only the data you need\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`DebtStack supports field selection on most endpoints, allowing you to request only the fields you need. This reduces response size and is especially useful for AI agents that need to optimize context windows.`}),`\n`,_jsx(Heading,{level:`2`,id:`using-field-selection`,children:`Using Field Selection`}),`\n`,_jsxs(_components.p,{children:[`Add the `,_jsx(_components.code,{children:`fields`}),` parameter with a comma-separated list of field names:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.debtstack.ai/v1/companies?ticker=AAPL\u0026fields=ticker,name,net_leverage_ratio\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: ds_xxxxx\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ticker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Apple Inc.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"net_leverage_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`available-fields-by-endpoint`,children:`Available Fields by Endpoint`}),`\n`,_jsxs(Heading,{level:`3`,id:`companies-get-/v1/companies`,children:[`Companies (`,_jsx(_components.code,{children:`GET /v1/companies`}),`)`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Identifiers:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ticker`}),` - Stock ticker symbol`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`name`}),` - Company name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cik`}),` - SEC CIK number`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sector`}),` - Business sector`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`industry`}),` - Industry classification`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Debt Metrics:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`total_debt`}),` - Total debt (cents)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`secured_debt`}),` - Secured debt (cents)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`unsecured_debt`}),` - Unsecured debt (cents)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`net_debt`}),` - Net debt (cents)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Leverage Metrics:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`leverage_ratio`}),` - Total Debt / EBITDA`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`net_leverage_ratio`}),` - Net Debt / EBITDA`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`interest_coverage`}),` - EBITDA / Interest Expense`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`secured_leverage`}),` - Secured Debt / EBITDA`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Structure:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`entity_count`}),` - Number of entities`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`guarantor_count`}),` - Number of guarantors`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`subordination_risk`}),` - Structural subordination risk level`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`subordination_score`}),` - Numeric subordination score`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`has_structural_sub`}),` - Has structural subordination`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`has_floating_rate`}),` - Has floating rate debt`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`has_near_term_maturity`}),` - Debt due within 24 months`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`has_holdco_debt`}),` - Has holding company debt`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`has_opco_debt`}),` - Has operating company debt`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Maturity:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`nearest_maturity`}),` - Next maturity date`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`weighted_avg_maturity`}),` - Weighted average maturity (years)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`debt_due_1yr`}),` - Debt maturing in 0-12 months`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`debt_due_2yr`}),` - Debt maturing in 12-24 months`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`debt_due_3yr`}),` - Debt maturing in 24-36 months`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`bonds-get-/v1/bonds`,children:[`Bonds (`,_jsx(_components.code,{children:`GET /v1/bonds`}),`)`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Identifiers:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`id`}),` - Internal ID`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`name`}),` - Bond name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cusip`}),` - CUSIP identifier`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`isin`}),` - ISIN identifier`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`company_ticker`}),` - Parent company ticker`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`company_name`}),` - Parent company name`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Issuer:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`issuer_name`}),` - Issuing entity name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`issuer_type`}),` - Entity type (holdco, opco, etc.)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`issuer_id`}),` - Internal entity ID`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Structure:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`instrument_type`}),` - Type (senior_notes, term_loan_b, etc.)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`seniority`}),` - Seniority level`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`security_type`}),` - Security type (first_lien, unsecured, etc.)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Amounts:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`commitment`}),` - Total commitment (cents)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`principal`}),` - Original principal (cents)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`outstanding`}),` - Current outstanding (cents)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`currency`}),` - Currency code`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Interest:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`rate_type`}),` - Fixed or floating`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`coupon_rate`}),` - Coupon rate (%)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`spread_bps`}),` - Spread over benchmark (bps)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`benchmark`}),` - Reference rate (SOFR, LIBOR, etc.)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`floor_bps`}),` - Interest rate floor (bps)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Dates:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`issue_date`}),` - Issue date`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`maturity_date`}),` - Maturity date`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Pricing (nested):`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pricing.last_price`}),` - Last trade price`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pricing.ytm`}),` - Yield to maturity (%)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pricing.spread`}),` - Spread to treasury (bps)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pricing.staleness_days`}),` - Days since last trade`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Other:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`guarantor_count`}),` - Number of guarantors`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`is_active`}),` - Currently active`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`is_drawn`}),` - Drawn (for credit facilities)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`nested-fields`,children:`Nested Fields`}),`\n`,_jsx(_components.p,{children:`Some fields are nested objects. Access nested fields with dot notation:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Get only pricing fields`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.debtstack.ai/v1/bonds?ticker=RIG\u0026fields=name,cusip,pricing.ytm,pricing.spread\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: ds_xxxxx\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8.00% Senior Notes due 2027\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cusip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"893830AK8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pricing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ytm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9.42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"spread\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`512`})]}),`\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:`#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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`best-practices`,children:`Best Practices`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Request only the fields you need to reduce response size and improve performance.`})}),`\n`,_jsx(Heading,{level:`3`,id:`for-ai-agents`,children:`For AI Agents`}),`\n`,_jsx(_components.p,{children:`When building AI agents, minimize context by selecting only relevant fields:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,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:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Good: Request specific fields`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/companies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},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:` \"ticker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL,MSFT,GOOGL\"`}),_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:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ticker,name,net_leverage_ratio\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Only what you need`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Avoid: Requesting all fields when you only need a few`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/companies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_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:`\"ticker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL,MSFT,GOOGL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Returns all fields`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`default-behavior`,children:`Default Behavior`}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`fields`}),` is not specified, all available fields are returned.`]}),`\n`,_jsx(Heading,{level:`3`,id:`invalid-fields`,children:`Invalid Fields`}),`\n`,_jsx(_components.p,{children:`Requesting an invalid field returns a 400 error with suggestions:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INVALID_PARAMETER\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unknown field: 'leverage'. Did you mean 'leverage_ratio'?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leverage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"valid_fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leverage_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"net_leverage_ratio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"secured_leverage\"`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}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":"Field Selection","description":"Request only the data you need","href":"/concepts/field-selection","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Using Field Selection","slug":"using-field-selection","depth":2,"children":[]},{"title":"Available Fields by Endpoint","slug":"available-fields-by-endpoint","depth":2,"children":[{"title":"Companies (GET /v1/companies)","slug":"companies-get-/v1/companies","depth":3,"children":[]},{"title":"Bonds (GET /v1/bonds)","slug":"bonds-get-/v1/bonds","depth":3,"children":[]}]},{"title":"Nested Fields","slug":"nested-fields","depth":2,"children":[]},{"title":"Best Practices","slug":"best-practices","depth":2,"children":[{"title":"For AI Agents","slug":"for-ai-agents","depth":3,"children":[]},{"title":"Default Behavior","slug":"default-behavior","depth":3,"children":[]},{"title":"Invalid Fields","slug":"invalid-fields","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"kuyperiancapitalllc","siteName":"DebtStack","title":"Field Selection - DebtStack","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T20:52:35.023Z","originalFileLocation":"concepts/field-selection.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=\"Request only the data you need\">\u003cmeta data-mint-head name=\"application-name\" content=\"DebtStack\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Field Selection - DebtStack\">\u003cmeta data-mint-head property=\"og:description\" content=\"Request only the data you need\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DebtStack\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.debtstack.ai/concepts/field-selection\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kuyperiancapitalllc.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Field+Selection\u0026amp;description=Request+only+the+data+you+need\u0026amp;theme=461792f24c4ae11dbcdc3407\u0026amp;signature=a1dcc79670858690337eac8000a8fb56fe7975e16676f231a6f807fc44d4aad1\">\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=\"Field Selection - DebtStack\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Request only the data you need\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kuyperiancapitalllc.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Field+Selection\u0026amp;description=Request+only+the+data+you+need\u0026amp;theme=461792f24c4ae11dbcdc3407\u0026amp;signature=a1dcc79670858690337eac8000a8fb56fe7975e16676f231a6f807fc44d4aad1\">\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/kuyperiancapitalllc/-qdWfPQz4PImQdrK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DebtStack\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.debtstack.ai/concepts/field-selection\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/field-selection.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.debtstack.ai/#organization\",\"name\":\"DebtStack\",\"url\":\"https://docs.debtstack.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kuyperiancapitalllc/rGNNKbUOKQ4Sh0N-/logo/logo-light.png?fit=max\u0026auto=format\u0026n=rGNNKbUOKQ4Sh0N-\u0026q=85\u0026s=cf973427b71b801a5031152196ab862c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.debtstack.ai#website\",\"name\":\"DebtStack\",\"url\":\"https://docs.debtstack.ai\",\"publisher\":{\"@id\":\"https://docs.debtstack.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.debtstack.ai/concepts/field-selection#webpage\",\"url\":\"https://docs.debtstack.ai/concepts/field-selection\",\"name\":\"Field Selection\",\"description\":\"Request only the data you need\",\"dateModified\":\"2026-01-28T20:52:35.023Z\",\"isPartOf\":{\"@id\":\"https://docs.debtstack.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.debtstack.ai/concepts/field-selection#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.debtstack.ai/concepts/field-selection#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Concepts\",\"item\":\"https://docs.debtstack.ai/concepts/data-model\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Field Selection\",\"item\":\"https://docs.debtstack.ai/concepts/field-selection\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.debtstack.ai/concepts/field-selection#article\",\"headline\":\"Field Selection\",\"name\":\"Field Selection\",\"description\":\"Request only the data you need\",\"url\":\"https://docs.debtstack.ai/concepts/field-selection\",\"mainEntityOfPage\":{\"@id\":\"https://docs.debtstack.ai/concepts/field-selection#webpage\"},\"dateModified\":\"2026-01-28T20:52:35.023Z\",\"publisher\":{\"@id\":\"https://docs.debtstack.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.debtstack.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DebtStack\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DebtStack\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/field-selection.md","siteName":"DebtStack","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"}]},{"group":"Core Concepts","pages":[{"title":"Data Model","description":"Understanding DebtStack data structures","href":"/concepts/data-model"},{"title":"Field Selection","href":"/concepts/field-selection"},{"title":"Pagination","description":"Navigate through large result sets","href":"/concepts/pagination"}]},{"group":"Guides","pages":[{"title":"Demo Scenarios","href":"/guides/scenarios"},{"title":"Building AI Agents","href":"/guides/ai-agents"},{"title":"LangChain Integration","href":"/guides/langchain"},{"title":"MCP Integration","href":"/guides/mcp"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]}]},"basePath":"","title":"Field Selection - DebtStack","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}