List invoice files
GET
/v1/invoices/{id}/filesLists the files emailed with an invoice or offer, such as a timesheet or a contract, in the order they are attached after the PDF.
Requires one ofinvoices:readread:ledger
Path parameters
- Invoice ID
Errors
401Missing or invalid credentials403A scope is missing, or the company is archived404It doesn't exist in this company429You're over the rate limit500Something went wrong on our side
Every error has the same shape. See Errors.
curl https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files \
-H "Authorization: Bearer numi_YOUR_API_KEY"const response = await fetch("https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.NUMINA_API_KEY}`,
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files",
headers={
"Authorization": f"Bearer {os.environ['NUMINA_API_KEY']}",
},
)
data = response.json()Response
{
"files": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"file_name": "timesheet-march.pdf",
"content_type": "application/pdf",
"size_bytes": 48213,
"sha256": "string",
"created_at": "string"
}
]
}