> For the complete documentation index, see [llms.txt](https://docs.lhv.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lhv.com/home/connect/services/heartbeat/heartbeat-advanced-get.md).

# Heartbeat Advanced - GET

Description for Advanced Heartbeat API service

## Service description

Connectivity testing service similar to [Heartbeat](https://docs.lhv.com/home/connect/services/heartbeat.md), but will create a response message in the queue that can be read as described in [Messaging Pattern](https://docs.lhv.com/home/connect/fundamentals/messaging.md) The response will also contain additional certificate and entity information about the current authenticated user.

## Request <a href="#virtual-iban-open" id="virtual-iban-open"></a>

<mark style="color:green;">`GET`</mark> <https://connect.lhv.com/heartbeat/mq>

#### **Headers**

<table><thead><tr><th width="359">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/xml</code></td></tr><tr><td>Client-Code</td><td><code>customer value</code></td></tr><tr><td>Client-Country</td><td><code>customer value</code></td></tr></tbody></table>

#### **Body**

**-**

### **Response**

**Headers**

<table><thead><tr><th width="274">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/xml</code></td></tr><tr><td>X-Bank-Code</td><td><code>LHVUK, LHVEE</code></td></tr></tbody></table>

#### Body

{% tabs %}
{% tab title="202" %}
{% hint style="success" %}
Accepted
{% endhint %}

```
(no body)
```

{% endtab %}

{% tab title="403" %}
{% hint style="danger" %}
Error code and description
{% endhint %}

<pre><code>&#x3C;Errors>
<strong>    &#x3C;Error>
</strong>        &#x3C;ErrorCode>FORBIDDEN&#x3C;/ErrorCode>
        &#x3C;Description>User doesn't exist&#x3C;/Description>
    &#x3C;/Error>
&#x3C;/Errors>
</code></pre>

{% endtab %}
{% endtabs %}

## Response message

Response message is created and can be requests by the Messages services - [Messages Services](https://docs.lhv.com/home/connect/services/messages.md)

### Body

XML

#### Samples

{% tabs %}
{% tab title="Entity and Certificate info" %}
Sample where customer has two active certificates

```xml
<HeartBeatResponse>
    <TimeStamp>2024-05-08T08:52:31.573+01:00</TimeStamp>
    <AuthorizedUser>
        <Name>LHV Bank Limited</Name>
        <Code>13180211</Code>
    </AuthorizedUser>
    <Certificates>
        <Certificate>
            <SerialNumber>10531234</SerialNumber>
            <ValidFrom>2023-07-03T08:26:47.000+00:00</ValidFrom>
            <ValidTo>2026-07-02T08:26:47.000+00:00</ValidTo>
        </Certificate>
        <Certificate>
            <SerialNumber>10535678</SerialNumber>
            <ValidFrom>2021-10-15T08:33:02.000+00:00</ValidFrom>
            <ValidTo>2024-10-14T08:33:02.000+00:00</ValidTo>
        </Certificate>
    </Certificates>
</HeartBeatResponse>

    
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lhv.com/home/connect/services/heartbeat/heartbeat-advanced-get.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
