Create an API key
Create a workspace service account for access to one workspace, or an organization service account for organization-wide access:- Open Service accounts from the workspace sidebar or Organization settings.
- Select Create service account.
- Name the service account and assign only the permissions it needs.
- Create the service account, then copy its API key. The key is shown only once.
Authenticate a request
Pass the API key as a bearer token in theAuthorization header:
https://platform.tracecat.com/api with your Tracecat API URL.
Keep API keys in a secret manager or environment variable. Do not expose them in client-side code or commit them to source control.