X-API-Key header on every request. The key determines which customer scope and data tiers you can access.
Obtaining a key
Sign up at portal.api.trassets.ai and generate an API key from the dashboard. The plaintext key is displayed exactly once. Copy it immediately and store it in a secure secrets manager. If you lose it, you must revoke the old key and create a new one.Passing the key in requests
Include theX-API-Key header on every call. Here is a minimal curl example:
Key storage and security
Trassets never stores your API key in plaintext. Only an HMAC-SHA-256 hash is retained on our servers for verification. This means we cannot recover or display a key after creation. Treat your key like a password:- Do not commit it to version control.
- Rotate keys regularly from the portal.
- Scope each key to the minimum access tier your integration needs.
Authentication errors
If the key is missing, invalid, or does not have the required access tier, the API returns an RFC 7807 problem response.401 Unauthorized
X-API-Key header, or the supplied key is disabled.