Get an upload URL for a PDF to verify
POST
/verify/upload
const url = 'https://api-sandbox.trustink.io/verify/upload';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-sandbox.trustink.io/verify/uploadAnswers 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.
Responses
Section titled “ Responses ”Where to PUT the PDF.
Media typeapplication/json
object
key
required
string
url
required
string
method
required
string
headers
required
object
Content-Type
required
string
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"}default
Section titled “default”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"}