Skip to main content
POST
Create passport document

Authorizations

Authorization
string
header
required

An InsightChain API key: ic_live_... for your organization, ic_test_... for its sandbox

Path Parameters

id
required

The record's id (a UUID), or ext:<external_id> with your own id for it, URL-encoded

Body

application/json
external_id
string
required

Your id for the document; sending it again replaces the document: upload the file again to the new URL

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_.:@/-]+$
kind
enum<string>
required

The kind of document

Available options:
certificate,
test_report,
declaration_of_conformity,
care_label,
image,
repair_manual,
disassembly_guide,
other
title
string
required
Maximum string length: 300
content_type
enum<string>
required

The media type of the file you will upload

Available options:
application/pdf,
image/png,
image/jpeg,
image/webp,
text/plain
size_bytes
integer
required

The file's size in bytes

Required range: 1 <= x <= 10485760
min_audience
enum<string>
default:authority

Who may see it

Available options:
consumer,
recycler,
authority,
internal
issuer
string
Maximum string length: 200
standard_ref
string
Maximum string length: 120
valid_from
string<date>
valid_until
string<date>

On or after valid_from

Response

Created

document
object
required
upload_url
string
required

PUT the file here; the link is short-lived

upload_token
string
required
request_id
string
required

Quote this when asking about the request; also the X-Request-ID header