LOCALHOST
All pages
API reference

Postmaster

Every call needs Authorization: Bearer lh_… unless marked No key needed; the example uses $API for https://api.localhost.co.zw and $LH_API_KEY for your key. A * marks a required field.

#

Watches

mail:read

GET /postmaster/

Each name with working email: whether Gmail watching is on, and what Gmail says, in plain words.

Responses

  • 200 list[object]
  • 401 no key, or a key that was revoked
  • 403 the key lacks the permission
Example request
curl -X GET "$API/postmaster/" \
  -H "Authorization: Bearer $LH_API_KEY"
#

Watch

mail:write

POST /postmaster/

Ask Gmail to measure a name with working email (or try again after a problem).

Request body WatchIn

NameTypeNotes
name * string

Responses

  • 200 object
  • 401 no key, or a key that was revoked
  • 403 the key lacks the permission
Example request
curl -X POST "$API/postmaster/" \
  -H "Authorization: Bearer $LH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "<name>"
  }'

Shapes

The objects these endpoints send and receive.

WatchIn

NameTypeNotes
name * string