cURL
curl --request POST \ --url https://lancepilot.com/api/v3/workspaces/{workspace}/contact-imports \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'name=<string>' \ --form file='@example-file' \ --form contact_groups=123
{ "status": 201, "message": "Resource created successfully.", "data": {} }
Create a new contact import in the specified workspace.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the workspace.
Unique name per workspace.
255
Required file. Must be CSV, TXT, XLSX, or XLS. Max size 5MB.
Array of group IDs. Must exist in workspace and be assignable.
Contact group ID.
201
"Resource created successfully."
Created resource data.