curl -X POST "https://api.hatchhq.ai/v1/verifyEmail" \
-H "x-api-key: <token>" \
-H "Content-Type: application/json"
const options = {
method: 'POST',
headers: {
'x-api-key': '<token>',
'Content-Type': 'application/json'
}
};
fetch('https://api.hatchhq.ai/v1/verifyEmail', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://api.hatchhq.ai/v1/verifyEmail"
payload := strings.NewReader(`{}`)
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.hatchhq.ai/v1/verifyEmail"
payload = {}
headers = {
"x-api-key": "<token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())