# \WorkspaceIntegrationApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**check_if_native_triggers_service_exists**](WorkspaceIntegrationApi.md#check_if_native_triggers_service_exists) | **GET** /w/{workspace}/native_triggers/integrations/{service_name}/exists | check if integrations for a particular service exists
[**check_instance_sharing_available**](WorkspaceIntegrationApi.md#check_instance_sharing_available) | **GET** /w/{workspace}/native_triggers/integrations/{service_name}/instance_sharing_available | check if instance-level credential sharing is available for a service
[**create_native_trigger_service**](WorkspaceIntegrationApi.md#create_native_trigger_service) | **POST** /w/{workspace}/native_triggers/integrations/{service_name}/create | create native trigger service
[**delete_native_trigger_service**](WorkspaceIntegrationApi.md#delete_native_trigger_service) | **DELETE** /w/{workspace}/native_triggers/integrations/{service_name}/delete | delete native trigger service
[**generate_instance_connect_url**](WorkspaceIntegrationApi.md#generate_instance_connect_url) | **POST** /w/{workspace}/native_triggers/integrations/{service_name}/generate_instance_connect_url | generate connect url using instance-level credentials
[**generate_native_trigger_service_connect_url**](WorkspaceIntegrationApi.md#generate_native_trigger_service_connect_url) | **POST** /w/{workspace}/native_triggers/integrations/{service_name}/generate_connect_url | generate connect url for native trigger service
[**list_native_trigger_services**](WorkspaceIntegrationApi.md#list_native_trigger_services) | **GET** /w/{workspace}/native_triggers/integrations/list | list available native trigger services
[**native_trigger_service_callback**](WorkspaceIntegrationApi.md#native_trigger_service_callback) | **POST** /w/{workspace}/native_triggers/integrations/{service_name}/callback | native trigger service oauth callback



## check_if_native_triggers_service_exists

> bool check_if_native_triggers_service_exists(workspace, service_name)
check if integrations for a particular service exists

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [required] |

### Return type

**bool**

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


## check_instance_sharing_available

> bool check_instance_sharing_available(workspace, service_name)
check if instance-level credential sharing is available for a service

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [required] |

### Return type

**bool**

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


## create_native_trigger_service

> String create_native_trigger_service(workspace, service_name, workspace_o_auth_config)
create native trigger service

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [required] |
**workspace_o_auth_config** | [**WorkspaceOAuthConfig**](WorkspaceOAuthConfig.md) | new native trigger service | [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)


## delete_native_trigger_service

> String delete_native_trigger_service(workspace, service_name)
delete native trigger service

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [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)


## generate_instance_connect_url

> String generate_instance_connect_url(workspace, service_name, redirect_uri)
generate connect url using instance-level credentials

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [required] |
**redirect_uri** | [**RedirectUri**](RedirectUri.md) | redirect_uri | [required] |

### Return type

**String**

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


## generate_native_trigger_service_connect_url

> String generate_native_trigger_service_connect_url(workspace, service_name, redirect_uri)
generate connect url for native trigger service

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [required] |
**redirect_uri** | [**RedirectUri**](RedirectUri.md) | redirect_uri | [required] |

### Return type

**String**

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


## list_native_trigger_services

> Vec<models::WorkspaceIntegrations> list_native_trigger_services(workspace)
list available native trigger services

### Parameters


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

### Return type

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


## native_trigger_service_callback

> String native_trigger_service_callback(workspace, service_name, native_trigger_service_callback_request)
native trigger service oauth callback

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**service_name** | [**NativeServiceName**](.md) |  | [required] |
**native_trigger_service_callback_request** | [**NativeTriggerServiceCallbackRequest**](NativeTriggerServiceCallbackRequest.md) | OAuth callback data | [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)

