# \OauthApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**connect_callback**](OauthApi.md#connect_callback) | **POST** /oauth/connect_callback/{client_name} | connect callback
[**connect_client_credentials**](OauthApi.md#connect_client_credentials) | **POST** /oauth/connect_client_credentials/{client} | connect OAuth using client credentials
[**connect_slack_callback**](OauthApi.md#connect_slack_callback) | **POST** /w/{workspace}/oauth/connect_slack_callback | connect slack callback
[**connect_slack_callback_instance**](OauthApi.md#connect_slack_callback_instance) | **POST** /oauth/connect_slack_callback | connect slack callback instance
[**connect_slack_instance**](OauthApi.md#connect_slack_instance) | **POST** /oauth/connect_slack_instance | connect slack instance (non-interactive; pre-minted bot token)
[**create_account**](OauthApi.md#create_account) | **POST** /w/{workspace}/oauth/create_account | create OAuth account
[**disconnect_account**](OauthApi.md#disconnect_account) | **POST** /w/{workspace}/oauth/disconnect/{id} | disconnect account
[**disconnect_slack**](OauthApi.md#disconnect_slack) | **POST** /w/{workspace}/oauth/disconnect_slack | disconnect slack
[**disconnect_teams**](OauthApi.md#disconnect_teams) | **POST** /w/{workspace}/oauth/disconnect_teams | disconnect teams
[**get_o_auth_connect**](OauthApi.md#get_o_auth_connect) | **GET** /oauth/get_connect/{client} | get oauth connect
[**list_o_auth_connects**](OauthApi.md#list_o_auth_connects) | **GET** /oauth/list_connects | list oauth connects
[**list_o_auth_logins**](OauthApi.md#list_o_auth_logins) | **GET** /oauth/list_logins | list oauth logins
[**refresh_token**](OauthApi.md#refresh_token) | **POST** /w/{workspace}/oauth/refresh_token/{id} | refresh token



## connect_callback

> models::TokenResponse connect_callback(client_name, connect_slack_callback_request)
connect callback

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**client_name** | **String** |  | [required] |
**connect_slack_callback_request** | [**ConnectSlackCallbackRequest**](ConnectSlackCallbackRequest.md) | code endpoint | [required] |

### Return type

[**models::TokenResponse**](TokenResponse.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)


## connect_client_credentials

> models::TokenResponse connect_client_credentials(client, connect_client_credentials_request)
connect OAuth using client credentials

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**client** | **String** | OAuth client name | [required] |
**connect_client_credentials_request** | [**ConnectClientCredentialsRequest**](ConnectClientCredentialsRequest.md) | client credentials flow parameters | [required] |

### Return type

[**models::TokenResponse**](TokenResponse.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)


## connect_slack_callback

> String connect_slack_callback(workspace, connect_slack_callback_request)
connect slack callback

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**connect_slack_callback_request** | [**ConnectSlackCallbackRequest**](ConnectSlackCallbackRequest.md) | code endpoint | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[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)


## connect_slack_callback_instance

> String connect_slack_callback_instance(connect_slack_callback_request)
connect slack callback instance

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**connect_slack_callback_request** | [**ConnectSlackCallbackRequest**](ConnectSlackCallbackRequest.md) | code endpoint | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[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)


## connect_slack_instance

> connect_slack_instance(connect_slack_request)
connect slack instance (non-interactive; pre-minted bot token)

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**connect_slack_request** | [**ConnectSlackRequest**](ConnectSlackRequest.md) | connect slack at the instance level with a pre-minted bot token | [required] |

### Return type

 (empty response body)

### Authorization

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

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

[[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)


## create_account

> String create_account(workspace, create_account_request)
create OAuth account

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**create_account_request** | [**CreateAccountRequest**](CreateAccountRequest.md) | code endpoint | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[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)


## disconnect_account

> String disconnect_account(workspace, id)
disconnect account

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**id** | **i32** |  | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain

[[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)


## disconnect_slack

> String disconnect_slack(workspace)
disconnect slack

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain

[[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)


## disconnect_teams

> String disconnect_teams(workspace)
disconnect teams

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain

[[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)


## get_o_auth_connect

> models::GetOAuthConnect200Response get_o_auth_connect(client)
get oauth connect

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**client** | **String** | client name | [required] |

### Return type

[**models::GetOAuthConnect200Response**](getOAuthConnect_200_response.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_o_auth_connects

> Vec<String> list_o_auth_connects()
list oauth connects

### Parameters

This endpoint does not need any parameter.

### Return type

**Vec<String>**

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

> models::ListOAuthLogins200Response list_o_auth_logins()
list oauth logins

### Parameters

This endpoint does not need any parameter.

### Return type

[**models::ListOAuthLogins200Response**](listOAuthLogins_200_response.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)


## refresh_token

> String refresh_token(workspace, id, refresh_token_request)
refresh token

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**id** | **i32** |  | [required] |
**refresh_token_request** | [**RefreshTokenRequest**](RefreshTokenRequest.md) | variable path | [required] |

### Return type

**String**

### Authorization

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

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[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)

