Skip to content
Hydda One API
Esc
↑↓navigate↵open⌘Jpreview

Get an upload address for the signed PDF

The first step of reporting a signature. On 200, PUT the signed PDF to uploadUrl within 5 minutes, then report signed with its objectKey. A new request replaces the previous address. A 204 means the attempt is not out for signature, for example because it already ended, so there is nothing to upload.

POST/v1/crm/signing-attempts/{attemptId}/signed-document-upload
Authorization
AuthorizationOAuth2 access token · headerrequired

An access token for an Application, from the client_credentials grant. An integration of your own uses the same grant. A connector from Hydda gets its token from the installation-token grant instead. Send it as Authorization: Bearer <token>.

Path parameters
attemptIdstring<uuid>required

The attemptId of the signing attempt, from the signing queue or the withdrawal queue.

Request body
requiredapplication/json
contentTypestringrequired

The signed document's media type. Only application/pdf is accepted.

Allowed:application/pdf
sizeBytesintegerrequired

The exact size of the signed PDF in bytes, up to 26214400 (25 MB). The upload must be this size.

max 26214400
Responses
200

The address to upload the signed PDF to.

uploadUrlstringrequired

A presigned address. PUT the PDF there with the declared Content-Type and exact Content-Length.

objectKeystringrequired

Identifies the uploaded file. Pass it back once the upload is done.

expiresAtstring<date-time>required

When the upload address stops working, as an ISO 8601 UTC timestamp.

204

The attempt is not out for signature, so no upload address was issued.

400

The request is not valid, or a business rule refused it. code names the rule.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request, when the failure has one. Match on this, not on detail.

Allowed:VALIDATION_FAILED
parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

401

The access token is missing, expired or not valid.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request. Match on this, not on detail.

parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

403

The token does not allow this request.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request. Match on this, not on detail.

parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

404

The resource does not exist, or the token cannot see it.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request. Match on this, not on detail.

parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

Request
curl -X POST 'https://api.hydda.one/v1/crm/signing-attempts/497f6eca-6276-4993-bfeb-53cbbbba6f08/signed-document-upload' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "contentType": "application/pdf",
  "sizeBytes": 1
}'
Response
{
  "uploadUrl": "string",
  "objectKey": "string",
  "expiresAt": "2019-08-24T14:15:22Z"
}