Authorization header. All endpoints under /api/public/trident/ require this header unless otherwise noted.
Find your API Keys
Open the Trident Dashboard
Navigate to app.usetrident.dev and sign in.
Construct the Authorization header
Combine your keys with a colon separator —publicKey:secretKey — then Base64-encode the result. Set the encoded string as the value of the Authorization: Basic header on every request.
Base URL: https://app.usetrident.dev
Store keys as environment variables
Never hard-code your keys in source files. Use environment variables and load them at runtime:| Variable | Description |
|---|---|
TRIDENT_PROJECT_PUBLIC_KEY | Your project Public Key (prefix pk_live_…) |
TRIDENT_PROJECT_SECRET_KEY | Your project Secret Key (prefix sk_live_…) |
Common authentication errors
| HTTP status | Meaning | Resolution |
|---|---|---|
401 Unauthorized | Missing or malformed Authorization header, or Base64 encoding is wrong | Verify the header format is Basic <base64(pub:secret)> |
401 Unauthorized | Secret Key is incorrect | Double-check the key value in Project Settings |
403 Forbidden | Public Key does not match any project, or the project has been deleted | Verify the Public Key and ensure the project still exists |
Rate limits
The Trident API enforces per-project rate limits on thepublic-api resource. When you exceed the limit, the API returns 429 Too Many Requests. Implement exponential back-off in your clients and respect the Retry-After header when present.
The unauthenticated public demo scan endpoint (POST /api/public/scan) has a separate rate limit of 10 requests per minute per source IP.