Get envelope

This endpoint allows you to query the Yoti Sign API for the current state of an envelope request:

HTTP
Copy
HTTP
Copy

Header explained

The following elements are needed:

HeaderDescription
Authorization (header)API Key to call the Yoti Sign API. This should be sent as a bearer token.
Content-Type (header)multipart/form-data

Response

On success, we return a 200 with a JSON body matching the following schema. The response seen whilst the files are being processed and the envelope is being sealed is shown below:

JSON
Copy

Click the tabs for different status responses:

Active
Archived
Completed
Errored
Copy

For a completed envelope, and extra details which are included in the response will appear as 'tags' in the response body.

Status

This is the status of the envelope.

StatusDescription
QUEUEDThe envelope is being processed, before being sent to the recipients.
ACTIVEThe envelope has been successfully sent to recipients.
ARCHIVEDThe envelope has been archived.
COMPLETEThe envelope has been signed by all the recipients.
ERROREDThere has been an error in the creation of the envelope

Details

This will contain all the relevant details for the envelope including recipients or errors.

Sign_Status

This is the status of the envelope.

StatusDescription
SIGNED

The envelope has been signed.

  • An additional signed_at field is populated on the recipient object with the ISO string timestamp of the signing time.
UNSIGNEDThe envelope has not been signed.

Additional

These fields will appear in certain scenarios:

AttributeDescription
errorsIf an error occurs then you will be provided with the file name causing the error if applicable and an error message (see below for a list of error messages)
signed_atUTC Timestamp for when the recipient has signed the document
archived_atUTC Timestamp for when the envelope has been Archived

Example code

Javascript
Java
PHP
C#
Go
Copy

Error codes

If the request is unsuccessful a response code and a message will be sent:

ResponseDescription
400Bad Request, example: id provided not a UUID
401Unauthorised request, example: requesting the status on an envelope you are not authorized to view
403Forbidden, requesting user did not create the envelope
404The envelope ID couldn’t be found
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard