Skip to content
sign in

==> call the api

Who the token is for

GET /v1/me

The account, its projects, its settings and the models its tokens may call: everything a client needs about its user in one call.

Needs a personal access token: Authorization: Bearer <token>.

Answer

200 Success.

  • userobjectrequired
    • idstringrequired
    • usernamestringrequired
    • display_namestringrequired
  • projectsarray of objectrequired
    • slugstringrequired
    • titlestringrequired
    • ui_pathstringrequired
  • settingsobjectrequired
    • themestring or nullrequired

      A theme id, e.g. jade.

    • mode"light" | "dark" or nullrequired
    • lang"en" | "ru" or nullrequired
  • modelApiarray of stringrequired

    The models this account's tokens may call (/v1/<model>/...).

Refusals

Each answers { "error": "...", "code"?: "..." } with its status.

statuswhen
401No valid token.

Example

curl 'https://api.clusterstuck.sh/v1/me' \
  -H 'Authorization: Bearer <your token>'