Documentation Index
Fetch the complete documentation index at: https://apidocs.fifteenth.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The List Documents endpoint returns all documents associated with a client account. Supports filtering by tax year and pagination for efficient document management.
Request
Path Parameters
Account identifier to list documents for.
Query Parameters
Number of documents to return (1-100, default 50).
Number of documents to skip for pagination.
Response
Array of document objects.
Total number of documents matching filters.
Whether more documents are available.
Examples
import requests
account_id = "12345"
url = f"https://api.fifteenth.com/v1beta/accounts/{account_id}/documents"
headers = {
"Authorization": "Bearer 15th_your_api_key_here"
}
params = {
"tax_year": 2024,
"limit": 20
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(f"Found {data['total_count']} documents")
for doc in data['documents']:
print(f"- {doc['filename']}: {doc['tax_year']} ({doc['uploaded_at']})")
Sample Response
{
"documents": [
{
"id": 12345,
"filename": "w2_2024.pdf",
"tax_year": 2024,
"description": "W-2 from ABC Corporation",
"uploaded_at": "2024-01-15T10:35:00Z"
},
{
"id": 67890,
"filename": "1099_div.pdf",
"tax_year": 2024,
"description": "Dividend income statement",
"uploaded_at": "2024-01-16T14:20:00Z"
}
],
"total_count": 8,
"has_more": false
}