Create Handshake API

Use this endpoint to register a handshake (also known as device session, flow session) with Attestr before launching the flow on user's device.

Request

TypeURL
POSThttps://api.attestr.com/api/{version}/public/flowx/handshake

Request Body Parameters

TypeNameDescriptionOptional (Default)Min VersionMax Version
StringflowId of the flow for which handshake is being registeredRequiredv1
StringsnapshotSnapshot version for the flow. Provide null if draft version of flow is being run.Requiredv1
StringtagAn identifier to uniquely identify the user / device eg. REF-1234Requiredv1
BooleanwebhookUse this flag to enable webhook eventsOptionalv1
NumberexpiryUnix timestamp in milliseconds for setting the expiry for the handshake. Default is 24 hours from the time handshake is created. Max. allowed value is 1 year. For more details on unix timestamp, read EpochConverterOptionalv1

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

Sample Request

JSON
Copy
JSON
Copy

Response

HTTP status code 200

KeyDescriptionTypeMin VersionMax Version
_idId of the handshakeStringv1
numberUnique human readable number for this handshakeStringv1
digestFor future useStringv1

Sample Response

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Sample Error Response

JSON
Copy

Error Codes

HTTP StatusError CodeError MessageDetail
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4004002Flow ID does not exist
40040034Requested flow is inactive
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your accountService name
4034039Client's IP address is not whitelisted
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard