# \TokenApi
All URIs are relative to */api*
[**introspect_token**](TokenApi.md#introspect_token) | **GET** /tokens/introspect | describe the token presenting the request
[**list_available_scopes**](TokenApi.md#list_available_scopes) | **GET** /tokens/list/scopes | list of available scopes
## introspect_token
> models::TokenIntrospection introspect_token(workspace, path, method)
describe the token presenting the request
Reports what the bearer credential of this request is: its row (label, expiry, bound workspace, scopes, carried admin rights), the identity it acts as in `workspace`, and whether the route layer would admit it on `method` `path`. Only the presented token is ever described. Every token may call it, whatever its scopes.
### Parameters
**workspace** | Option<**String**> | workspace to resolve the token's identity in | |
**path** | Option<**String**> | route to check, either a full `/api/...` path or a path relative to `/api/w/{workspace}/` | |
**method** | Option<**String**> | HTTP method of the route to check (GET by default) | |
### Return type
[**models::TokenIntrospection**](TokenIntrospection.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_available_scopes
> Vec<models::ScopeDomain> list_available_scopes()
list of available scopes
### Parameters
This endpoint does not need any parameter.
### Return type
[**Vec<models::ScopeDomain>**](ScopeDomain.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)