Documentation Index
Fetch the complete documentation index at: https://docs.debtstack.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
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 thefields parameter with a comma-separated list of field names:
Available Fields by Endpoint
Companies (GET /v1/companies)
Identifiers:
ticker- Stock ticker symbolname- Company namecik- SEC CIK numbersector- Business sectorindustry- Industry classification
total_debt- Total debt (cents)secured_debt- Secured debt (cents)unsecured_debt- Unsecured debt (cents)net_debt- Net debt (cents)
leverage_ratio- Total Debt / EBITDAnet_leverage_ratio- Net Debt / EBITDAinterest_coverage- EBITDA / Interest Expensesecured_leverage- Secured Debt / EBITDA
entity_count- Number of entitiesguarantor_count- Number of guarantorssubordination_risk- Structural subordination risk levelsubordination_score- Numeric subordination score
has_structural_sub- Has structural subordinationhas_floating_rate- Has floating rate debthas_near_term_maturity- Debt due within 24 monthshas_holdco_debt- Has holding company debthas_opco_debt- Has operating company debt
nearest_maturity- Next maturity dateweighted_avg_maturity- Weighted average maturity (years)debt_due_1yr- Debt maturing in 0-12 monthsdebt_due_2yr- Debt maturing in 12-24 monthsdebt_due_3yr- Debt maturing in 24-36 months
Bonds (GET /v1/bonds)
Identifiers:
id- Internal IDname- Bond namecusip- CUSIP identifierisin- ISIN identifiercompany_ticker- Parent company tickercompany_name- Parent company name
issuer_name- Issuing entity nameissuer_type- Entity type (holdco, opco, etc.)issuer_id- Internal entity ID
instrument_type- Type (senior_notes, term_loan_b, etc.)seniority- Seniority levelsecurity_type- Security type (first_lien, unsecured, etc.)
commitment- Total commitment (cents)principal- Original principal (cents)outstanding- Current outstanding (cents)currency- Currency code
rate_type- Fixed or floatingcoupon_rate- Coupon rate (%)spread_bps- Spread over benchmark (bps)benchmark- Reference rate (SOFR, LIBOR, etc.)floor_bps- Interest rate floor (bps)
issue_date- Issue datematurity_date- Maturity date
pricing.last_price- Last trade pricepricing.ytm- Yield to maturity (%)pricing.spread- Spread to treasury (bps)pricing.staleness_days- Days since last trade
guarantor_count- Number of guarantorsis_active- Currently activeis_drawn- Drawn (for credit facilities)
Nested Fields
Some fields are nested objects. Access nested fields with dot notation:Best Practices
For AI Agents
When building AI agents, minimize context by selecting only relevant fields:Default Behavior
Iffields is not specified, all available fields are returned.

