🗄️ Datasources
Get Datasource
🗄️ Datasources
Get Datasource
This endpoint retrieves the details of a specific Datasource by its ID.
GET
/
v1
/
datasources
/
{id}
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources/{id}" \
--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-29T11:22:26.172Z",
"createdBy": "userID",
"name": "my_datasource",
"metadataFields": [
{
"name": "band",
"type": "string",
"description": "Which heavy metal band is represented by the iconic mascot Eddie?"
}
],
"sourcetype": "Text",
"autoExtract": false,
"createdAt": "2023-08-29T10:51:04.246Z",
"createdBy": "userId",
}
}
Auth Headers
An API key for your org.
A Client ID for your org.
Params
The unique identifier of the Datasource you wish to retrieve.
Response
The unique identifier of the Datasource.
Name of the Datasource.
An array of metadata fields, each with a name, type, and description.
Type of the Datasource.
Flag indicating whether auto-extraction is enabled or not.
Timestamp indicating when the Datasource was created.
ID of the user or key that created the Datasource.
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources/{id}" \
--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-29T11:22:26.172Z",
"createdBy": "userID",
"name": "my_datasource",
"metadataFields": [
{
"name": "band",
"type": "string",
"description": "Which heavy metal band is represented by the iconic mascot Eddie?"
}
],
"sourcetype": "Text",
"autoExtract": false,
"createdAt": "2023-08-29T10:51:04.246Z",
"createdBy": "userId",
}
}
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources/{id}" \
--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-29T11:22:26.172Z",
"createdBy": "userID",
"name": "my_datasource",
"metadataFields": [
{
"name": "band",
"type": "string",
"description": "Which heavy metal band is represented by the iconic mascot Eddie?"
}
],
"sourcetype": "Text",
"autoExtract": false,
"createdAt": "2023-08-29T10:51:04.246Z",
"createdBy": "userId",
}
}