# 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",
}
}
🗄️ 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
string
required
An API key for your org.
string
required
A Client ID for your org.
Params
string
required
The unique identifier of the Datasource you wish to retrieve.
Response
Datasource Object
Show properties
Show properties
string
The unique identifier of the Datasource.
string
Name of the Datasource.
array
An array of metadata fields, each with a name, type, and description.
string
Type of the Datasource.
boolean
Flag indicating whether auto-extraction is enabled or not.
string
Timestamp indicating when the Datasource was created.
string
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",
}
}
⌘I