# Gloom SEC Filing Documents Endpoint

> Gloom SEC Filing Documents Endpoint is a paid API for AI agents from api.gloom.sh, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-01).

Retrieves the list of documents included in a specific SEC filing by company CIK and accession number.

## Facts

- Endpoint: GET https://api.gloom.sh/v1/sec/filing/documents?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gloom-sec-filing-documents-endpoint-7ae39614
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o7G7U-SPjNipz6v0T3CMe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gloom-sec-filing-documents-endpoint-7ae39614
```

Example prompt: Can you pull up all the documents included in Apple's SEC filing with CIK 0000320193 and accession number 0000320193-26-000089 from Gloom?

## When to prefer this

Use this endpoint when you need to enumerate the specific documents within a known SEC filing — identified by CIK and accession number — such as to find XBRL instance documents, locate specific exhibits, or audit the completeness of a submission. Prefer this over general SEC search endpoints when you already have the accession number and need the document manifest rather than filing metadata.

## Known failure modes

- Invalid or malformed CIK returns an error or empty result
- Incorrect accession number format returns no documents
- Filing not found in SEC EDGAR returns empty data array
- Rate limiting or payment failure (x402) blocks the request
- Network timeout if EDGAR upstream is slow

## How this service works

Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.

## Output

Returns a JSON array of document objects for the specified SEC filing, each containing the document's filename, file size in bytes, SEC document type code (e.g. EX-101.INS, 10-K), a boolean indicating whether it is the primary document, and a human-readable description of the document's role.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cik",
      "accession"
     ],
     "properties": {
      "cik": {
       "type": "string"
      },
      "accession": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "name": "aapl-20260627_htm.xml",
    "size": 36046,
    "type": "EX-101.INS",
    "primary": false,
    "description": "XBRL instance document"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-sec-filing-documents-endpoint-7ae39614/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gloom.sh](https://www.zero.xyz/host/api.gloom.sh/llms.txt)
