List of all Datasources
Endpoint Name: getdatasource
Request type : POST
Authorization: Bearer token as header
Endpoint Details: The getdatasource endpoint will be used to get list and details of all datasources.
Method
URL
POST
URL/access/klearstack/getdatasource
Request Body
Params
Values
Required
Description
company_name
string
Yes
Name of the company for which the user is logging in
Shell (cURL)
Request Body
curl --location "URL/access/klearstack/getdatasource" \
--header "Authorization: Bearer your_token_here" \
--form "company_name=Replace_Company_Name_Here"Python
Request Body
Java (OkHttp)
Request Body
Node.js (Axios)
Request Body
JavaScript (XHR)
Request Body
API Response
Status code
Example Response
200
[{
"DataSourceName": "Twi mapping",
"field_name": [{
"name": "Customer",
"datatype": "string"
},
{
"name": "Customer name in traze",
"datatype": "string"
}
],
"DataSourceType": "excel_or_csv",
"DataSourceStatus": "true"
},
{
"DataSourceName": "hb",
"field_name": [{
"name": "USER_FIRST_NAME",
"datatype": "string"
},
{
"name": "USER_LAST_NAME",
"datatype": "string"
}
],
"DataSourceType": "excel_or_csv",
"DataSourceStatus": "true"
}
]
Last updated