==> 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.
- user
objectrequired- id
stringrequired - username
stringrequired - display_name
stringrequired
- id
- projects
array of objectrequired- slug
stringrequired - title
stringrequired - ui_path
stringrequired
- slug
- settings
objectrequired- theme
string or nullrequiredA theme id, e.g.
jade. - mode
"light" | "dark" or nullrequired - lang
"en" | "ru" or nullrequired
- theme
- modelApi
array of stringrequiredThe models this account's tokens may call (
/v1/<model>/...).
Refusals
Each answers { "error": "...", "code"?: "..." } with its status.
| status | when |
|---|---|
401 | No valid token. |
Example
curl 'https://api.clusterstuck.sh/v1/me' \
-H 'Authorization: Bearer <your token>'