Syndai Docs

Open a document

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/external/coding/customers/{customer_id}/documents/{document_id}

One document: its fields, its text and a link to the file that works for 15 minutes. Owners and admins only.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
document_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
amount_minor?integer|null
confidence*number
created_at*string
Formatdate-time
currency?string|null
duplicate_candidates?integer
Default0
duplicates?array<>
entity_id?|null
fields*array<>
id*string
Formatuuid
is_duplicate?boolean
Defaultfalse
kind*string
matched_transaction_id?|null
method*string
mime*string
name*string
occurred_on?string|null
pages*integer
project_id?|null
reviewed_at?|null
sha256*string
size_bytes*integer
status*string
text*string
url*string
url_expires_at*string
Formatdate-time
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "amount_minor": 0,  "confidence": 0,  "created_at": "2019-08-24T14:15:22Z",  "currency": "string",  "duplicate_candidates": 0,  "duplicates": [    {      "amount_minor": 0,      "currency": "string",      "decision": "pending",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "duplicate_document_id": "2c52f236-67b5-4095-8b88-1219a49d267d",      "entity_id": "8161163a-f227-466f-bc01-090a01e80165",      "entity_name": "string",      "name": "string",      "occurred_on": "string",      "review_token": "string"    }  ],  "entity_id": "8161163a-f227-466f-bc01-090a01e80165",  "fields": [    {      "confidence": 0,      "confirmed": true,      "edit_value": "string",      "key": "string",      "label": "string",      "needs_review": true,      "value": null    }  ],  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "is_duplicate": false,  "kind": "string",  "matched_transaction_id": "9a05f196-d636-4dd6-a334-fee9d01e4b49",  "method": "string",  "mime": "string",  "name": "string",  "occurred_on": "string",  "pages": 0,  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "reviewed_at": "2019-08-24T14:15:22Z",  "sha256": "string",  "size_bytes": 0,  "status": "string",  "text": "string",  "url": "string",  "url_expires_at": "2019-08-24T14:15:22Z"}
Was this page helpful?