# Is there an HTTP API where I can ask for Pings for Integration Tests?

**URL:** https://discourse.nodered.org/t/is-there-an-http-api-where-i-can-ask-for-pings-for-integration-tests/59707
**Category:** General
**Tags:** http-request
**Created:** [11 March 2022 12:35 UTC](https://discourse.nodered.org/t/is-there-an-http-api-where-i-can-ask-for-pings-for-integration-tests/59707 "2022-03-11T12:35:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shan](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shan](https://discourse.nodered.org/u/Shan)
#### Post date: [11 March 2022 12:35 UTC](https://discourse.nodered.org/t/is-there-an-http-api-where-i-can-ask-for-pings-for-integration-tests/59707/1 "2022-03-11T12:35:49Z")

</div>

Is there an **HTTP GET** API within the node-red API reference which I could use for some integrations tests just to know if node-red is up and running for example via a `docker-compose` stack or a standalone instance on a machine?

Something of the likes of `/ping` which may return a **HTTP 200 Response** based on whether the instance is available or not.

I went through the [node-red Admin HTTP API](https://nodered.org/docs/api/admin/methods/) and I couldn't find something I can use to verify integration with apps

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [11 March 2022 12:44 UTC](https://discourse.nodered.org/t/is-there-an-http-api-where-i-can-ask-for-pings-for-integration-tests/59707/2 "2022-03-11T12:44:46Z")

</div>

A simple endpoint of `/ping` is easy to setup and it provides you with a complete end-to-end test (as in not only is the endpoint available, but the flows are actually running.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/733573417aafd0944a3941a1c7c6b529211092d8.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [25 March 2022 12:45 UTC](https://discourse.nodered.org/t/is-there-an-http-api-where-i-can-ask-for-pings-for-integration-tests/59707/3 "2022-03-25T12:45:40Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
