Documentation
Account and keys
View .mdOpenAPI

List your own API tokens

GEThttps://weights.fyi/run/v1/tokens/minescope: read
text
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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token with read, or a signed-in session.
include_expiredquerynotrue or 1 also lists the tokens whose expiry has passed.

Return value

200 OK with two fields.

FieldMeaning
tokensYour tokens, newest first, with the fields of GET /v1/tokens, issued_by included.
dayAlways UTC: the day over which every spend_today is counted.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403account_suspendedThe account is suspended.Talk to us.

Examples

sh
curl -s https://weights.fyi/run/v1/tokens/mine -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "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.

See also

GET /v1/tokens, GET /v1/tokens/self.