Skip to content

Get an upload URL for a PDF to verify

POST
/verify/upload
curl --request POST \
--url https://api-sandbox.trustink.io/verify/upload

Answers a presigned URL to PUT a PDF to (up to 25 MB, Content-Type: application/pdf, valid 15 minutes) and the key for POST /verify. The upload goes straight to S3 because API Gateway takes at most 10 MB of body; it is deleted once verified, or after a day. No body. See Verification.

Where to PUT the PDF.

Media typeapplication/json
object
key
required
string
url
required
string
method
required
string
Allowed values: PUT
headers
required
object
Content-Type
required
string
Allowed values: application/pdf
expiresAt
required
string
maxSize
required
number
Example
{
"method": "PUT",
"headers": {
"Content-Type": "application/pdf"
}
}

Too many requests to the public routes: API Gateway throttles them (it answers {message} only); try again shortly.

Media typeapplication/json
object
code
string
message
required
string
Examplegenerated
{
"code": "example",
"message": "example"
}

Something failed on the platform, or the request timed out (code TIMEOUT, 503); try again.

Media typeapplication/json
object
code
string
message
required
string
Examplegenerated
{
"code": "example",
"message": "example"
}