UptimeTea

API Documentation

The UptimeTea API is easy to use and free for all plans.

Resend confirmation email

Sends the email confirmation link again. Does nothing when the email is already verified.

POST https://api.uptimetea.com/auth/confirm/resend

Headers

  • AuthorizationREQUIREDSTRING
    Bearer $TOKEN

Response body

{
  "success": true,
  "message": "Confirmation email sent"
}

Code examples

curl -X POST "https://api.uptimetea.com/auth/confirm/resend" \
  -H "Authorization: Bearer $TOKEN"
// Resend confirmation email
const response = await fetch('https://api.uptimetea.com/auth/confirm/resend', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + yourToken
  }
});

const data = await response.json();
console.log(data);
# Resend confirmation email
import requests

headers = {'Authorization': f'Bearer {your_token}'}

response = requests.post(
    'https://api.uptimetea.com/auth/confirm/resend',
    headers=headers
)

print(response.json())
// Resend confirmation email
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("POST", "https://api.uptimetea.com/auth/confirm/resend", nil)
    req.Header.Set("Authorization", "Bearer "+yourToken)

    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    data, _ := io.ReadAll(resp.Body)
    fmt.Println(resp.Status, string(data))
}
# Resend confirmation email
require 'net/http'
require 'uri'

uri = URI('https://api.uptimetea.com/auth/confirm/resend')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request['Authorization'] = "Bearer #{your_token}"

response = http.request(request)
puts response.code, response.body
<?php
// Resend confirmation email
$ch = curl_init('https://api.uptimetea.com/auth/confirm/resend');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $yourToken
]);

$response = curl_exec($ch);
print_r(json_decode($response, true));
curl_close($ch);