For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Signing Result

This endpoint allows the relying party (RP) to actively query the signing results and obtain the signed document after completion.

It is not recommended to use this endpoint for status polling as the webhook is more efficient. RPs do not need to invoke this API if the success signing webhook was captured.

Path

GET /sign-requests/:request_id/signed-doc

Headers

Name
Value

Content-Type

application/json

Authorization

<token>

Authorization token

RP should sign the signature parameter into a JWT token as authorization token.

  • Token Type: Standard JWT (JSON Web Token)

  • Payload:

    • exchange_code: The exchange_code returned when initiate sign request.

    • jti: Standard JWT ID, a unique identifier for the JWT, must be a UUID.

    • iat & exp: Standard Issued At / Expiration timestamp of JWT. Must issued within 2 minutes.

Example:

Body

Empty

Response

  • signed_doc_url: Where you can download the signed document.

  • signer_info : an object containing the following information:

    • signer_name : Name of the signer as per the user cert CN

    • signer_partial_uinfin : The last 4 alphanumerical value of the signer's NRIC

    • signed_at : Unix timestamp in milliseconds of when the user completed the sign request.

  • exp: Expiration time (in UNIX second) of signed_doc_url .

There may be a few scenarios under which you will receive a 400 error:

  • DOCUMENT_NOT_SIGNED: The user has not signed the document yet and the request has not expired yet

  • REQUEST_EXPIRED: The request has expired without the user signing the document.

  • SIGNED_ACCESS_EXPIRED: The document has been signed, but can no longer be retrieved via this endpoint as the 1h access period has passed.

Sample request

Last updated