/guestLink/createGuestLink/¶
This endpoint creates a link that allows a guest to log in and upload one application.
The link remains valid until an application is submitted using it, or until it expires. The expiry period is configured against a customer account and is typically seven days.
Request
POST {{server}}/VPE/guestLink/createGuestLink/
Content-Type: application/json
Tid-Api-Key: xxx-xxx-xx
{
"SessionId": "...",
"DeviceId": "...",
"Email": "guest@domain.co.uk",
"Name": "Guest Name",
"BranchId": "...",
"ApplicationFlexibleFieldValues": [
{
"FlexibleFieldVersionId": "...",
"FieldValueString": "Software Development and IT Department"
},
...
],
"EmailSubjectOverride": null,
"EmailContentOverride": null,
"ContainerEventCallbackUrl": "https://www.my-company.co.uk/web-hooks/container-event-callback/",
"ContainerEventCallbackHeaders"::[
{
"Header":"Authorization",
"Value":"..."
}
],
"ClientApplicationReference": "MyReference",
"DigitalIdentificationScheme":1
}
- CreateGuestLinkRequest.Email¶
=
EmailThe email address of the guest. The invitation email containing the login link is sent to this address.
- CreateGuestLinkRequest.Name¶
=
NameThe name of the guest. This name is used in the invitation email and is also stored in the application’s guest name flexible field.
- CreateGuestLinkRequest.BranchId¶
=
BranchIdThe unique identifier of the branch to assign this guest application to. If this is not supplied, the application is assigned to the branch of the session account.
Note
To obtain a list of branches use /dataAccess/queryBranchesX/.
- CreateGuestLinkRequest.ApplicationFlexibleFieldValues¶
=
ApplicationFlexibleFieldValuesA list of application-level custom fields to attach to the guest scan.
{ "ApplicationFlexibleFieldValues": [ { "FlexibleFieldVersionId": "...", "FieldValueString": "Software Development and IT Department" } ] }
Property
Description
Flexible field identifier.
Flexible field value for string values.
Flexible field value for integer values.
Flexible field values for date values.
Flexible field values for decimal values.
See also
ApplicationFlexibleFieldValue for more information about application flexible field values.
- CreateGuestLinkRequest.SendEmail¶
=
SendEmailA flag to determine whether an email should be sent to the guest. The default value if this is omitted from the request is
true. If this is set tofalse, the link will be included in the response and it is the caller’s responsibility to pass this onto the guest.
- CreateGuestLinkRequest.EmailSubjectOverride¶
=
EmailSubjectOverrideAn optional property that can be used to override the default Subject used in the email sent to the guest. To use the default Subject when generating the email, omit this from the request.
- CreateGuestLinkRequest.EmailContentOverride¶
=
EmailContentOverrideAn optional property that can be used to override the default email body used in the email sent to the guest. To use the default email body when generating the email, omit this from the request.
Note
Only the first portion of the email body can be modified, the second portion is fixed. This value must be supplied as markdown; it is converted to HTML when sending the email.
- CreateGuestLinkRequest.ContainerEventCallbackUrl¶
=
ContainerEventCallbackUrlAn optional property which can be used to link “guest link” to specified callback url.
Note
This will override static address against your account.
- CreateGuestLinkRequest.ContainerEventCallbackHeaders¶
=
ContainerEventCallbackHeadersAn optional property containing a list of headers and values used with callbacks.
{ "ContainerEventCallbackHeaders": [ { "Header": "Authorization", "Value": "..." } ] }
Property
Description
ContainerEventCallbackHeaders.HeaderHeader property used with callbacks, following properties allowed: (Authorization).
ContainerEventCallbackHeaders.ValueValue of Header property.
- CreateGuestLinkRequest.ClientApplicationReference¶
=
ClientApplicationReferenceAn optional string that can be passed through, that allows for calling clients to add identifying information. This may be useful for the adding of context mapping, or linking your object ID’s to ours. This value will be included in request payload sent to your webhook.
- CreateGuestLinkRequest.DigitalIdentificationScheme¶
=
DigitalIdentificationSchemeAn optional property a digital identification scheme of the guest link.
See also
DigitalIdentificationScheme for more information about the digital identification scheme.
Response
{
...
"Success": true,
"Message": "Operation executed successfully.",
}
- CreateGuestLinkResponse.EmailSubject¶
=
EmailSubjectThe default email subject that will be used in the email sent to the guest. This is only included if you set operationMode = 1.
- CreateGuestLinkResponse.EmailContent¶
=
EmailContentThe default email body that will be used in the email sent to the guest. Note that this is not the entire body; only the overrideable first portion. This is only included if you set operationMode = 1.
- CreateGuestLinkResponse.LinkUrl¶
=
LinkUrlThe link that the guest should use to access the TrustID web client to upload their application. This is only included if you set operationMode = 0 and sendEmail = false.