GET/user/hello

GET/user/hello

The /user/hello endpoint is a testing endpoint for veryfying that your authentication is setup correctly. One might argue that any of the authenticated endpoints would suffice, but alas, this one exists as well.

Basic

cURL

curl --location 'https://www.api.remoet.dev/user/hello' --header 'Authorization: Bearer <Your key>'

HTTP

GET /user/hello HTTP/1.1
Host: https://www.api.remoet.dev
Authorization: Bearer <Your key>

Javacript Fetch

const myHeaders = new Headers();
myHeaders.append("Authorization", `Bearer ${key}`);
 
const requestOptions = {
  method: "GET",
  headers: myHeaders
};
 
fetch("https://www.api.remoet.dev/user/hello", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Result

Hello from the public API! <Your email>

Non authenticated response

{
    "statusCode": 401,
    "message": "Invalid API Key",
    "error": "Unauthorized"
}