Your first API request
Make an authenticated request in five minutes.
This guide walks you through creating a key and listing your domains.
Prerequisites
- A Truehost account
curlor any HTTP client
1. Create a key
Follow Authentication to create a key with the read scope.
2. Call the API
export TRUEHOST_API_KEY=th_live_xxx
curl -s https://api.truehost.com/v1/domains -H "Authorization: Bearer $TRUEHOST_API_KEY"
3. Next steps
- Explore the interactive API reference
- Subscribe to webhooks
Still need help?Open a support ticket