Developer docs
domainawait API
A small, REST-flavoured JSON API. Everything you can do in the app is available programmatically.
https://api.domainawait.comGetting started
Most endpoints are public and require no authentication. To create or modify your own data, you'll need a personal access token.
- Sign in at https://app.domainawait.com.
- Visit Settings → API keys and create a token.
- Send it as a Bearer token in the Authorization header.
Authentication
Authenticated requests use a Bearer token:
Authorization: Bearer YOUR_TOKENWeb sessions (used by the dashboard) are cookie-based via Sanctum SPA auth. Third-party integrations should always use a personal access token.
Rate limits
Public endpoints
60 / min
Per IP address.
Authenticated endpoints
120 / min
Per user or token.
Exceeding the limit returns HTTP 429 with a Retry-After header.
Public
- GET
/v1/domains/{name}Fetch a domain's public details: expiration, follower count, and check history.
- GET
/v1/domains/trendingList domains sorted by follower count. Supports ?limit=N (1-100).
Auth
- POST
/v1/auth/magic-linkRequest a magic link via email. Body: { email }.
- GET
/v1/auth/magic-link/verifyVerify a magic link token from the email.
- GET
/v1/auth/google/redirectStart the Google OAuth flow.
- GET
/v1/auth/google/callbackGoogle OAuth callback.
- POST
/v1/auth/logoutLog out the current session.
Auth - GET
/v1/auth/meReturn the authenticated user.
Auth
Domains (authenticated)
- POST
/v1/domainsAdd a domain to your watchlist. Body: { name, notify_days_before? }.
Auth - GET
/v1/domains/meList the domains you are tracking.
Auth - PATCH
/v1/domains/me/{id}Update reminder preferences for a subscription.
Auth - DELETE
/v1/domains/me/{id}Unsubscribe from a domain.
Auth
API tokens
- POST
/v1/tokensCreate a personal access token.
Auth - GET
/v1/tokensList your active tokens.
Auth - DELETE
/v1/tokens/{id}Revoke a token.
Auth
Examples
Fetch a domain (JavaScript)
const res = await fetch("https://api.domainawait.com/v1/domains/google.com");
const domain = await res.json();
console.log(domain.follower_count);Fetch a domain (curl)
curl https://api.domainawait.com/v1/domains/google.comAdd a domain (curl)
curl -X POST https://api.domainawait.com/v1/domains \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"example.com","notify_days_before":[30,7,1]}'