POST
/
v1
/
imports
Request Data Import
curl --request POST \
  --url https://{environment}.userpilot.io/v1/imports \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
  "end_time": "<string>",
  "file_size": "<string>",
  "filename": "<string>",
  "job_id": "<string>",
  "links": "<string>",
  "start_time": "<string>",
  "status": "<string>",
  "total_rows": "<string>"
}

Headers

Content-Type
string
default:multipart/form-data
Accept
string
default:application/json
Authorization
string
default:Token ABC_1234_EFGH_5678
required

API authentication token in the format: Token {{API_KEY}} Obtain your API key from the Userpilot Environment Settings.

Body

multipart/form-data

Response

200
application/json

CSV - OK - Import job successfully created

The response is of type object.