Datastores & Datasources
Create Datasource
POST
/
datasources
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
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
file
file
requiredfileName
string
Optional name for the uploaded file. If not provided, the original file name will be used.
type
enum<string>
requiredAvailable options:
file
datastoreId
string
requiredcustom_id
string
Optional custom ID, useful for multi-tenant configurations to filter data later.
Response
200 - application/json
id
string
type
enum<string>
Available options:
file
, web_page
, web_site
, qa
name
string
status
enum<string>
Available options:
unsynched
, pending
, running
, synched
, error
, usage_limit_reached
groupId
string | null
updatedAt
string
createdAt
string
lastSynch
string | null
config
object
Was this page helpful?