Authentication
Use https://goto.now and send Authorization: Bearer gtn_YOUR_KEY. Keep the key in server-side secrets, never browser code, a URL, or a public repository.
Suggest back-halves
curl https://goto.now/api/v1/slug-suggestions \
-H "Authorization: Bearer gtn_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Autumn product launch","url":"https://example.com/products/new"}'
Supply a title, a public HTTP(S) url, or both. The response is {"data":[...]} with as many as five normalized ideas. Suggestions are ideas rather than reservations: pass the chosen value as slug to the Links API, which performs the authoritative availability check.