OTP Consent Requests

For a full version, please see the board here.
Consent Requests with OTP
Start the Consent Process
The process for obtaining ETK and/or KVKK begins by using the consent method. A consent request is sent to the recipient, which includes:
"Aydınlatma Metni" and "Onay Metni"
One-time password (OTP) for verification.
A
requestId, which serves as a reference ID for the operation.
ETK Consent Parameters
consentTypes
Array of Objects
Includes the consent type details.
Yes
title
String
Type of consent (e.g., ETK).
Yes
types
Array of Strings
Specifies the communication channel(s) through which the approval is requested.["ARAMA"] for phone calls
["MESAJ"] for messages
["ARAMA", "MESAJ"] for both
["EPOSTA"] for email
Yes
recipientType
String
Type of recipient (BIREYSEL or TACIR).
Yes
formId
String
ID of the form sent to the recipient.
Yes
recipient
String
Recipient's phone number or email address.
Yes
verificationType
String
Specifies the approval method (SMS or email OTP). For SMS, it is SMS_OTP, and for email, it is EPOSTA_OTP.
Yes
referenceID
String
This identifier is used to create or update user records in the Netmera system.
Yes
Sample ETK Requests
ETK Request SMS OTP
Successful Response (HTTP 200)
ETK Request Email OTP
Successful Response (HTTP 200)
Invalid ETK Requests
In case of a failed request, the response will include the following fields:
message(String): The error message that describes the issue with the request.code(String): The error code from the IYS system indicating the specific issue.value(String) (This field may return the invalid value depending on the type of error, or it may be omitted): The invalid value that caused the error.
Invalid ETK SMS OTP Request
Case: formId does not match the expected type for the given verificationType.
Error Response (HTTP 400)
Invalid ETK Email OTP Request
Case: recipientType is missing in the request body.
Error Response (HTTP 400)
KVK Parameters
consentTypes
Array of Objects
Yes
Contains details about the type of consent requested.
title
String
Yes
Type of form sent to the recipient. For KVK consent, this field must be set as "KVK".
types
Array of Strings
Yes
Consent types for KVK. Possible values: "AYDINLATMA_METNI", "ACIK_RIZA_METNI", "YURTDISI_AKTARIM".
formId
String
Yes
ID of the form sent to the recipient. The corresponding consent form will be sent to the recipient based on this ID. Obtainable via the İYS Web.
verificationType
String
Yes
The method for obtaining consent. "SMS_OTP" for SMS and "EPOSTA_OTP" for email OTP.
recipient
String
Yes
Contact information of the recipient. Either a phone number or email address where the consent request will be sent.
personData
Object
Required for KVK
Contains recipient details if KVK consent requires personal information.
name
String
Required for KVK
Recipient's full name.
recipientIdNumber
String
Required for KVK
Recipient's Turkish ID number.
address
String
Required for KVK
Recipient's address information.
Sample KVK Requests
KVK Request SMS OTP
Successful Response (HTTP 200)
KVK Request Email OTP
Successful Response (HTTP 200):
Invalid KVK Requests
In case of a failed request, the response will include the following fields:
message(String): The error message that describes the issue with the request.code(String): The error code from the IYS system indicating the specific issue.value(String) (This field may return the invalid value depending on the type of error, or it may be omitted): The invalid value that caused the error.
Invalid KVK SMS OTP
Case: The recipientIdNumber field contains an improperly formatted ID number.
Error Response (HTTP 400)
Invalid KVK Email OTP Request
Case: The title field contains an unexpected value.
Error Response (HTTP 400)
ETK & KVK Requests
For ETK approval: The request must include the following fields:
Verification Method (
verificationType)Recipient's Communication Address (
recipient)Communication Channel (
types)Recipient Type (
recipientType)Approval Type (
title)Form ID (
formId) (The ID of the approval form to be sent to the recipient)
For KVK approval: The request must include the following fields:
Verification Method (
verificationType)Recipient's Communication Address (
recipient)Recipient's Full Name (
name)Recipient's National ID Number (
recipientIdNumber)Recipient's Address Information (
address)Approval Type (
title)Form ID (
formId) (The ID of the approval form to be sent to the recipient)
ETK & KVK SMS OTP Request
Successful Response (HTTP 200)
ETK & KVK Email OTP Request
Successful Response (HTTP Code: 200)
Invalid ETK & KVK Requests
In case of a failed request, the response will include the following fields:
message(String): The error message that describes the issue with the request.code(String): The error code from the IYS system indicating the specific issue.value(String) (This field may return the invalid value depending on the type of error, or it may be omitted): The invalid value that caused the error.
Invalid ETK & KVK SMS OTP Request
Case: personData field is missing.
Error Response (HTTP 400)
Invalid ETK & KVK Email OTP Request
Case: types field is missing.
Error Response (HTTP 400):
Last updated
Was this helpful?