Skip to main content
Haunt.gg uses two types of API keys depending on the endpoint you want to access.

Key Types

Account API Key

Your Account API key is used for all endpoints except image uploads. It can be passed in two ways:
  • Query parameter: ?key=YOUR_ACCOUNT_API_KEY
  • Bearer token: Authorization: Bearer YOUR_ACCOUNT_API_KEY
Each key comes with the following permissions:
  • imagehost.gallery
  • imagehost.folders
  • lookup
  • leaderboard

ImageHost API Key

Your ImageHost API key is used exclusively for the /imagehost/upload endpoint. It is passed as a key field in the multipart form data of the upload request.

Accessing Your API Keys

1

Open your account setting

Visit your account settings in your dashboard and scroll to API Keys.
API Key Settings
2

Manage Keys

From there you can create new API keys, view existing keys, and revoke keys that are no longer needed.
After creating a new API key, make sure to copy and store it securely as it will not be shown again.

Restricted Permissions

Restricted permissions are:
  • lookup
  • leaderboard
These permissions have to be requested via application. To apply for those permissions, use the Request button in the API key settings.
Request Permissions