POST
/
{workspaceId}
/
files
/
extract
/
tables
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  apiKey: "<YOUR_API_KEY_HERE>",
  workspaceId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
});

async function run() {
  const result = await intunedClient.files.extractTables.sync({
    file: {
      type: "pdf",
      source: {
        type: "url",
        data: "https://intuned.io/example.pdf",
      },
    },
  });

  // Handle the result
  console.log(result);
}

run();
{
"operationId": "aaaabbbCCCCdddd",
"status": "completed",
"result": [
{
"pageNumber": 1,
"title": "Customers",
"content": [
[
"Number",
"Name"
],
[
1,
"John Doe"
]
]
}
]
}

Authorizations

x-api-key
string
header
required

API Key used to authenticate your requests. How to create one.

Path Parameters

workspaceId
string
required

Your workspace ID. How to find it?

Body

application/json

Response

200
application/json

The extracted tables

Table extraction result Successful file extraction result