Skip to content

Upload an account file

Lists
POSThttps://api.dcdial.com/api/type=upload_file
Changes dataToken

Imports accounts from a CSV file into a campaign, using one of your saved import formats to map the columns.

The file is processed in the background after the upload is accepted.

Parameters

Send as application/x-www-form-urlencoded or, with a file, multipart/form-data.

  • typestringrequired

    Selects the operation. Always upload_file for this endpoint.

  • tokenstringrequired

    Your API token from Log in. See Authentication.

  • campaign_idintegerrequired

    ID of the campaign.

    Example 1024
  • formatstringrequired

    ID of the import format (column mapping) to apply.

    Example 12
  • datafilerequired

    The CSV file to upload.

  • file_typestringoptional

    File type. Defaults to csv.

    One ofcsv
Terminal window
curl https://api.dcdial.com/api/ \
-F type=upload_file \
-F token="$DCDIAL_TOKEN" \
-F campaign_id=1024 \
-F format=12 \
Response · 200 OK
{
"response": {
"success": 1,
"error": "",
"message": "File uploaded and queued for processing"
}
}

Try it

Environment