POST
/
document_types
/
{type-id}
/
goldens
curl --request POST \
  --url https://api.sensible.so/v0/document_types/{type-id}/goldens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "best_scan_form_num_1234",
  "configuration": "anyco_auto_insurance_quote"
}'
{
  "name": "best_scan_form_num_1234",
  "created": "2023-11-07T05:31:56Z",
  "configuration": "anyco_auto_insurance_quote",
  "error": "<string>",
  "upload_url": "<string>",
  "download_url": "<string>",
  "thumbnail_url": "<string>"
}

Authorizations

Authorization
string
header
required

Sensible uses API keys to authenticate requests. 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.

Path Parameters

type-id
string
required

The unique document type identifier in v4 UUID format. Find IDs using the /document_types endpoint.

Body

application/json

Upload url for putting the document

name
string
required

Unique user-friendly name for a document

configuration
string

User-friendly name of the configuration to associate to the reference document

Required string length: 3 - 128

Response

200
application/json
The created reference document
name
string
required

Unique user-friendly name for a document

created
string
required

ISO 8601 date-time.

configuration
string

User-friendly name of the configuration to associate to the reference document

Required string length: 3 - 128
error
string

Any errors that occurred processing the reference document

upload_url
string

If present, the URL to which a reference document can be PUT

download_url
string

If present, the URL to GET to retrieve the reference document

thumbnail_url
string

If present, the URL to GET to retrieve a thumbnail image of the first page of the reference document