Two Kinds of Keys
Personal API Keys
A personal key acts as you. It can do what you can do in ClarityQ, in every workspace you can access. If your role or your workspaces change, the key follows on its next call. Questions you ask with a personal key appear in your own chat history, marked with a key icon. To create one:1
Open your API keys
Open your profile menu, choose Settings, then API keys.
2
Generate the key
Click Generate API Key and give it a Key name. You can also set a Daily prompt limit for it.
3
Copy it
The key is shown once. Copy it and store it somewhere safe. You can’t see it again.
Service Accounts
A service account belongs to the organization, not to a person. Its keys keep working when people leave or change roles, so use one for anything your team relies on. Only Admins can create and manage service accounts. Go to Organization Settings → API → Service accounts and click Generate Service Account. Fill in:- Service account name and an optional Description.
- Role: Admin, Analyst Contributor, Analyst, or Business User. The role decides what the service account’s keys can do, the same way a role does for a person.
- Workspaces: All workspaces also covers workspaces you add later. Selected workspaces limits the service account to the ones you pick.
- First API key: every new service account gets one key. Give it a name and, if you want, a daily prompt limit.
Service accounts have no data warehouse login of their own. In a workspace where each user signs in with their own warehouse account, a service account uses the workspace’s shared login and sees all rows.
Managing a Service Account
Each service account has a menu:- Edit: change its name, description, role, or workspaces. Changes apply to all of its keys from their next call.
- View prompts: opens the Usage Dashboard filtered to this service account.
- Delete: revokes all of its keys. Integrations that use them stop working right away. Its past prompts stay on the Usage page.
All Keys in the Organization
The API keys tab under Organization Settings → API lists every key in the organization: service account keys and everyone’s personal keys. Admins can search and filter the list, export it to CSV, and use Edit limit or Revoke on any key.Finding a Workspace ID
Every API call needs a workspace ID in its URL. In the API reference this value is calledproduct_id.
- For a personal key, click View workspace IDs on your API keys page.
- For a service account, click its Workspaces value in the service accounts list.
Daily Prompt Limits
Any key can have a daily prompt limit. It counts the questions the key asked in a rolling 24 hours. When the key reaches its limit, Ask a Question returns429 until older questions fall out of the 24-hour window.
- Organization default: an Admin sets it with the API settings icon on the API keys tab. It applies to every key that has no limit of its own.
- One key: use Edit limit on the key. An Admin can do this for any key. You can do it for your own personal keys.