Authentication
One bearer token per wallet. No accounts, no passwords, no OAuth dance.
How tokens work
Your token is issued when you redeem the one-time retrieval link
from your purchase e-mail. It starts with tfk- and it
directly authorises a wallet: whoever holds it can run jobs against
the wallet's credits. Send it on every authenticated call:
Authorization: Bearer tfk-YOUR-TOKENCatalogue reads (GET /v1/tools,
GET /v1/tools/{slug}, the credit package
catalogue) are open and need no token.
Storing the token
- Keep it in a secret manager or an environment variable fed from one, not in source code.
- Do not send it to third-party logging or analytics services;
the
Authorizationheader should be stripped from anything that leaves your control. - If you run several services, give each its own wallet rather than sharing one token; the wallet's balance and transaction history stay per service.
Common authentication failures
| HTTP | Code | Cause |
|---|---|---|
| 401 | J_CREDENTIAL_INVALID |
Header missing, malformed, or the token is unknown or revoked. |
| 429 | R_RATE_LIMIT |
Too many requests from the credential or its IP; wait for
Retry-After seconds. |
A 401 means the call did not authenticate; check that the header
reads exactly Bearer, a space, then the token without
newlines or quotes.
Security practices
The token never expires by itself, but it is one-time retrievable: it is shown once, at redemption. Traffic goes over HTTPS only. Do not put tokens in URLs — they end up in server logs.
Known limitations
- No token replacement. If a token is lost or leaked, there is no automated recovery flow today.
- No account. The wallet is identified by the token; there is nothing to log in to.
- No automatic top-up. When credits run out, buying another package is the way to continue (a new wallet, issued through email as before).
Plan integrations with those limits in mind: keep the token
safe, monitor the balance endpoint, and surface it to your own
users before jobs start failing with
J_WALLET_INSUFFICIENT.