MetadataList document metadata fieldsget

List document metadata fields

Lists extracted metadata fields for a document, including confidence and citations where available.

curl -X GET "https://api.textmine.com/v3/documents/123/metadata" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
[
  {
    "fieldId": 9001,
    "name": "Governing law",
    "type": "text",
    "value": "England and Wales",
    "status": "validated",
    "confidence": 0.93,
    "citations": [
      {
        "pageNumber": 4,
        "snippet": "This agreement is governed by the laws of England and Wales."
      }
    ]
  }
]
GET
/v3/documents/{documentId}/metadata
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
documentIdinteger
Required

Document ID.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

Responses

fieldIdinteger
namestring
typestring
valuestring
statusstring
confidencenumber
citationsarray