Skip to main content
POST
/
api
/
v1
/
data
/
import
/
file
Import data via file upload
curl --request POST \
  --url https://{subdomain}.mindhunters.ai/api/v1/data/import/file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=Customer Data' \
  --form 'description=Imported customer data from XML file' \
  --form file=@example-file
{
  "success": true,
  "message": "File uploaded successfully and processing has begun",
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "type": "<string>",
    "path_url": "<string>",
    "path_ext": "<string>",
    "status": 123,
    "process": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

multipart/form-data
name
string
required
Example:

"Customer Data"

file
file
required

File to upload (CSV, Excel, JSON, PDF, XML, or Audio, max 128MB)

description
string | null
Example:

"Imported customer data from XML file"

Response

File successfully uploaded and processing started

success
boolean
Example:

true

message
string
Example:

"File uploaded successfully and processing has begun"

data
object