Table of Contents

Interface IContactImportCollectionResource

Namespace
Mailtrap.ContactImports
Assembly
Mailtrap.Abstractions.dll

Represents contact import collection resource.

public interface IContactImportCollectionResource : IRestResource
Inherited Members

Methods

Create(CreateContactImportRequest, CancellationToken)

Import contacts in bulk with support for custom fields and list management. Existing contacts with matching email addresses will be updated automatically. You can import up to 50,000 contacts per request. The import process runs asynchronously - use the returned import ID to check the status and results. Provide the contacts to import in the request.

Task<ContactImport> Create(CreateContactImportRequest request, CancellationToken cancellationToken = default)

Parameters

request CreateContactImportRequest

Request containing contact list for import.

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<ContactImport>

ContactImport containing the import Id and status.