POST
/
v0
/
imports
curl --request POST \
  --url https://api.exa.ai/websets/v0/imports \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "size": 123,
  "count": 123,
  "title": "<string>",
  "format": "csv",
  "metadata": {},
  "entity": {
    "type": "company"
  },
  "csv": {
    "identifier": 1
  }
}'
{
  "id": "<string>",
  "object": "import",
  "status": "pending",
  "format": "csv",
  "entity": {
    "type": "company"
  },
  "title": "<string>",
  "count": 123,
  "metadata": {},
  "failedReason": "invalid_format",
  "failedAt": "2023-11-07T05:31:56Z",
  "failedMessage": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "uploadUrl": "<string>",
  "uploadValidUntil": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Exa API key

Body

application/json

Response

201 - application/json

Import created successfully

The response to a successful import. Includes the upload URL and the upload valid until date.