Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Get imports grid

Retrieves a paginated, filterable, and sortable list of all CSV imports in the workspace.

What are Imports? The imports feature allows you to bulk import data from CSV files into Leadtime. You can import entities like Employees, Organizations, Projects, Tasks, and more. The system uses AI to automatically suggest field mappings, and you can preview results before executing.

What is returned:

  • Paginated list of imports with metadata (file name, status, row/column counts, timestamps)
  • Supports server-side filtering, sorting, and pagination
  • Quick search available on file names

Import Status Values:

  • Uploaded: Import created and ready for mapping/execution
  • Processing: Import is currently running in the background
  • Completed: Import finished successfully
  • Failed: Import encountered errors during processing

Retrieves a paginated grid of imports with filtering and sorting capabilities. Quick search available on: fileName. Filterable fields: fileName, status, rowCount, columnCount, createdAt, importedAt. Sortable fields: fileName, status, rowCount, columnCount, createdAt, importedAt.

GET/imports-management/grid
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Query parameters
pagenumber

Page number (1-based)

pageSizenumber

Number of items per page

viewIdstring

View identifier for saved grid configurations

quickSearchstring

Quick search text. Searches across: fileName

filtersstring

JSON string containing filter configuration.

Available Fields:

  • fileName (string): Import file name
  • status (set): Import status (Uploaded, Processing, Completed, Failed)
  • rowCount (number): Number of rows in the imported file
  • columnCount (number): Number of columns in the imported file
  • createdAt (date): Import creation timestamp
  • importedAt (date): Import completion timestamp

Filter Structure:

[
  {
    "type": "string|number|date|set|boolean|array|task_status|task_type",
    "fieldName": "field_name",
    "value": {
      "comparison": "comparison_type",
      "value": "filter_value"
    }
  }
]

Group Filters (AND/OR Combinations):

[
  {
    "type": "group",
    "fieldName": "group0.18807479823070028",
    "value": {
      "type": "or",
      "filters": [
        {
          "type": "string",
          "fieldName": "fileName",
          "value": {
            "comparison": "contain",
            "value": "aa"
          }
        },
        {
          "type": "number",
          "fieldName": "rowCount",
          "value": {
            "comparison": ">=",
            "value": 33
          }
        }
      ]
    }
  }
]

Available Comparison Operators:

  • fileName (string): Import file name (string filter). Available comparisons: contain, not_contain, equal, starts_with, ends_with, is_empty, is_not_empty
  • status (set): Import status (Uploaded, Processing, Completed, Failed) (set filter). Available comparisons: in, not_in, is_empty, is_not_empty
  • rowCount (number): Number of rows in the imported file (number filter). Available comparisons: equal, not_equal, >, <, >=, <=, is_empty, is_not_empty
  • columnCount (number): Number of columns in the imported file (number filter). Available comparisons: equal, not_equal, >, <, >=, <=, is_empty, is_not_empty
  • createdAt (date): Import creation timestamp (date filter). Available comparisons: equal, not_equal, >, <, >=, <=, between, lastMonth, thisMonth, is_empty, is_not_empty
  • importedAt (date): Import completion timestamp (date filter). Available comparisons: equal, not_equal, >, <, >=, <=, between, lastMonth, thisMonth, is_empty, is_not_empty

Note: Use quickSearch parameter for simple text search instead of adding it to filters.

sortstring

JSON array of sort objects.

Sortable Fields:

  • fileName: Import file name
  • status: Import status (Uploaded, Processing, Completed, Failed)
  • rowCount: Number of rows in the imported file
  • columnCount: Number of columns in the imported file
  • createdAt: Import creation timestamp
  • importedAt: Import completion timestamp

Sort Structure:

[
  {
    "field": "field_name",
    "direction": "asc|desc"
  }
]

Default Sort: createdAt (desc)

fieldsToReturnstring[]

Comma-separated list of field names to include in response items. If not provided, all fields are returned.

Available Fields: fileName, status, rowCount, columnCount, createdAt, importedAt

Responses
200

Successfully retrieved imports grid

itemsobject[]required

Array of import items in the current page. Each item represents a CSV import with its metadata and status.

Show properties
Array of object
columnCountnumber

Total number of columns in the CSV file

createdAtstring<date-time>

ISO 8601 timestamp when the import was created

fileNamestring | null

Original name of the uploaded CSV file

idstring

Unique identifier (UUID) of the import

importedAtstring<date-time> | null

ISO 8601 timestamp when the import finished processing (null if not completed)

rowCountnumber

Total number of data rows in the CSV file

statusstring

Current status: "Uploaded" (ready), "Processing" (running), "Completed" (success), or "Failed" (error)

pagenumberrequired

Current page number (1-based indexing)

pageSizenumberrequired

Number of items per page in this response

totalnumberrequired

Total number of imports matching the current filters (across all pages)

viewIdstringrequired

View identifier for saved grid configurations (e.g., "all", "recent", custom view name)

400

Invalid query parameters

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Parameters
Request
curl -X GET "https://leadtime.app/api/public/imports-management/grid" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "items": [
    {
      "columnCount": 0,
      "createdAt": "2019-08-24T14:15:22Z",
      "fileName": "string",
      "id": "string",
      "importedAt": "2019-08-24T14:15:22Z",
      "rowCount": 0,
      "status": "string"
    }
  ],
  "page": 1,
  "pageSize": 100,
  "total": 42,
  "viewId": "all"
}