Skip to main content
GET
/
v1
/
datasources
/
{datasourceID}
/
data-entities
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources/{datasourceID}/data-entities" \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
  "data": [
    {
      "id": "id1",
      "datasource": "datasourceID",
      "name": "record_deal.pdf",
      "extractedMetadata": [
        {
          "name": "band",
          "value": "Iron Maiden",
          "type": "string"
        }
      ],
      "sourceType": "File",
      "status": "Active",
      "createdAt": "2023-08-29T10:51:04.246Z",
      "updatedAt": "2023-08-29T10:51:04.246Z",
      "metadataFields": [
        {
          "name": "band",
          "type": "string",
          "description": "Which band is this record deal for?"
        }
      ],
      "createdBy": "userID"
    },
    {
      "id": "id2",
      "datasource": "datasource_id",
      "name": "concert_list.docx",
      "extractedMetadata": [
        {
          "name": "Venue",
          "value": "Glastonbury",
          "type": "string"
        }
      ],
      "sourceType": "File",
      "status": "Active",
      "createdAt": "2023-08-29T10:51:04.246Z",
      "updatedAt": "2023-08-29T10:51:04.246Z",
      "metadataFields": [
        {
          "name": "band",
          "type": "string",
          "description": "Where is the next concert at?"
        }
      ],
      "createdBy": "userID"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.getmetal.io/llms.txt

Use this file to discover all available pages before exploring further.

Auth Headers

x-metal-api-key
string
required
An API key for your org.
x-metal-client-id
string
required
A Client ID for your org.

Query

limit
integer
The maximum number of data entities to return. Default is 10.
page
integer
The starting position for the query. Useful for pagination.

Response

data
array
# Example Request
curl -X GET "https://api.getmetal.io/v1/datasources/{datasourceID}/data-entities" \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>'
{
  "data": [
    {
      "id": "id1",
      "datasource": "datasourceID",
      "name": "record_deal.pdf",
      "extractedMetadata": [
        {
          "name": "band",
          "value": "Iron Maiden",
          "type": "string"
        }
      ],
      "sourceType": "File",
      "status": "Active",
      "createdAt": "2023-08-29T10:51:04.246Z",
      "updatedAt": "2023-08-29T10:51:04.246Z",
      "metadataFields": [
        {
          "name": "band",
          "type": "string",
          "description": "Which band is this record deal for?"
        }
      ],
      "createdBy": "userID"
    },
    {
      "id": "id2",
      "datasource": "datasource_id",
      "name": "concert_list.docx",
      "extractedMetadata": [
        {
          "name": "Venue",
          "value": "Glastonbury",
          "type": "string"
        }
      ],
      "sourceType": "File",
      "status": "Active",
      "createdAt": "2023-08-29T10:51:04.246Z",
      "updatedAt": "2023-08-29T10:51:04.246Z",
      "metadataFields": [
        {
          "name": "band",
          "type": "string",
          "description": "Where is the next concert at?"
        }
      ],
      "createdBy": "userID"
    }
  ]
}