Files API
The Files API allows you to list and retrieve files associated with migrations.Authentication
All API requests require authentication using an API key. For details on API keys and authentication, see the API Authorization guide.File Data Structure
File data is returned in a structured JSON format that includes:File Fields
The file object contains the following fields:| Field | Description |
|---|---|
object | The type of object, always file |
id | The unique identifier for the file |
created | The date and time the file was created |
name | The name of the file, unmodified from the original file |
type | The type of file (e.g., EmployeeRoster) |
content_type | The MIME type of the file |
url | The signed URL for the file |
size | The size of the file in bytes |
migration_id | The unique identifier for the migration that the file belongs to |
File Types
Each file is downloaded from a specific source on the source system’s website. The “source” of each file can be inferred by thetype field. Here is a subset of all possible file types:
CompanyInfo-EntityType-ScreenshotCompanyInfo-EntityType-HTMLContractorInfo-Details-CSVContractorPayments-Report-CSVDeductions-Benefits-ScreenshotDeductions-Benefits-HTMLDeductions-Pay-HTMLDeductions-Report-CSVDeductions-Report-HTMLDirectDeposit-Report-CSVEmployeeData-Report-CSVFederalTax-Setup-ScreenshotFederalTax-Setup-HTMLFederalTax-Document-PDFLocation-ScreenshotLocation-HTMLPayrollJournal-Report-CSVPTOData-Policy-ScreenshotPTOData-Policy-HTMLPTOData-Policy-XLSXSignatoryData-ScreenshotSignatoryData-HTMLStateTax-Setup-ScreenshotStateTax-Setup-HTMLStateTax-Document-PDFTimeOffBalances-Report-CSV
API Endpoints
List Files
To list all files for a specific migration:Get File Details
To retrieve details for a specific file:Best Practices
- Cache file metadata to minimize API calls
- Implement proper error handling for API requests