JSON Post API
To add a mobile phone number that you do not want to receive SMS to your blocked number list, send it to the server in JSON format using the HTTP POST method. Follow the instructions below.
Request URL
POSThttps://api.iletimerkezi.com/v1/consent/show/jsonRequest Body
{
"request": {
"authentication": {
"key": "",
"hash": ""
},
"consent": {
"brandCode": "696422",
"type": "MESAJ",
"recipient": "+90505xxxxxxx veya [email protected]",
"recipientType": "BIREYSEL"
}
}
}
Definitions
The request sent to the server must be wrapped with the request tag. Definitions for its child tags are as follows:
authentication
Contains information about the transaction status. The values returned with this tag can also be obtained by looking at the header information of the HTTP response. This tag is returned as standard in every request made. Its subtags are as follows
key: After logging into your iletimerkezi.com panel, the API Key that you can create from the settings section should be written in this field. It is mandatory to send it when making a request.
hash: After logging into your iletimerkezi.com panel, the hash created using the API Key and Secret Key, which you can create from the settings section, should be written in this field. It is mandatory to send it when making a request.
consent
Tag that contains the consent information to be checked.
- brandCode: The code of the brand whose consent information will be queried.
- type: Consent type. Can be MESAJ, EPOSTA, or ARAMA.
- recipient: The phone number or email address whose consent will be queried.
- recipientType: The list type for the consent query. Can be BIREYSEL or TACIR.
Server Response
{
"response": {
"status": {
"code": 200,
"message": "İşlem başarılı"
},
"consent": {
"brandCode": 696422,
"recipient": "+90505xxxxxxx veya [email protected]",
"recipientType": "BIREYSEL",
"type": "MESAJ",
"status": "ONAY",
"source": "HS_WEB",
"consentDate": "2025-12-10 00:00:00"
}
}
}
Definitions
The server response is always wrapped in the response tag. Definitions for its child tags are as follows:
status
Contains information about the transaction status. The values returned with this tag can also be obtained by looking at the header information of the HTTP response. This tag is returned as standard in every request made. Its subtags are as follows
- code: It is a numeric value indicating the process status.
- message: Contains information message about the process status.
consent
Tag that contains the consent information returned by the server.
- brandCode: The code of the brand shown in the response.
- type: Consent type. One of MESAJ, EPOSTA, or ARAMA.
- recipient: The phone number or email address for which the consent was queried.
- recipientType: The list type for the queried consent. BIREYSEL or TACIR.
- status: Consent status. Can be ONAY (approved) or RET (rejected).
- source: The source where the consent information was obtained (e.g., HS_EORTAM, HS_FIZIKSEL_ORTAM, etc.).
- consentDate: The date and time when the consent or rejection occurred. Format: YYYY-MM-DD HH:MM:SS
Error Codes
The following table lists the error codes that the API can return.
| Error Code | Message | Description |
|---|---|---|
| 400 | İstek çözümlenemedi | POST ettiğiniz JSON'in yapısındaki hatadan kaynaklanır. Bu hatalar genellikle, yanlış yazılan JSON etiketi, düzgün kapatılmayan XML etiketi veya CDATA kullanılmadan JSON'in yapısını bozabilecek bir karakterin kullanımından kaynaklanır. |
| 401 | Üyelik bilgileri hatalı | POST ettiğiniz JSON'in authentication etiketi içerisinde göndermiş olduğunuz bilgileri doğrulayamadığımızda bu hatayı veriyoruz, eğer hesabınızda sabit IP tanımladıysanız ve farklı bir IP üzerinden istek yapıyorsanız yine bu hatayı alırsınız. |
| 403 | Aktif abonelik bulunamadı. | Eğer hesabınızda aktif bir abonelik yoksa bu hatayı alırsınız. |
| 404 | API istek yapılan yönteme sahip değil | Eğer bu hatayı alıyorsanız istek yaptığınız adresi tekrar kontrol edin yanlış bir adrese istek yapıyor olabilirsiniz. |
| 422 | İstekte gönderilen bazı değerler doğrulanamadı. | Yapmış olduğunuz isteğin içeriğinde doğrulamadan geçemeyen değerler içerdiğini belirtir. İsteğin içeriğini (body) ve gönderilen değerleri tekrar kontrol etmenizi öneririz. |