curl --request POST \
--url https://sandbox.circularo.com/api/v1/files/signature \
--header 'Authorization: Bearer <token>' \
--form 'bottom=200' \
--form 'left=0' \
--form 'right=400' \
--form 'signature=@document.pdf' \
--form 'top=0'{
"id": "e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Upload a signature image
POST /files/signature
Takes an image of a handwritten signature and stores it as the picture that gets stamped into a document when the caller signs. The image is normalised on the way in: turned upright if it carries an orientation, scaled down to the largest size the tenant allows for a signature, and stored as PNG - so a transparent source keeps its transparency and sits on the page without a box around it, while an opaque scan stays opaque.
The image may be cropped first: give the rectangle to keep, in pixels of the image as uploaded, all four corners together or none at all.
This only stores the image; which one a user signs with is set through their own profile.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request POST \
--url https://sandbox.circularo.com/api/v1/files/signature \
--header 'Authorization: Bearer <token>' \
--form 'bottom=200' \
--form 'left=0' \
--form 'right=400' \
--form 'signature=@document.pdf' \
--form 'top=0'{
"id": "e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}