🗄️ Datasources
List Datasources
🗄️ Datasources
List Datasources
This endpoint retrieves a list with all Datasources available for the authenticated org.
GET
/
v1
/
datasources
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources" \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
"data": [
{
"id": "datasourceID",
"createdAt": "2023-08-22T21:49:26.564Z",
"createdBy": "000000000000000000000000",
"name": "my-data-source-1",
"metadataFields": [
{
"name": "band",
"type": "string",
"description": "Which heavy metal band is represented by the iconic mascot Eddie?"
}
],
"sourcetype": "File",
"autoExtract": true
},
{
"id": "id2",
"createdAt": "2023-08-22T21:49:26.564Z",
"createdBy": "userID",
"name": "my-data-source-2",
"metadataFields": [
{
"name": "year",
"type": "number",
"description": "In what year was the debut album featuring Eddie released?"
}
],
"sourcetype": "File",
"autoExtract": false
}
],
}
Auth Headers
An API key for your org.
A Client ID for your org.
Query Parameters
Number of Datasources to retrieve per request (optional).
Number to start pagination from (optional).
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources" \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
"data": [
{
"id": "datasourceID",
"createdAt": "2023-08-22T21:49:26.564Z",
"createdBy": "000000000000000000000000",
"name": "my-data-source-1",
"metadataFields": [
{
"name": "band",
"type": "string",
"description": "Which heavy metal band is represented by the iconic mascot Eddie?"
}
],
"sourcetype": "File",
"autoExtract": true
},
{
"id": "id2",
"createdAt": "2023-08-22T21:49:26.564Z",
"createdBy": "userID",
"name": "my-data-source-2",
"metadataFields": [
{
"name": "year",
"type": "number",
"description": "In what year was the debut album featuring Eddie released?"
}
],
"sourcetype": "File",
"autoExtract": false
}
],
}
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources" \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
"data": [
{
"id": "datasourceID",
"createdAt": "2023-08-22T21:49:26.564Z",
"createdBy": "000000000000000000000000",
"name": "my-data-source-1",
"metadataFields": [
{
"name": "band",
"type": "string",
"description": "Which heavy metal band is represented by the iconic mascot Eddie?"
}
],
"sourcetype": "File",
"autoExtract": true
},
{
"id": "id2",
"createdAt": "2023-08-22T21:49:26.564Z",
"createdBy": "userID",
"name": "my-data-source-2",
"metadataFields": [
{
"name": "year",
"type": "number",
"description": "In what year was the debut album featuring Eddie released?"
}
],
"sourcetype": "File",
"autoExtract": false
}
],
}