Skip to main content
POST
/
workspaces
/
{workspace}
/
contact-imports
Create Contact Import
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 contact_groups=123 \
  --form file=@example-file
{
  "status": 201,
  "message": "Resource created successfully.",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace
string<uuid>
required

ID of the workspace.

Body

multipart/form-data
name
string
required

Unique name per workspace.

Maximum length: 255
file
file
required

Required file. Must be CSV, TXT, XLSX, or XLS. Max size 5MB.

contact_groups
integer[] | null

Array of group IDs. Must exist in workspace and be assignable.

Contact group ID.

Response

status
integer
required
Example:

201

message
string
required
Example:

"Resource created successfully."

data
object
required

Created resource data.