windmill-api 1.895.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
# \TokenApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_token_admin_reliance**]TokenApi.md#get_token_admin_reliance | **POST** /tokens/admin_reliance | what a token would lose without its owner's workspace admin rights
[**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



## get_token_admin_reliance

> Vec<models::TokenAdminReliance> get_token_admin_reliance(get_token_admin_reliance_request)
what a token would lose without its owner's workspace admin rights

For each workspace the caller administers among `workspace_ids` (every one when omitted), what a token with these scopes reaches only through the caller's admin role: folders they are not a member of, other users' items not shared with them, resources the runnables the scopes name reference, and admin-only actions the scopes allow. Workspaces with nothing to report are left out. Refused to a credential that is scoped or withholds admin rights. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**get_token_admin_reliance_request** | [**GetTokenAdminRelianceRequest**]GetTokenAdminRelianceRequest.md |  | [required] |

### Return type

[**Vec<models::TokenAdminReliance>**](TokenAdminReliance.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **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)


## 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


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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)