Skip to main content
GET
/
api
/
adm
/
backgroundProcesses
/
lastImportInfo
Get Last Import Info
curl --request GET \
  --url https://localhost:44371/api/adm/backgroundProcesses/lastImportInfo \
  --header 'Authorization: Bearer <token>'
{
  "processId": "<string>",
  "processType": "<string>",
  "processStatus": "<string>",
  "processNotes": "<string>",
  "processDateCreated": "2023-11-07T05:31:56Z",
  "processDateModified": "2023-11-07T05:31:56Z",
  "projectId": "<string>",
  "lastProjectBatchesIn24h": [
    {
      "id": "<string>",
      "dateCreated": "2023-11-07T05:31:56Z",
      "dateModified": "2023-11-07T05:31:56Z",
      "message": "<string>",
      "type": "<string>",
      "status": "<string>",
      "dateProcessed": "2023-11-07T05:31:56Z"
    }
  ]
}

Description

Retrieves high-level information about the last successful import that was executed on the platform, including the timestamp, process type, and basic statistics. This endpoint is useful for data synchronization monitoring, ensuring that import processes are running on schedule, and displaying “last updated” information in administrative dashboards.

Input

No input parameters required.

Output

Returns a LastImportInfoModel containing details of the most recent import operation.

Example Request

GET /api/admin/backgroundProcesses/last-import-info
Authorization: Bearer {token}

Example Response

{
  "lastImportDate": "2025-10-27T10:30:00Z",
  "importType": "ImportTransactions",
  "recordsProcessed": 1523,
  "recordsFailed": 3,
  "processId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

Errors

No errors expected - returns null values if no imports exist.

Notes

  • Returns null values if no imports have ever been executed.
  • Only includes successfully completed imports; failed or cancelled imports are not returned.
  • Timestamp is in UTC ISO 8601 format.
  • This endpoint always returns the most recent import without requiring parameters.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Response

Always returned with import information or null values if no imports exist.

Represents metadata describing the most recent import background process for a project.

processId
string<guid>

The identifier of the background process that handled the import.

processType
string | null

The type of background process executed.

processStatus
string | null

The current status of the background process.

processNotes
string | null

Any notes recorded for the background process.

processDateCreated
string<date-time>

The timestamp when the background process was created.

processDateModified
string<date-time>

The timestamp when the background process was last updated.

projectId
string<guid>

The identifier of the project whose imports are being tracked.

lastProjectBatchesIn24h
object[] | null

The list of batches processed for the project during the last 24 hours.