Send Validation Code (Step 1)

Description

This service is used to resend a new validation code to a registered user.


Request

Restrictions

For a registered person to obtain a code, an automatic communication must be configured using the replacement variables ${partyValidatorCode.sms} or ${partyValidatorCode.email}. Additionally, a "register" or "opt_in" interaction must be configured as the trigger.

Endpoint

POST https://<server-url>/api/v4/person/validationcode

Parameters

Parameter
Location
Description

touchpoint

Query / Header

The identifier for the touchpoint making the request. If sent as a header, the name must be Thalamus-Touchpoint.

token

Query / Header

The authentication token for the API. If sent as a header, the name must be Thalamus-Token.

Content-Type

Header

Specifies the content type of the request body. Must be application/json.

Full URL Example

https://<server-url>/api/v4/person/validationcode?touchpoint=test&token=testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest

Request Body

The body of the request must be a JSON object containing the user's principal identifier.

Field
Type
Description

principal

String

The primary identifier for the user, such as [email protected].

JSON

{
  "principal": "[email protected]"
}

Last updated

Was this helpful?