Your first API request

Make an authenticated request in five minutes.

Last updated 30 Nov 2026

This guide walks you through creating a key and listing your domains.

Prerequisites

  • A Truehost account
  • curl or 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