Authentication

Authenticate requests to Truehost APIs with API keys.

Last updated 30 Nov 2026

All API requests are authenticated with an API key sent as a bearer token.

Create an API key

  1. Sign in to the Client Area.
  2. Go to Account then API Keys.
  3. Select Create key, choose the scopes you need and copy the key. It is shown only once.

Send the key

curl https://api.truehost.com/v1/domains \
  -H "Authorization: Bearer $TRUEHOST_API_KEY"

Scopes

Scope Allows
read Read only access to resources
write Create and update resources
billing View invoices and payment methods

Rotating keys

Create the new key, deploy it, then revoke the old key from the same page.