Skip to main content
Start with a file ID from search or a filing’s file list. You can also start with a shared file link. For example, the files on AIG’s Texas roof endorsement filing:
Response (first file)
Pick a file by its role, name, and folder in relativePath, and use its fileId below. textAvailability and downloadAvailability can be unknown until you request the text or download. To list every file, follow nextCursor until it’s null. Start with the file’s /file/<id> viewer URL and authenticate with your API key. The initial HTML and HTTP Link header expose same-origin metadata, extracted-text, and download endpoints without running JavaScript. A request with Accept: application/json redirects to file metadata. Keep the key in the Authorization header, never in the URL. The UUID in a persistent file’s viewer URL is the API’s fileId. The Files API works with persistent files. Folders, temporary content, and externally hosted content are outside this contract. GET /api/v2/files/{fileId} returns the file’s name, MIME type, recorded size and current version, plus links.text and links.download. Metadata reads do not start extraction or download content. Resolve these paths against the shared URL’s origin and authenticate each API request. Sharing a viewer URL does not grant access: missing credentials return 401; missing or inaccessible files return 404. The text link requests up to 65,536 UTF-8 bytes; the default without maxBytes is 16,384. Continue with nextCursor as cursor and the same maxBytes until nextCursor is null. 409 text_unavailable means to use the original download. A visible file can still return 403 download_restricted for text or downloads. See Save a checkpoint and resume for recovery. Metadata describes the current file. Extracted text is not pinned to a source file version. If the shared URL includes versionId, pass that value to the download endpoint to retrieve the historical original; page is a viewer navigation hint, not an API text offset.

Historical filing evidence

The catalog file list reflects currently stored files, not an immutable snapshot of the package submitted on a particular date. It can include later revisions, objections, and response documents. A file version pins bytes; it does not prove that the file belonged to the original submission. To reconstruct a filing before an objection, verify each document’s submission date and provenance from the available source records. Excluding the objection and response alone does not establish that the remaining documents are the original versions. If historical versions or membership cannot be verified, record that limitation instead of treating the reconstruction as exact.

Read extracted text

Response (text abbreviated)
location offsets count UTF-8 bytes, not characters, and a chunk can be shorter than maxBytes so it doesn’t split a character. See the text reference for the schema. Not every file has extracted text. 409 text_unavailable means it doesn’t, so download the original instead. A file whose extracted text is empty returns 200 with empty text. 404 not_found means the file is missing or you can’t access it.

Save a checkpoint and resume

Save the file ID, maxBytes, textRevision, and the cursor you sent with each chunk. Store the chunk before moving on. While nextCursor isn’t null, continue with:
Keep maxBytes the same. If a response is lost, resend the same request; retries can return a different cursor string. Deduplicate chunks by file ID, revision, and start offset. Stop when nextCursor is null. Cursors expire 24 hours after the first chunk. On invalid_cursor, or if textRevision changes, start again from the beginning and don’t mix chunks from different revisions.

Download the original

Download the original when you need the layout or pages, or the file has no extracted text. Pass the file list’s versionId if it has one; otherwise omit it to get the current version.
To pin a version, add ?versionId={versionId}. The API responds with a redirect to a short-lived download URL, which --location follows:
Don’t send your Authorization header to the storage host. curl drops it when a redirect goes to another host; if you use another client, check that it does the same. Save File-Version-Id (in download-headers.txt above) for citations and retries; the download URL expires. To download again, request the same file and version for a fresh URL. Limit concurrency when downloading many files.

Cite what you read

Extracted text and search passages don’t currently record which file version they came from (versionId is null), and page markers in the text aren’t verified. To cite a page, check it in the downloaded original and record that file’s version, for example: “Page 1 of file X, version V.”