API Clients
You want to pull analytics data into a custom dashboard, a CI pipeline, or an internal tool without using your main session cookie. API Clients let you create named, scoped tokens that authenticate against the HitKeep REST API using a standard Authorization: Bearer header.
HitKeep supports two ownership modes:
- Personal API clients live under Settings → API Clients and belong to one user.
- Team API clients live under Administration → Team → Settings and belong to the team itself, so they survive when an individual user leaves the team.


Choose the Right Ownership Model
Section titled “Choose the Right Ownership Model”Use a personal API client when the token is just for you or tied to your own user account.
Use a team API client when the token powers a shared integration such as:
- a CI export job
- a shared Grafana dashboard
- a reporting sync owned by the marketing or product team
Team API clients are the safer default for automation because they are not deleted when the original creator leaves the team.
Create a Personal Token
Section titled “Create a Personal Token”- Open Settings → API Clients in the HitKeep dashboard.
- Click New API Client.
- Give the client a descriptive name (e.g.,
grafana-reader,ci-exporter). - Copy the generated token immediately — it is shown once.
API reference:
Create a Team Token
Section titled “Create a Team Token”- Open Administration → Team → Settings.
- Scroll to Team API Clients.
- Create a token and scope it to one or more sites in the current team.
- Copy the generated token immediately — it is shown once.
API reference:
Using a Token
Section titled “Using a Token”Pass the token as a Bearer token in the Authorization header on any API request:
For example, any authenticated site stats request in the API reference can be called with a bearer token:
This works for all authenticated API endpoints and is suitable for server-to-server use. Do not expose tokens in client-side JavaScript.

Managing Tokens
Section titled “Managing Tokens”Use the generated reference for the full lifecycle:
- List personal API clients
- Update a personal API client
- Delete a personal API client
- List team API clients
- Update a team API client
- Delete a team API client
Only team owners and admins can manage team API clients.
Security Best Practices
Section titled “Security Best Practices”- Use one token per integration so you can revoke granularly.
- Rotate tokens periodically by deleting the old client and creating a new one.
- Store tokens in environment variables or a secrets manager, never in source code.
- HitKeep does not store tokens in plain text — only a hashed form is retained after creation.
- Prefer team API clients for long-lived automation owned by a team instead of a single person.
- Scope team API clients only to the sites they actually need.