Skip to main content

Data Migration - Get My Imports

Endpoint

/o/datamigration/getmyimports

Overview

Returns discovered import artifacts by scanning import and log directories.

Authentication

Countly API supports three authentication methods:

  1. API key query parameter: api_key=YOUR_API_KEY
  2. Auth token query parameter: auth_token=YOUR_AUTH_TOKEN
  3. Auth token header: countly-token: YOUR_AUTH_TOKEN

Permissions

Requires data_migration Read permission.

Request Parameters

ParameterTypeRequiredDescription
argsJSON String (Object)NoOptional JSON-stringified helper args.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Response

Success Response

With imports:

{
"result": {
"f9b35d90be5f2240eafced7c6bfdf130856cd0a7": {
"type": "archive",
"log": "dm-import_f9b35d90be5f2240eafced7c6bfdf130856cd0a7.log",
"last_update": "2026-02-17T14:28:00.000Z",
"app_list": "Production App"
}
}
}

No imports:

{
"result": "data-migration.no-imports"
}

Response Fields

FieldTypeDescription
resultObject or StringImport map keyed by import ID, or no-imports key.
result.by_id.typeStringarchive or folder depending on import artifact type.
result.by_id.logStringAssociated import log filename if found.
result.by_id.last_updateStringLast access/update timestamp from log stats when available.
result.by_id.app_listStringImported app names from import metadata JSON when available.

Error Responses

This handler primarily returns success keys and does filesystem scanning; explicit error responses are not defined for most scan failures.

Behavior/Processing

Behavior Modes

ModeTriggerProcessing PathResponse Shape
Imports foundImport/log artifacts detectedBuilds import map from directory and metadata/log files.Wrapped object map
No importsNo artifacts detectedReturns no-imports key.Wrapped string

Impact on Other Data

  • Read-only endpoint.

Database Collections

This endpoint does not read or write database collections directly.


Examples

List imports

/o/datamigration/getmyimports

Last Updated

2026-02-17