> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SEC EDGAR: Get Filing Document

> Retrieving a bounded primary filing document or exhibit from a known SEC accession. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Retrieving a bounded primary filing document or exhibit from a known SEC accession.

<Info>
  Tool ID: `sec_edgar_get_filing_document`
</Info>

## Run this action

This action has conditional or dynamic input fields that cannot be represented by a reliable static example.

Inspect the live contract before executing it:

```bash theme={null}
deepline tools get sec_edgar_get_filing_document --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "cik": "example",
  "accession_number": "example",
  "document_name": "Example",
  "format": "text",
  "content": "Example message",
  "returned_chars": 123,
  "total_chars": 123,
  "truncated": true,
  "source_url": "https://example.com/resource"
}
```

Use `deepline tools get sec_edgar_get_filing_document --json` for the latest machine-readable contract.

## Input reference

| Name                       | Type               | Required | Default  | Details                                                                                                                               |
| -------------------------- | ------------------ | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.ticker`           | `string`           | No       | —        | US-listed company ticker, resolved case-insensitively. Pattern: `^[A-Za-z][A-Za-z0-9.-]&#123;0,14&#125;$`.                            |
| `payload.cik`              | `string`           | No       | —        | SEC Central Index Key, with or without leading zeroes. Pattern: `^[0-9]&#123;1,10&#125;$`.                                            |
| `payload.accession_number` | `string`           | Yes      | —        | SEC accession number including dashes. Pattern: `^[0-9]&#123;10&#125;-[0-9]&#123;2&#125;-[0-9]&#123;6&#125;$`.                        |
| `payload.document_name`    | `string`           | Yes      | —        | Exact document name returned by sec\_edgar\_get\_filing\_index. Minimum length: 1. Maximum length: 255. Pattern: `^[A-Za-z0-9._-]+$`. |
| `payload.format`           | `"text" \| "html"` | No       | `"text"` | Return readable plain text or original HTML. Defaults to text. Allowed: `text`, `html`.                                               |
| `payload.max_chars`        | `integer`          | No       | `50000`  | Maximum content characters returned. Defaults to 50,000. Minimum: 1. Maximum: 150000.                                                 |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "ticker": {
        "type": "string",
        "description": "US-listed company ticker, resolved case-insensitively.",
        "pattern": "^[A-Za-z][A-Za-z0-9.-]{0,14}$"
      },
      "cik": {
        "type": "string",
        "description": "SEC Central Index Key, with or without leading zeroes.",
        "pattern": "^[0-9]{1,10}$"
      },
      "accession_number": {
        "type": "string",
        "description": "SEC accession number including dashes.",
        "pattern": "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
      },
      "document_name": {
        "type": "string",
        "description": "Exact document name returned by sec_edgar_get_filing_index.",
        "minLength": 1,
        "maxLength": 255,
        "pattern": "^[A-Za-z0-9._-]+$"
      },
      "format": {
        "type": "string",
        "description": "Return readable plain text or original HTML. Defaults to text.",
        "default": "text",
        "enum": [
          "text",
          "html"
        ]
      },
      "max_chars": {
        "type": "integer",
        "description": "Maximum content characters returned. Defaults to 50,000.",
        "default": 50000,
        "minimum": 1,
        "maximum": 150000
      }
    },
    "required": [
      "accession_number",
      "document_name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Bounded content retrieved from one SEC filing document.

| Name                      | Type               | Required | Default | Details                                                   |
| ------------------------- | ------------------ | -------- | ------- | --------------------------------------------------------- |
| `result.cik`              | `string`           | Yes      | —       | Zero-padded 10-digit SEC CIK.                             |
| `result.accession_number` | `string`           | Yes      | —       | SEC filing accession number.                              |
| `result.document_name`    | `string`           | Yes      | —       | Exact archive document name.                              |
| `result.format`           | `"text" \| "html"` | Yes      | —       | Returned content representation. Allowed: `text`, `html`. |
| `result.content`          | `string`           | Yes      | —       | Bounded document content.                                 |
| `result.returned_chars`   | `integer`          | Yes      | —       | Number of content characters returned.                    |
| `result.total_chars`      | `integer`          | Yes      | —       | Total characters before bounding.                         |
| `result.truncated`        | `boolean`          | Yes      | —       | True when content exceeds max\_chars.                     |
| `result.source_url`       | `string`           | Yes      | —       | Authoritative SEC source URL. Format: `uri`.              |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Bounded content retrieved from one SEC filing document.",
    "properties": {
      "cik": {
        "type": "string",
        "description": "Zero-padded 10-digit SEC CIK."
      },
      "accession_number": {
        "type": "string",
        "description": "SEC filing accession number."
      },
      "document_name": {
        "type": "string",
        "description": "Exact archive document name."
      },
      "format": {
        "type": "string",
        "description": "Returned content representation.",
        "enum": [
          "text",
          "html"
        ]
      },
      "content": {
        "type": "string",
        "description": "Bounded document content."
      },
      "returned_chars": {
        "type": "integer",
        "description": "Number of content characters returned."
      },
      "total_chars": {
        "type": "integer",
        "description": "Total characters before bounding."
      },
      "truncated": {
        "type": "boolean",
        "description": "True when content exceeds max_chars."
      },
      "source_url": {
        "type": "string",
        "description": "Authoritative SEC source URL.",
        "format": "uri"
      }
    },
    "required": [
      "cik",
      "accession_number",
      "document_name",
      "format",
      "content",
      "returned_chars",
      "total_chars",
      "truncated",
      "source_url"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
