@speakeasy-sdks/sensible
TypeScript icon, indicating that this package has built-in type declarations

0.24.0 • Public • Published

The Document Orchestration Platform for Developers. Onboard documents in minutes with a single sample. Extract accurate data in seconds.

Run on Repl.it

SDK Installation

NPM

npm add @speakeasy-sdks/sensible

Yarn

yarn add @speakeasy-sdks/sensible

Authentication:

Sensible uses API keys to authenticate requests. Find your API key on your Account page in the Sensible app. If you're having trouble with your current key, please reach out to support@sensible.so. Keep your API keys secure and do not share them publicly accessible areas such as GitHub, client-side code, etc.

Authentication to the API is performed via Bearer Authentication. Provide your API key as the bearer auth value, for example:

curl --request POST \
       --url "https://api.sensible.so/v0/extract/<TYPE>" \
       --header "Authorization: Bearer <YOUR_API_KEY>" \
       --header "Content-Type: application/pdf" \
       --data-binary "@your_doc.pdf" \

SDK Example Usage

import { Sensible } from "@speakeasy-sdks/sensible";
import { ExtractDataJsonResponse } from "@speakeasy-sdks/sensible/dist/sdk/models/operations";
import { Environment, ExtractionStatus, ValidationSeverity } from "@speakeasy-sdks/sensible/dist/sdk/models/shared";

const sdk = new Sensible({
  security: {
    bearerAuth: "YOUR_BEARER_TOKEN_HERE",
  },
});

sdk.document.extractDataJson("corrupti", {
  document: "provident",
}, Environment.Development).then((res: ExtractDataJsonResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Available Resources and Operations

document

pdf

portfolio

results

SDK Generated by Speakeasy

/@speakeasy-sdks/sensible/

    Package Sidebar

    Install

    npm i @speakeasy-sdks/sensible

    Weekly Downloads

    45

    Version

    0.24.0

    License

    none

    Unpacked Size

    329 kB

    Total Files

    107

    Last publish

    Collaborators

    • ccrumbaugh
    • ghaidar-speakeasy
    • ndimares
    • thomasrooneyspeakeasy
    • speakeasysimon
    • tristanspeakeasy
    • simplesagar