Skip to main content
GET
/
datastores
/
{datastore_id}
/
contents
/
{content_id}
/
metadata
Get Content Metadata
curl --request GET \
  --url https://api.contextual.ai/v1/datastores/{datastore_id}/contents/{content_id}/metadata \
  --header 'Authorization: Bearer <token>'
{
  "x0": 123,
  "y0": 123,
  "x1": 123,
  "y1": 123,
  "page": 123,
  "page_img": "<string>",
  "width": 123,
  "height": 123,
  "content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content_type": "unstructured",
  "content_text": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datastore_id
string<uuid>
required
content_id
required

Query Parameters

cursor
string

Response

Successful Response

  • UnstructuredContentMetadata
  • StructuredContentMetadata

Content type

x0
number
required

X coordinate of the top left corner on the bounding box.

y0
number
required

Y coordinate of the top left corner on the bounding box.

x1
number
required

X coordinate of the bottom right corner on the bounding box.

y1
number
required

Y coordinate of the bottom right corner on the bounding box.

page
integer
required

Page number of the content.

page_img
string
required

Image of the page on which the content occurs.

width
number
required

Width of the image.

height
number
required

Height of the image.

content_id
string<uuid>
required

Id of the content.

document_id
string<uuid>
required

Id of the document which the content belongs to.

content_text
string
required

Text of the content.

content_type
string
default:unstructured
Allowed value: "unstructured"
I