Certificates
This object is used to get the certificate(s) of mailing (COM) and certificate(s) of delivery (COD) with the help of shipper hash and S3Path of certificates.
URL Config
Endpoint: https://api.dps.io/api
APIVersion: v1
route: downloads
path:
Method
POST
URL
https://api.dps.io/api/v1/downloads
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
For downloading certificate of mailing use COM Request Body
COM Request Body
{
"Key": "UserCertificates/7z2PC****essbzAg/1yQghF****CDPvr8b3/R1/COM.pdf",
}
For downloading certificate of delivery use COD Request Body
COD Request Body
{
"Key": "UserCertificates/7z2PC****essbzAg/1yQghF****CDPvr8b3/R1/COD.pdf",
}
Curl request
curl --location --request POST 'https://api.dps.io/api/v1/downloads' \
--header 'x-api-key: xxxxxxdfjbdjdfjdhfxxxxxxx' \
--header 'ShipperHash: 05K9G************BJG6a'
--data-raw '{
"Key": "UserCertificates/7z2PC****essbzAg/1yQghF****CDPvr8b3/R1/COM.pdf",
}'
Response
{
"Url": "<ceritifcate preview url>",
"ContentType": "application/pdf"
}