Skip to main content

Import Commands

moss import create

Start a data import job. The file must be accessible via URL.
moss import create \
  --entity-type contacts \
  --file-url "https://storage.example.com/contacts.csv"
OptionRequiredDescription
--entity-type <type>YesEntity type: contacts, companies, or deals
--file-url <url>YesURL of the file to import
Returns a job ID that you can use to check status.

moss import status

Check the status of an import job.
moss import status --id job_abc123
OptionRequiredDescription
--id <id>YesImport job ID
moss import status --id job_abc123 --json
{
  "data": {
    "id": "job_abc123",
    "entity_type": "contacts",
    "status": "completed",
    "total_rows": 150,
    "imported_rows": 148,
    "failed_rows": 2,
    "created_at": "2026-02-08T12:00:00Z",
    "completed_at": "2026-02-08T12:01:30Z"
  }
}

Export Commands

moss export create

Start a data export job.
moss export create --entity-type contacts --format csv
OptionRequiredDescription
--entity-type <type>YesEntity type: contacts, companies, or deals
--format <format>NoExport format: csv (default) or json
Returns a job ID that you can use to check status and download the file.

moss export status

Check the status of an export job.
moss export status --id job_def456
OptionRequiredDescription
--id <id>YesExport job ID
moss export status --id job_def456 --json
{
  "data": {
    "id": "job_def456",
    "entity_type": "contacts",
    "format": "csv",
    "status": "completed",
    "download_url": "https://storage.mosscrm.com/exports/job_def456.csv",
    "created_at": "2026-02-08T12:00:00Z",
    "completed_at": "2026-02-08T12:00:45Z"
  }
}