Skip to main content
POST
cURL

File upload supported mime types

  • text/csv’
  • text/plain’
  • text/markdown’
  • application/pdf’
  • application/json’
  • application/vnd.openxmlformats-officedocument.presentationml.presentation
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Example JS Code to create a Datasource of type ‘file’

Example JS Code to create a Datasource of type ‘web_page’

Example JS Code to create a Datasource of type ‘web_site’ with a sitemap

Authorizations

Authorization
string
header
required

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

Body

file
file
required
type
enum<string>
required
Available options:
file
datastoreId
string
required
fileName
string
custom_id
string

Useful for multi-tenant setups

Response

Success

id
string
type
string
name
string
status
enum<string>
Available options:
unsynched,
pending,
running,
synched,
error,
usage_limit_reached
groupId
string
updatedAt
string<date>
createdAt
string<date>
lastSynch
string<date>
config
object