Files API
Download the original PDF, the signed PDF and the certificate of completion.
Download the original PDF
/v1/envelopes/{id}/files/originalThe PDF as uploaded (several files merged into one), named <title>.pdf.
Required scope:envelopes:read
Path parameters
idstring · uuidrequiredEnvelope id.
Response
Binary PDF (application/pdf) with Content-Disposition: attachment.
Response headers: Content-Disposition, X-Request-Id, Signkoi-Version, X-RateLimit-Limit, X-RateLimit-Remaining.
Errors
- 401Missing, invalid, expired or revoked API key (
api_key_missing,invalid_api_key). - 403The key lacks a required scope (
insufficient_scope) or the account is suspended (account_suspended). - 404No such resource, or it belongs to someone else (
resource_missing, e.g. "No such envelope." / "No such recipient."). - 429Too many requests (
rate_limited): your key's per-minute limit, or an endpoint's own limit. Wait forRetry-Afterseconds. - 500Something went wrong on our side (
internal_error). Safe to retry with the same Idempotency-Key.
Every error uses the error object.
Example request
curl https://signkoi.com/api/v1/envelopes/9b2f4c1e-7a3d-4e8b-9c51-2d6f8a0b3e47/files/original \
-H "Authorization: Bearer $SIGNKOI_API_KEY" \
-o original.pdfDownload the signed PDF
/v1/envelopes/{id}/files/signedThe completed, digitally sealed PDF with every signature and value, named <title> (signed).pdf. 404 file_not_ready until the envelope is completed.
Required scope:envelopes:read
Path parameters
idstring · uuidrequiredEnvelope id.
Response
Binary PDF (application/pdf) with Content-Disposition: attachment.
Response headers: Content-Disposition, X-Request-Id, Signkoi-Version, X-RateLimit-Limit, X-RateLimit-Remaining.
Errors
- 401Missing, invalid, expired or revoked API key (
api_key_missing,invalid_api_key). - 403The key lacks a required scope (
insufficient_scope) or the account is suspended (account_suspended). - 404No such envelope (
resource_missing), or it is not completed yet (file_not_ready). - 429Too many requests (
rate_limited): your key's per-minute limit, or an endpoint's own limit. Wait forRetry-Afterseconds. - 500Something went wrong on our side (
internal_error). Safe to retry with the same Idempotency-Key.
Every error uses the error object.
Example request
curl https://signkoi.com/api/v1/envelopes/9b2f4c1e-7a3d-4e8b-9c51-2d6f8a0b3e47/files/signed \
-H "Authorization: Bearer $SIGNKOI_API_KEY" \
-o signed.pdfDownload the certificate of completion
/v1/envelopes/{id}/files/certificateThe certificate of completion with the audit trail, named <title> (certificate).pdf. 404 file_not_ready until the envelope is completed.
Required scope:envelopes:read
Path parameters
idstring · uuidrequiredEnvelope id.
Response
Binary PDF (application/pdf) with Content-Disposition: attachment.
Response headers: Content-Disposition, X-Request-Id, Signkoi-Version, X-RateLimit-Limit, X-RateLimit-Remaining.
Errors
- 401Missing, invalid, expired or revoked API key (
api_key_missing,invalid_api_key). - 403The key lacks a required scope (
insufficient_scope) or the account is suspended (account_suspended). - 404No such envelope (
resource_missing), or it is not completed yet (file_not_ready). - 429Too many requests (
rate_limited): your key's per-minute limit, or an endpoint's own limit. Wait forRetry-Afterseconds. - 500Something went wrong on our side (
internal_error). Safe to retry with the same Idempotency-Key.
Every error uses the error object.
Example request
curl https://signkoi.com/api/v1/envelopes/9b2f4c1e-7a3d-4e8b-9c51-2d6f8a0b3e47/files/certificate \
-H "Authorization: Bearer $SIGNKOI_API_KEY" \
-o certificate.pdf