Authentication
Authenticate requests to Truehost APIs with API keys.
All API requests are authenticated with an API key sent as a bearer token.
Create an API key
- Sign in to the Client Area.
- Go to Account then API Keys.
- 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.
Still need help?Open a support ticket