Authorization header — there are no session cookies or OAuth flows required for server-to-server calls. Generate a key from your dashboard, attach it to each request, and you are ready to go.
Generating an API key
Follow these steps to create a new API key from your Doohick dashboard:1
Log in to Doohick
Navigate to app.doohick.com and sign in to your account.
2
Open Settings
Click your profile avatar in the top-right corner, then select Settings from the dropdown.
3
Go to API Keys
In the left sidebar, select API Keys under the Developer section.
4
Generate a new key
Click Generate New Key to open the key creation dialog.
5
Name your key
Enter a descriptive name — for example,
Production Backend or CI Pipeline — so you can identify the key’s purpose later.6
Copy and store the key securely
Copy the key immediately and store it in a secrets manager or environment variable. Doohick only displays the full key value once at creation time.
Using your API key
Pass your API key as a Bearer token in theAuthorization header of every request:
Authorization header is required on all endpoints. Requests that omit it receive a 401 Unauthorized response.
Key types
Doohick issues two types of API keys, each scoped to a different environment:- Live keys (
dh_live_...) — use these in production. Operations performed with a live key affect real data and may trigger billing. - Test keys (
dh_test_...) — use these during development and testing. Operations performed with a test key are sandboxed and do not affect your live data or account state.
live vs test) determines which environment processes the request.
Keeping your key secure
Store your keys in environment variables and read them at runtime:Revoking a key
To revoke an API key, go to Settings → API Keys in your Doohick dashboard and click Revoke next to the key you want to invalidate. Revocation is immediate — all in-flight and future requests using that key receive a401 response. Issue a new key before revoking the old one if you need zero-downtime rotation.