List your own API tokens
GET https://weights.fyi/run/v1/tokens/mine[?include_expired=true]
Authorization: Bearer <token> scope: read- Available since
- Not available yet: built on 2026-11-16, live with the deploy that carries it.
- Answer time
- synchronous: the answer is read from your account's records at once.
Lists the tokens you issued in this workspace, newest first, each as GET /v1/tokens shows it, issued_by included: your person id. It needs only read, so a member who may not see the workspace's other tokens can still find their own key, check its cap and see when it was last used. The token itself is never returned, only its visible prefix.
Called with a token, it lists the tokens of the person who issued that token; a token no person issued sees only itself. A token whose expiry has passed is left out unless you send include_expired=true.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token with read, or a signed-in session. |
include_expired | query | no | true or 1 also lists the tokens whose expiry has passed. |
Return value
200 OK with two fields.
| Field | Meaning |
|---|---|
tokens | Your tokens, newest first, with the fields of GET /v1/tokens, issued_by included. |
day | Always UTC: the day over which every spend_today is counted. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work. | Use a valid token. |
403 | account_suspended | The account is suspended. | Talk to us. |
Examples
curl -s https://weights.fyi/run/v1/tokens/mine -H "Authorization: Bearer $WEIGHTS_API_KEY"{
"tokens": [{"id": 4, "name": "ci", "prefix": "weights_tcYQQluQ", "scopes": ["submit", "read"], "issued_by": 12,
"daily_cap_usd_micros": 20000000, "revoked_at": null, "expired": false}],
"day": "UTC"
}History
- 2026-11-16 (built, live with the deploy that carries it): your own tokens with
read.