UptimeTea

API Documentation

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

Get team

Returns your team and its members. Roles are owner, manager and employee.

GET https://api.uptimetea.com/team

Headers

  • AuthorizationREQUIREDSTRING
    Bearer $TOKEN

Response body

{
  "id": "uuid",
  "name": "Acme",
  "owner_id": "uuid",
  "created_at": "2024-01-01T00:00:00Z",
  "members": [
    {
      "id": "uuid",
      "email": "user@example.com",
      "first_name": "John",
      "last_name": "Doe",
      "role": "owner",
      "joined_at": "2024-01-01T00:00:00Z"
    }
  ]
}

Code examples

curl -X GET "https://api.uptimetea.com/team" \
  -H "Authorization: Bearer $TOKEN"
// Get team
const response = await fetch('https://api.uptimetea.com/team', {
  headers: {
    'Authorization': 'Bearer ' + yourToken
  }
});

const data = await response.json();
console.log(data);
# Get team
import requests

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

response = requests.get(
    'https://api.uptimetea.com/team',
    headers=headers
)

print(response.json())
// Get team
package main

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

func main() {
    req, _ := http.NewRequest("GET", "https://api.uptimetea.com/team", 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))
}
# Get team
require 'net/http'
require 'uri'

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

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

response = http.request(request)
puts response.code, response.body
<?php
// Get team
$ch = curl_init('https://api.uptimetea.com/team');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $yourToken
]);

$response = curl_exec($ch);
print_r(json_decode($response, true));
curl_close($ch);
What Google Analytics sets
Cookie What it does Kept for
_ga Tells one visit from another 2 years
_ga_* Remembers the current visit 2 years

Google may process this data in the US. We don't use it for ads and don't share it with anyone else. More in our privacy policy.