Skip to main content

How Authentication Works

SimpleHost uses email-based authentication. There are no passwords — you verify your email with a one-time code and receive an API key. The API key is used for all authenticated requests via the Authorization header:

Request a Verification Code

Send a verification code to an email address.
string
required
The email address to send the code to.

Response

The code expires in 10 minutes. It arrives as an email with the format XXXX-XXXX (letters and numbers).

Verify Code and Get API Key

Exchange the verification code for an API key.
string
required
The same email address you requested the code for.
string
required
The verification code from your email (format: XXXX-XXXX).

Response

The API key is displayed only once. Save it immediately. If you lose it, you’ll need to verify your email again to generate a new one (the old key is invalidated).

Using the API Key

Set it as an environment variable:
Or pass it directly in requests:

API Key Format

API keys follow this pattern:
Example: sh_live_1981ecdf8dbb8c20c7da2b068ccbc12a