To main content
Получить контакт по ID
Метод позволяет получить подробную информацию о существующем контакте, который содержится в системе, а также пользовательские поля контакта.
Чтобы получить контакт, сделайте запрос по этому URL:
GET http://one-api.notificore.ru/api/contacts/{id}
Request parameters
ParameterRequiredTypeDescription
idYesintegerID of the contact to get information on (the contact ID is generated automatically by the Notificore system when a contact is added).
Response parameters
ParameterTypeDescription
idintegerContact ID on which the query for information was made.
phoneintegerContact phone number.
fieldsarrayContains the embedded custom fields parameters.
created_atdatetimeContact creation date ― set automatically by the Notificore system when a contact is added to the Contact Book. Display format ― Y-m-d H:i:s
groupsarrayContains embedded parameters of the list to which the contact is added.
hlr_statusstringStatus of verifying the contact’s phone number against the HLR database. Possible values: sent, absent, active, unknown, failed.
hlr_last_checkdatetimeDate and time when the contact’s phone number was last verified against the HLR database. Display Format ― Y-m-d H:i:s
Если запрос успешен, вы получите ответ:
{
    "data": {
        "id": 1,
        "phone": 33601148802,
        "fields": {
            "additionalProp1": "string",
            "additionalProp2": "string",
            "additionalProp3": "string"
        },
        "created_at": "2022-04-28 14:21:16",
        "groups": [
            {
                "id": 1,
                "name": "string",
                "description": "string",
                "default": 0,
                "created_at": "2022-04-28 14:21:16"
            }
        ],
        "hlr_status": "string",
        "hlr_last_check": "2022-04-28 14:21:16"
    }
}
API Notificore предоставляет вам возможность управлять контактами для последующего использования в одиночных и массовых рассылках SMS, Viber или проверке номеров. Вы можете создавать новые контакты, просматривать, редактировать, группировать и удалять существующие контакты.